mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-29 21:40:52 +03:00
50-discord: fool first 3 packets
This commit is contained in:
parent
5cd5ab176e
commit
2c68d1c94f
@ -23,7 +23,7 @@ zapret_custom_firewall()
|
|||||||
# $1 - 1 - run, 0 - stop
|
# $1 - 1 - run, 0 - stop
|
||||||
|
|
||||||
local f
|
local f
|
||||||
local first_packets_only="$ipt_connbytes 1:1"
|
local first_packets_only="$ipt_connbytes 1:3"
|
||||||
local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
|
local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
|
||||||
local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS)
|
local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS)
|
||||||
local dest_set="-m set --match-set $DISCORD_SET_NAME dst"
|
local dest_set="-m set --match-set $DISCORD_SET_NAME dst"
|
||||||
@ -52,7 +52,7 @@ zapret_custom_firewall_nft()
|
|||||||
# stop logic is not required
|
# stop logic is not required
|
||||||
|
|
||||||
local f
|
local f
|
||||||
local first_packets_only="$nft_connbytes 1"
|
local first_packets_only="$nft_connbytes 1-3"
|
||||||
local desync="mark and $DESYNC_MARK == 0"
|
local desync="mark and $DESYNC_MARK == 0"
|
||||||
local dest_set="ip daddr @$DISCORD_SET_NAME"
|
local dest_set="ip daddr @$DISCORD_SET_NAME"
|
||||||
local subnets
|
local subnets
|
||||||
|
@ -23,7 +23,7 @@ zapret_custom_firewall()
|
|||||||
# $1 - 1 - run, 0 - stop
|
# $1 - 1 - run, 0 - stop
|
||||||
|
|
||||||
local f
|
local f
|
||||||
local first_packets_only="$ipt_connbytes 1:1"
|
local first_packets_only="$ipt_connbytes 1:3"
|
||||||
local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
|
local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
|
||||||
local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS)
|
local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS)
|
||||||
local dest_set="-m set --match-set $DISCORD_SET_NAME dst"
|
local dest_set="-m set --match-set $DISCORD_SET_NAME dst"
|
||||||
@ -52,7 +52,7 @@ zapret_custom_firewall_nft()
|
|||||||
# stop logic is not required
|
# stop logic is not required
|
||||||
|
|
||||||
local f
|
local f
|
||||||
local first_packets_only="$nft_connbytes 1"
|
local first_packets_only="$nft_connbytes 1-3"
|
||||||
local desync="mark and $DESYNC_MARK == 0"
|
local desync="mark and $DESYNC_MARK == 0"
|
||||||
local dest_set="ip daddr @$DISCORD_SET_NAME"
|
local dest_set="ip daddr @$DISCORD_SET_NAME"
|
||||||
local subnets
|
local subnets
|
||||||
|
Loading…
Reference in New Issue
Block a user