zapret/init.d/openwrt/firewall.zapret.nfqws_all

12 lines
307 B
Plaintext

QNUM=200
IPT_FILTER_PRE="-p tcp --sport 80"
IPT_FILTER_POST="-p tcp --dport 80"
ipt()
{
iptables -C $@ 2>/dev/null || iptables -I $@
}
ipt PREROUTING -t raw $IPT_FILTER_PRE -j NFQUEUE --queue-num $QNUM --queue-bypass
ipt POSTROUTING -t mangle $IPT_FILTER_POST -j NFQUEUE --queue-num $QNUM --queue-bypass