mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-19 20:52:20 +03:00
init.d: openwrt avoid possible duplicate input_rule_zapret rules
This commit is contained in:
parent
fe01f520a9
commit
1855681657
@ -241,6 +241,7 @@ fw_tpws4()
|
|||||||
|
|
||||||
# allow localnet route only to special tpws IP
|
# allow localnet route only to special tpws IP
|
||||||
iptables -N input_rule_zapret 2>/dev/null
|
iptables -N input_rule_zapret 2>/dev/null
|
||||||
|
iptables -F input_rule_zapret
|
||||||
ipt input_rule_zapret -d 127.0.0.0/8 -j DROP
|
ipt input_rule_zapret -d 127.0.0.0/8 -j DROP
|
||||||
ipt input_rule_zapret -d $TPWS_LOCALHOST4 -j RETURN
|
ipt input_rule_zapret -d $TPWS_LOCALHOST4 -j RETURN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user