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

iptables问题 #4

Closed
lipku opened this issue Jan 6, 2025 · 4 comments
Closed

iptables问题 #4

lipku opened this issue Jan 6, 2025 · 4 comments

Comments

@lipku
Copy link

lipku commented Jan 6, 2025

现在这种实现方式把iptables里的规则都屏蔽了,有些app会在iptables里加自己的规则用于网络加速,现在都不能起作用了。另外android自己的一些比如流量控制规则也不能生效了。 有没有什么办法解决

@ice-black-tea
Copy link
Member

这我理解和现在实现方式关系不大吧,方便试试原生redroid支持吗

@lipku
Copy link
Author

lipku commented Jan 8, 2025

127|nzbz_5:/ # ip rule
0: from all lookup local
5000: from all lookup main
10000: from all fwmark 0xc0000/0xd0000 lookup legacy_system
10500: from all iif lo oif wlan0 uidrange 0-0 lookup wlan0
13000: from all fwmark 0x10063/0x1ffff iif lo lookup local_network
13000: from all fwmark 0x10064/0x1ffff iif lo lookup wlan0
14000: from all iif lo oif wlan0 lookup wlan0
15000: from all fwmark 0x0/0x10000 lookup legacy_system
16000: from all fwmark 0x0/0x10000 lookup legacy_network
17000: from all fwmark 0x0/0x10000 lookup local_network
19000: from all fwmark 0x64/0x1ffff iif lo lookup wlan0
22000: from all fwmark 0x0/0xffff iif lo lookup wlan0
32000: from all unreachable

现在的问题是5000: from all lookup main 这条记录把后面的rule全部拦截了,有些加速器的规则是靠后面的rule实现的

@ice-black-tea
Copy link
Member

这问题确实存在,我试试不修改ip rule的方案

@ice-black-tea
Copy link
Member

还是切回了创建router namespace的方案,上传了个镜像可以先试用试用

sudo docker run -itd --privileged \
    --name redroid \
    -v ~/data:/data \
    -v /dev/mali0:/dev/mali0 \
    -p 5555:5555 \
    iceblacktea/redroid-arm64:12.0.0-250110 \
    androidboot.redroid_gpu_mode=mali \
    androidboot.redroid_radio=1 \
    androidboot.redroid_wifi=1 \
    androidboot.redroid_wifi_gateway=7.7.7.1/24 \
    androidboot.redroid_magisk=1

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