init.d: openwrt avoid possible duplicate input_rule_zapret rules

This commit is contained in:
bol-van 2021-11-06 10:56:48 +03:00
parent fe01f520a9
commit 1855681657

View File

@ -241,6 +241,7 @@ fw_tpws4()
# allow localnet route only to special tpws IP
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 $TPWS_LOCALHOST4 -j RETURN