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

安卓数据流量路由表不生效 #35

Open
Seacity976 opened this issue Apr 19, 2024 · 13 comments
Open

安卓数据流量路由表不生效 #35

Seacity976 opened this issue Apr 19, 2024 · 13 comments

Comments

@Seacity976
Copy link

如题,我用wifi路由表都能生效,显示的是P2P

@Seacity976
Copy link
Author

Seacity976 commented Apr 19, 2024

我在ADB下对比了一下路由表,发现数据流量多了一条这个,不知道是不是它导致
image
ifconfig wifi下就多了个网卡,其他一模一样

@Seacity976
Copy link
Author

而且安卓下没法编辑就很尴尬,我都不知道自己设置的对不对

@lbl8603
Copy link
Owner

lbl8603 commented Apr 19, 2024

没看懂你遇到了什么问题,能解释一下你要做什么,以及用了什么参数吗

@Seacity976
Copy link
Author

没看懂你遇到了什么问题,能解释一下你要做什么,以及用了什么参数吗

没看懂你遇到了什么问题,能解释一下你要做什么,以及用了什么参数吗

这个是我手机上的配置,172.31.23.0/24走10.113.12.111,192.168.110.0/24走10.113.12.99
image
然后连接一下,两个终端都是P2P成功
image
手机连接wifi后,不管是手机共享出来的,还是朋友家的,还是随身wifi,都能ping通两个内网,也能正常访问两个内网
image
image
改成数据流量后,重新连接上来,也是P2P,没毛病
image
但ping两个内网就ping不通了
image
image
也无法访问接两个内网

@Seacity976
Copy link
Author

没看懂你遇到了什么问题,能解释一下你要做什么,以及用了什么参数吗

前面有张图配错了,wifi下的P2P试这张图
image

@lbl8603
Copy link
Owner

lbl8603 commented Apr 19, 2024

用手机流量就不行吗,很神奇,我也没看出是哪里的问题

@Seacity976
Copy link
Author

用手机流量就不行吗,很神奇,我也没看出是哪里的问题

对的,就是这么申请,我用adb shell调试,查看了ifconfig,wifi下就多了个无线网卡,都有tun0和tun0:1这几个网卡,但是看路由表的时候,发现数据流量多了下面这一行,是不是因为越后面优先级越高,被挡住了
image

@lbl8603
Copy link
Owner

lbl8603 commented Apr 19, 2024

可能是手机流量所在的内网就是172.31.23.0/24,你试试先开流量,再开vnt呢

@Seacity976
Copy link
Author

可能是手机流量所在的内网就是172.31.23.0/24,你试试先开流量,再开vnt呢

手机ip是10.0.1.6,而且192.168.110.0/24也访问不了,我试了第三个网段192.168.100.0/24也不行

@Seacity976
Copy link
Author

可能是手机流量所在的内网就是172.31.23.0/24,你试试先开流量,再开vnt呢

有没有可能是ipv6的问题,我今天在adb下再次对比ifconfig,数据流量的网卡多了这个
image
wifi下多了个这个
image

在数据流量下用adb是ping不通172.31.23.0/24的
image

在wifi下可以
image

@lbl8603
Copy link
Owner

lbl8603 commented May 13, 2024

我测试用流量和wifi都能访问的,你更改网段试试呢,比如用172.31.23.1/32

@Seacity976
Copy link
Author

我测试用流量和wifi都能访问的,你更改网段试试呢,比如用172.31.23.1/32

应该不是网段的问题,我试了好多网段,10.x.x.x,172.31.x.x,100.64.x.x,192.168.x.x都不行,我用小米手机可以,但是一加的不行,可能哪里不兼容吧

@lbl8603
Copy link
Owner

lbl8603 commented Jun 17, 2024

用这个试试呢,可能是之前路由设置错了,https://github.com/lbl8603/VntApp/releases/tag/1.2.10.3

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

2 participants