mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-04 23:50:53 +03:00
10 lines
418 B
Plaintext
10 lines
418 B
Plaintext
|
#!/system/bin/busybox sh
|
||
|
|
||
|
rule="PREROUTING -t nat -i br0 ! -d 192.168.0.0/16 -p tcp -m multiport --dports 80,443 -j REDIRECT --to-port 1"
|
||
|
iptables -C $rule 2>/dev/null && iptables -D $rule
|
||
|
killall tpws
|
||
|
|
||
|
rule="OUTPUT -t mangle -o wan0 -p tcp -m multiport --dports 80,443 -m mark ! --mark 0x40000000/0x40000000 -j NFQUEUE --queue-num 200 --queue-bypass"
|
||
|
iptables -C $rule 2>/dev/null && iptables -D $rule
|
||
|
killall nfqws
|