Update openwrt-shadowsocks.md
Some checks failed
Build and deploy GH Pages / build (push) Failing after 1m5s

This commit is contained in:
Alexandr Bogomyakov
2025-06-16 16:44:17 +01:00
committed by GitHub
parent 78eddbe75a
commit 9d7cb16786

View File

@ -77,6 +77,9 @@ if [ "$action" = "on" ]; then
iptables -t nat -A $chain -d 192.168.0.0/16 -j RETURN
iptables -t nat -A $chain -p tcp -j REDIRECT --to-ports $port
iptables -t nat -A PREROUTING -i br-lan -p tcp -j $chain
# Drop existing connections
conntrack -F
else
# Delete iptables rules
iptables -t nat -D PREROUTING -i br-lan -p tcp -j $chain