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

Direct routing error in TUN mode #33

Open
livingfree2023 opened this issue Feb 25, 2023 · 2 comments
Open

Direct routing error in TUN mode #33

livingfree2023 opened this issue Feb 25, 2023 · 2 comments
Labels
question Further information is requested

Comments

@livingfree2023
Copy link

livingfree2023 commented Feb 25, 2023

我发现用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。

请问如何修复?谢谢

@tzmax
Copy link
Owner

tzmax commented Apr 2, 2023

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

@tzmax
Copy link
Owner

tzmax commented Apr 2, 2023

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

@tzmax tzmax added the question Further information is requested label Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants