taamarin / box_for_magisk

Transparent Proxy for Android(root)
GNU General Public License v3.0
1.06k stars 117 forks source link

iptables 报错 #27

Closed viqbgrg closed 1 year ago

viqbgrg commented 1 year ago

/data/adb/box/scripts/box.iptables enable 18:41 [info]: use TPROXY: TCP + UDP. 18:41 [info]: creating iptables transparent proxy rules. 18:41 [info]: softap+ wlan+ swlan+ ap+ rndis+ transparent proxy. 18:41 [info]: transparent proxy for all apps. "ptables v1.8.7 (legacy): REDIRECT: Bad value for "--to-ports" option: "1053 Try iptables -h' or 'iptables --help' for more information. "ptables v1.8.7 (legacy): REDIRECT: Bad value for "--to-ports" option: "1053 Tryiptables -h' or 'iptables --help' for more information. 18:41 [info]: create iptables transparent proxy rules done. 18:41 [warn]: disable IPv6. 18:41 [info]: clash connected.

viqbgrg commented 1 year ago

我把${clash_dns_port}改成1053就不报错了,邪门了,这是为什么?

viqbgrg commented 1 year ago

怎么是什么原因了,配置文件 lf crlf 的问题,改成lf就没有问题了