Browse Source

replace spaces with tab

master
bol-van 3 days ago
parent
commit
de19cc3cd4
  1. 4
      init.d/custom.d.examples.linux/50-stun4all
  2. 4
      init.d/custom.d.examples.linux/50-wg4all

4
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@8&0xC0000003=0&&0>>22&0x3C@12=0x2112A442" "$f 48&0xC0000003=0 && 52=0x2112A442" $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"
nft_fw_nfqws_post "$f" "$f" $QNUM_STUN4ALL
nft_fw_nfqws_post "$f" "$f" $QNUM_STUN4ALL
}

4
init.d/custom.d.examples.linux/50-wg4all

@ -19,12 +19,12 @@ zapret_custom_firewall()
# $1 - 1 - run, 0 - stop
local f='-p udp -m u32 --u32'
fw_nfqws_post $1 "$f 0>>22&0x3C@4>>16=0x9c&&0>>22&0x3C@8=0x01000000" "$f 44>>16=0x9c&&48=0x01000000" $QNUM_WG4ALL
fw_nfqws_post $1 "$f 0>>22&0x3C@4>>16=0x9c&&0>>22&0x3C@8=0x01000000" "$f 44>>16=0x9c&&48=0x01000000" $QNUM_WG4ALL
}
zapret_custom_firewall_nft()
{
# stop logic is not required
local f="udp length 156 @ih,0,32 0x01000000"
nft_fw_nfqws_post "$f" "$f" $QNUM_WG4ALL
nft_fw_nfqws_post "$f" "$f" $QNUM_WG4ALL
}

Loading…
Cancel
Save