mirror of
https://github.com/bol-van/zapret.git
synced 2026-01-27 04:40:32 +03:00
blockcheck: change nft postnat hook from output to postrouting to fix some issues
This commit is contained in:
@@ -804,7 +804,7 @@ nft_scheme()
|
||||
make_comma_list iplist $3
|
||||
|
||||
nft add table inet $NFT_TABLE
|
||||
nft "add chain inet $NFT_TABLE postnat { type filter hook output priority 102; }"
|
||||
nft "add chain inet $NFT_TABLE postnat { type filter hook postrouting priority 102; }"
|
||||
nft "add rule inet $NFT_TABLE postnat meta nfproto ipv${IPV} $1 dport $2 mark and $DESYNC_MARK == 0 ip${ipver} daddr {$iplist} ct mark set ct mark or $DESYNC_MARK queue num $QNUM"
|
||||
# for strategies with incoming packets involved (autottl)
|
||||
nft "add chain inet $NFT_TABLE prenat { type filter hook prerouting priority -102; }"
|
||||
|
||||
Reference in New Issue
Block a user