From 38fda46b7414ffcbcfbff1f44ea7cba9892d48e8 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 12 Oct 2024 12:52:36 +0300 Subject: [PATCH] discord custom : connbytes 3=>1 --- init.d/openwrt/custom.d.examples/50-discord | 4 ++-- init.d/sysv/custom.d.examples/50-discord | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init.d/openwrt/custom.d.examples/50-discord b/init.d/openwrt/custom.d.examples/50-discord index 2d96da8..92d1400 100644 --- a/init.d/openwrt/custom.d.examples/50-discord +++ b/init.d/openwrt/custom.d.examples/50-discord @@ -23,7 +23,7 @@ zapret_custom_firewall() # $1 - 1 - run, 0 - stop local f - local first_packets_only="$ipt_connbytes 1:3" + local first_packets_only="$ipt_connbytes 1:1" local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK" local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS) local dest_set="-m set --match-set $DISCORD_SET_NAME dst" @@ -52,7 +52,7 @@ zapret_custom_firewall_nft() # stop logic is not required local f - local first_packets_only="$nft_connbytes 1-3" + local first_packets_only="$nft_connbytes 1" local desync="mark and $DESYNC_MARK == 0" local dest_set="ip daddr @$DISCORD_SET_NAME" local subnets diff --git a/init.d/sysv/custom.d.examples/50-discord b/init.d/sysv/custom.d.examples/50-discord index 7bfa100..487b4cd 100644 --- a/init.d/sysv/custom.d.examples/50-discord +++ b/init.d/sysv/custom.d.examples/50-discord @@ -23,7 +23,7 @@ zapret_custom_firewall() # $1 - 1 - run, 0 - stop local f - local first_packets_only="$ipt_connbytes 1:3" + local first_packets_only="$ipt_connbytes 1:1" local desync="-m mark ! --mark $DESYNC_MARK/$DESYNC_MARK" local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS) local dest_set="-m set --match-set $DISCORD_SET_NAME dst" @@ -52,7 +52,7 @@ zapret_custom_firewall_nft() # stop logic is not required local f - local first_packets_only="$nft_connbytes 1-3" + local first_packets_only="$nft_connbytes 1" local desync="mark and $DESYNC_MARK == 0" local dest_set="ip daddr @$DISCORD_SET_NAME" local subnets