Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Source IP instead of TUN address in Connection section #1231

Open
HajPasha opened this issue Dec 11, 2024 · 0 comments
Open

Show Source IP instead of TUN address in Connection section #1231

HajPasha opened this issue Dec 11, 2024 · 0 comments

Comments

@HajPasha
Copy link

Hi there,

I'm currently running Sing-box on OpenWRT in a VM. OpenWRT is acting as a DHCP server, and VPN service. I’ve noticed that with TUN Inbound, the IP displayed is always the same (e.g., "10.10.0.1"). Is there a way to have Sing-box display the local IP (e.g., "192.168.2.12") of the client instead of a static one?
image

as you can see from screenshot above , the Source IP is always "10.10.0.1"
this is the inbound config :

  "inbounds": [
    {
      "type": "tun",
      "tag": "tun-in",
      "interface_name": "sing-tun",
      "mtu": 1492,
      "address": ["10.10.0.1/28", "fdfe:dcba:9876::1/126"],
      "auto_route": true,
      "strict_route": true,
      "route_address": [
        "192.168.1.0/28",
        "0.0.0.0/1",
        "128.0.0.0/1",
        "::/1",
        "8000::/1"
      ],
      "route_exclude_address": [
        "192.168.0.0/16", // Excluding the main local network
        "fc00::/7", // Excluding local IPv6 addresses
        "192.168.2.0/24" // Excluding the 192.168.2.x range to bypass VPN
      ],
      "endpoint_independent_nat": true,
      "stack": "mixed",
      "sniff": true,
      "domain_strategy": "prefer_ipv4"
    }
  ]

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant