custom scripts: remove redundant in nft fw section

This commit is contained in:
bol-van 2022-06-03 10:35:11 +03:00
parent 3f5335d0ad
commit 21041346f1
4 changed files with 6 additions and 6 deletions

View File

@ -44,5 +44,5 @@ zapret_custom_firewall_nft()
zapret_apply_firewall_rules_nft zapret_apply_firewall_rules_nft
f="udp dport 443" f="udp dport 443"
nft_fw_nfqws_post $1 "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2 nft_fw_nfqws_post "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2
} }

View File

@ -57,9 +57,9 @@ zapret_custom_firewall_nft()
zapret_apply_firewall_rules_nft zapret_apply_firewall_rules_nft
f="udp dport 443" f="udp dport 443"
nft_fw_nfqws_post $1 "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2 nft_fw_nfqws_post "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2
# this for ipv4 only. do not have access to ipv6 enabled TSPU to test # this for ipv4 only. do not have access to ipv6 enabled TSPU to test
nft_fw_nfqws_post $1 "$f $desync $udplen $short_header4" "" $QNUM3 nft_fw_nfqws_post "$f $desync $udplen $short_header4" "" $QNUM3
# add flow offload exemption for the whole stream because we dont know when short_header rule triggers # add flow offload exemption for the whole stream because we dont know when short_header rule triggers
nft_add_flow_offload_exemption "$f" "" "QUIC exemption for complex TSPU hack" nft_add_flow_offload_exemption "$f" "" "QUIC exemption for complex TSPU hack"
} }

View File

@ -44,5 +44,5 @@ zapret_custom_firewall_nft()
zapret_apply_firewall_rules_nft zapret_apply_firewall_rules_nft
f="udp dport 443" f="udp dport 443"
nft_fw_nfqws_post $1 "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2 nft_fw_nfqws_post "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2
} }

View File

@ -57,9 +57,9 @@ zapret_custom_firewall_nft()
zapret_apply_firewall_rules_nft zapret_apply_firewall_rules_nft
f="udp dport 443" f="udp dport 443"
nft_fw_nfqws_post $1 "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2 nft_fw_nfqws_post "$f $desync $first_packets_only" "$f $desync $first_packets_only" $QNUM2
# this for ipv4 only. do not have access to ipv6 enabled TSPU to test # this for ipv4 only. do not have access to ipv6 enabled TSPU to test
nft_fw_nfqws_post $1 "$f $desync $udplen $short_header4" "" $QNUM3 nft_fw_nfqws_post "$f $desync $udplen $short_header4" "" $QNUM3
# add flow offload exemption for the whole stream because we dont know when short_header rule triggers # add flow offload exemption for the whole stream because we dont know when short_header rule triggers
nft_add_flow_offload_exemption "$f" "" "QUIC exemption for complex TSPU hack" nft_add_flow_offload_exemption "$f" "" "QUIC exemption for complex TSPU hack"
} }