V2RayXS icon indicating copy to clipboard operation
V2RayXS copied to clipboard

Direct routing error in TUN mode

Open livingfree2023 opened this issue 2 years ago • 2 comments

我发现用pac mode,chatGPT会无法访问,用tun mode可以,但是在tun mode下的路由表中的direct路由有问题:所有大陆的网站都会超时无法访问,所有路由到main的都可以访问。如果选择all-to-main路由表的话,所有网站都可以访问。所以判断是到direct的地方有问题。

PAC模式下的路由表:

$ netstat -r Routing tables

Internet: Destination Gateway Flags Netif Expire default 192.168.0.1 UGScg en0 default link#20 UCSIg bridge100 ! 127 localhost UCS lo0 localhost localhost UH lo0 169.254 link#12 UCS en0 ! 192.168.0 link#12 UCS en0 ! 192.168.0.1/32 link#12 UCS en0 ! 192.168.0.1 f4:6d:2f:e6:fa:b5 UHLWIir en0 1166

TUN模式下路由表

$ netstat -r Routing tables

Internet: Destination Gateway Flags Netif Expire default 10.0.0.1 UGScg utun3 default link#20 UCSIg bridge100 ! 10.0.0.1 10.0.0.0 UHr utun3 62.3.15.157 192.168.0.1 UGSc en0 127 localhost UCS lo0 localhost localhost UH lo0 169.254 link#12 UCS en0 ! 192.168.0 link#12 UCS en0 ! 192.168.0.1/32 link#12 UCS en0 ! 192.168.0.1 f4:6d:2f:e6:fa:b5 UHLWIir en0 1188

查看路由表发现在TUN模式下的默认路由是10.0.0.1,但是我的LAN的网关应该是192.168.0.1。

请问如何修复?谢谢

livingfree2023 avatar Feb 25 '23 23:02 livingfree2023

@livingfree2023 I just updated the documentation, hope it helps you https://github.com/tzmax/V2RayXS#have-you-encountered-a-problem

tzmax avatar Apr 02 '23 08:04 tzmax

@livingfree2023 you are invited to join the v1.5.7 beta, If there is a problem, let us keep in touch

tzmax avatar Apr 02 '23 09:04 tzmax