Repository navigation
Replies: 1 comment
|
Hi @Huang055, This sounds like the physical network interface selection is getting confused by the additional virtual adapters. Since adding a static route gets the proxy connection working, I'd first check which interface Windows actually selects for the outbound connection. You can run these commands in PowerShell: Get-NetIPInterface -AddressFamily IPv4 |
Select-Object InterfaceAlias, InterfaceIndex, InterfaceMetricThis shows the available interfaces and their metrics. Then check the default routes: Get-NetRoute -DestinationPrefix "0.0.0.0/0" |
Select-Object InterfaceAlias, NextHop, RouteMetricThe effective route priority also depends on the interface metric, so it's worth checking both. If you're using sing-box as the core, it has a For example: {
"route": {
"auto_detect_interface": false,
"default_interface": "Ethernet"
}
}
The sing-box documentation explains the difference between Since you've already tried binding the interface, I'd also check whether v2rayN is generating a different effective core configuration. Which core are you using, Xray or sing-box? And does the problem still happen with the VM adapters temporarily disabled? 🔍 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Setup:
Windows 11 OS
Ethernet interface in bridge mode / multiple virtual network interfaces ( for VMs labs, containers etc.)
Problem:
When activating TUN mode in v2rayN client the app cant decide which interface to use for outgoing traffic. It tries all interfaces, some time after it gets right interface but sends packets to Xray-core server with outgoing address of local TUN interface (172.18.0.1). Home router drops such packets because its foreing subnet.
I tried setting up parameters "bind interface" and "ip addr" but they do not affect the problem.
Somehow i managed to make TUN mode work by adding static route to Xray-core server via home router directly, but with this configuration selective Routing configuration in v2rayN client doesn work and such traffic somehow get lost.
Is there a way to configure v2rayN properly in such environment?
All reactions