From 185568165785c01aa32d05fb1c62cad64823c97b Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 6 Nov 2021 10:56:48 +0300 Subject: [PATCH] init.d: openwrt avoid possible duplicate input_rule_zapret rules --- init.d/openwrt/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/init.d/openwrt/functions b/init.d/openwrt/functions index c6c6fad..dc8cf39 100644 --- a/init.d/openwrt/functions +++ b/init.d/openwrt/functions @@ -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