Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Create iptables transparent proxy rule failed #21

Open
NoverNobida opened this issue Jan 30, 2023 · 2 comments
Open

Create iptables transparent proxy rule failed #21

NoverNobida opened this issue Jan 30, 2023 · 2 comments

Comments

@NoverNobida
Copy link

After run ${MODDIR}/scripts/clash.iptables -s, I got error: Bad argument 'icmp',
within ${MODDIR}/run/run.logs, I got error: create iptables transparent proxy rule failed.

@NoverNobida
Copy link
Author

After deleting

${iptables_wait} -t nat -A BOX_EXTERNAL -d ${Clash_fake_ip_range} -p icmp -j DNAT --to-destination 127.0.0.1
${iptables_wait} -t nat -A BOX_LOCAL -d ${Clash_fake_ip_range} -p icmp -j DNAT --to-destination 127.0.0.1

${iptables_wait} -t nat -I OUTPUT -d ${Clash_fake_ip_range} -p icmp -j DNAT --to-destination 127.0.0.1
${iptables_wait} -t nat -I PREROUTING -d ${Clash_fake_ip_range} -p icmp -j DNAT --to-destination 127.0.0.1

${iptables_wait} -t nat -D OUTPUT -d ${Clash_fake_ip_range} -p icmp -j DNAT --to-destination 127.0.0.1
${iptables_wait} -t nat -D PREROUTING -d ${Clash_fake_ip_range} -p icmp -j DNAT --to-destination 127.0.0.1

I got this log in ${MODDIR}/run/run.logs.

[info] create iptables transparent proxy rules done.

@taamarin
Copy link
Owner

在某些手机上看起来像 Iptables 问题

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants