From aaf8f18a7d60cbae5b3c70a3af46e812f5558970 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 12 Aug 2025 08:48:33 +0300 Subject: [PATCH] optimize 50-stun4all --- init.d/custom.d.examples.linux/50-stun4all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/custom.d.examples.linux/50-stun4all b/init.d/custom.d.examples.linux/50-stun4all index f28c7402..d7893791 100644 --- a/init.d/custom.d.examples.linux/50-stun4all +++ b/init.d/custom.d.examples.linux/50-stun4all @@ -19,12 +19,12 @@ zapret_custom_firewall() # $1 - 1 - run, 0 - stop local f='-p udp -m length --length 28: -m u32 --u32' - fw_nfqws_post $1 "$f 0>>22&0x3C@8&0xC0000003=0&&0>>22&0x3C@12=0x2112A442" "$f 48&0xC0000003=0 && 52=0x2112A442" $QNUM_STUN4ALL + fw_nfqws_post $1 "$f 0>>22&0x3C@12=0x2112A442&&0>>22&0x3C@8&0xC0000003=0" "$f 52=0x2112A442&&48&0xC0000003=0" $QNUM_STUN4ALL } zapret_custom_firewall_nft() { # stop logic is not required - local f="udp length >= 28 @ih,0,2 0 @ih,30,2 0 @ih,32,32 0x2112A442" + local f="udp length >= 28 @ih,32,32 0x2112A442 @ih,0,2 0 @ih,30,2 0" nft_fw_nfqws_post "$f" "$f" $QNUM_STUN4ALL }