custom examples: refactor to use port overrides

This commit is contained in:
bol-van
2023-12-13 17:10:56 +03:00
parent e0699db90a
commit 226354db12
6 changed files with 14 additions and 79 deletions

View File

@@ -37,7 +37,7 @@ zapret_custom_firewall()
zapret_do_firewall_rules_ipt $1
f="-p udp --dport 443"
f="-p udp -m multiport --dports $QUIC_PORTS_IPT"
fw_nfqws_post $1 "$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
fw_nfqws_post $1 "$f $desync $udplen $short_header4" "" $QNUM3
@@ -56,7 +56,7 @@ zapret_custom_firewall_nft()
zapret_apply_firewall_rules_nft
f="udp dport 443"
f="udp dport {$QUIC_PORTS}"
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
nft_fw_nfqws_post "$f $desync $udplen $short_header4" "" $QNUM3