mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-02 14:40:52 +03:00
blockcheck.sh : do not check ipv6 nfqueue presence. nnmclub => facebook
This commit is contained in:
parent
8ae38be045
commit
d171fed438
@ -33,7 +33,7 @@ HDRTEMP=/tmp/zapret-hdr.txt
|
|||||||
NFT_TABLE=blockcheck
|
NFT_TABLE=blockcheck
|
||||||
|
|
||||||
[ -n "$DNSCHECK_DNS" ] || DNSCHECK_DNS="8.8.8.8 1.1.1.1 77.88.8.1"
|
[ -n "$DNSCHECK_DNS" ] || DNSCHECK_DNS="8.8.8.8 1.1.1.1 77.88.8.1"
|
||||||
[ -n "$DNSCHECK_DOM" ] || DNSCHECK_DOM="pornhub.com putinhuylo.com rutracker.org nnmclub.to startmail.com"
|
[ -n "$DNSCHECK_DOM" ] || DNSCHECK_DOM="pornhub.com putinhuylo.com rutracker.org facebook.com startmail.com"
|
||||||
DNSCHECK_DIG1=/tmp/dig1.txt
|
DNSCHECK_DIG1=/tmp/dig1.txt
|
||||||
DNSCHECK_DIG2=/tmp/dig2.txt
|
DNSCHECK_DIG2=/tmp/dig2.txt
|
||||||
DNSCHECK_DIGS=/tmp/digs.txt
|
DNSCHECK_DIGS=/tmp/digs.txt
|
||||||
@ -86,11 +86,8 @@ ipt6_has_frag()
|
|||||||
ipt_has_nfq()
|
ipt_has_nfq()
|
||||||
{
|
{
|
||||||
# cannot just check /proc/net/ip_tables_targets because of iptables-nft or modules not loaded yet
|
# cannot just check /proc/net/ip_tables_targets because of iptables-nft or modules not loaded yet
|
||||||
local ipt
|
iptables -A OUTPUT -t mangle -p 255 -j NFQUEUE --queue-num $QNUM --queue-bypass 2>/dev/null || return 1
|
||||||
for ipt in iptables ip6tables; do
|
iptables -D OUTPUT -t mangle -p 255 -j NFQUEUE --queue-num $QNUM --queue-bypass 2>/dev/null
|
||||||
$ipt -A OUTPUT -t mangle -p 255 -j NFQUEUE --queue-num $QNUM --queue-bypass 2>/dev/null || return 1
|
|
||||||
$ipt -D OUTPUT -t mangle -p 255 -j NFQUEUE --queue-num $QNUM --queue-bypass 2>/dev/null
|
|
||||||
done
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
nft_has_nfq()
|
nft_has_nfq()
|
||||||
|
Loading…
Reference in New Issue
Block a user