Commit d103602d authored by bol-van's avatar bol-van
Browse files

stun4all fix length check

parent aaf8f18a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@ 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@12=0x2112A442&&0>>22&0x3C@8&0xC0000003=0" "$f 52=0x2112A442&&48&0xC0000003=0" $QNUM_STUN4ALL
	local f='-p udp -m u32 --u32'
	fw_nfqws_post $1 "$f 0>>22&0x3C@4>>16=28:65535&&0>>22&0x3C@12=0x2112A442&&0>>22&0x3C@8&0xC0000003=0" "$f 44>>16=28:65535&&52=0x2112A442&&48&0xC0000003=0" $QNUM_STUN4ALL
}
zapret_custom_firewall_nft()
{