complex TSPU hack is overkill

This commit is contained in:
bol-van 2022-05-30 09:31:57 +03:00
parent 0c457dc2a8
commit bcb7abc830
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -33,7 +33,7 @@ zapret_custom_firewall()
local f local f
local first_packets_only="-m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:3" local first_packets_only="-m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:3"
local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK" local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
local udplen="-m length --length 600:1500" local udplen="-m length --length 601:1500"
local short_header4="-m u32 --u32 0>>22&0x3C@8>>24&0xC0=0x40" local short_header4="-m u32 --u32 0>>22&0x3C@8>>24&0xC0=0x40"
zapret_do_firewall_rules_ipt $1 zapret_do_firewall_rules_ipt $1
@ -52,7 +52,7 @@ zapret_custom_firewall_nft()
local f local f
local first_packets_only="ct original packets 1-3" local first_packets_only="ct original packets 1-3"
local desync="mark and $DESYNC_MARK == 0" local desync="mark and $DESYNC_MARK == 0"
local udplen="udp length 600-1500" local udplen="udp length 601-1500"
local short_header4="@th,64,2 1" local short_header4="@th,64,2 1"
zapret_apply_firewall_rules_nft zapret_apply_firewall_rules_nft

BIN
tpws/tpws Normal file

Binary file not shown.