From 25a13974f14cef6265a316286a004594a8eb4ea0 Mon Sep 17 00:00:00 2001 From: bolvan Date: Wed, 17 Feb 2016 20:26:06 +0300 Subject: [PATCH] init.d fix --- init.d/openwrt/firewall.user.beeline | 4 ++-- init.d/openwrt/firewall.user.mns | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init.d/openwrt/firewall.user.beeline b/init.d/openwrt/firewall.user.beeline index 6ef273e..02d2bb1 100644 --- a/init.d/openwrt/firewall.user.beeline +++ b/init.d/openwrt/firewall.user.beeline @@ -1,5 +1,5 @@ # put it to /etc/firewall.user # for BEELINE ISP -iptables -t mangle -D POSTROUTING -p tcp --dport 80 -m set --match-set zapret dst -j NFQUEUE --queue-num 200 --queue-bypass 2>/dev/null -iptables -t mangle -I POSTROUTING -p tcp --dport 80 -m set --match-set zapret dst -j NFQUEUE --queue-num 200 --queue-bypass +iptables -t mangle -C POSTROUTING -p tcp --dport 80 -m set --match-set zapret dst -j NFQUEUE --queue-num 200 --queue-bypass || + iptables -t mangle -I POSTROUTING -p tcp --dport 80 -m set --match-set zapret dst -j NFQUEUE --queue-num 200 --queue-bypass diff --git a/init.d/openwrt/firewall.user.mns b/init.d/openwrt/firewall.user.mns index 8101d12..162f33e 100644 --- a/init.d/openwrt/firewall.user.mns +++ b/init.d/openwrt/firewall.user.mns @@ -1,5 +1,5 @@ # put it to /etc/firewall.user # for MNS ISP -iptables -t raw -D PREROUTING -p tcp --sport 80 --tcp-flags SYN,ACK SYN,ACK -m set --match-set zapret src -j NFQUEUE --queue-num 200 --queue-bypass 2>/dev/null -iptables -t raw -I PREROUTING -p tcp --sport 80 --tcp-flags SYN,ACK SYN,ACK -m set --match-set zapret src -j NFQUEUE --queue-num 200 --queue-bypass +iptables -t raw -C PREROUTING -p tcp --sport 80 --tcp-flags SYN,ACK SYN,ACK -m set --match-set zapret src -j NFQUEUE --queue-num 200 --queue-bypass || + iptables -t raw -I PREROUTING -p tcp --sport 80 --tcp-flags SYN,ACK SYN,ACK -m set --match-set zapret src -j NFQUEUE --queue-num 200 --queue-bypass