Delete 50-discord-addIP
This commit is contained in:
1 parent
5aed05f0dc
commit
a6595681e2
1 file changed
-51
@@ -1,51 +0,0 @@
|
||||
# 50-discord-addIP
|
||||
NFQWS_OPT_DESYNC_DISCORD="${NFQWS_OPT_DESYNC_DISCORD:---dpi-desync=fake --dpi-desync-repeats=6 --dpi-desync-any-protocol}"
|
||||
DISCORD_PORTS=${DISCORD_PORTS:-50000-50099}
|
||||
DISCORD_SUBNETS="${DISCORD_SUBNETS:-103.224.0.0/16 104.16.0.0/12 108.136.0.0/14 108.156.0.0/14 108.177.0.0/17 13.224.0.0/12 13.248.0.0/14 13.32.0.0/12 138.128.136.0/21 142.250.0.0/15 143.204.0.0/16 15.196.0.0/14 15.204.0.0/16 162.158.0.0/15 162.210.192.0/21 166.117.0.0/16 170.178.160.0/19 172.217.0.0/16 172.241.208.0/21 172.253.0.0/16 172.64.0.0/13 173.194.0.0/16 173.208.64.0/18 173.234.144.0/20 18.128.0.0/9 18.64.0.0/10 185.107.56.0/24 188.114.96.0/22 192.157.48.0/20 192.178.0.0/15 199.115.112.0/21 204.11.56.0/23 207.244.64.0/18 208.115.192.0/18 208.91.196.0/23 209.85.128.0/17 212.32.224.0/19 212.7.208.0/22 212.92.104.0/21 216.137.32.0/19 216.245.192.0/19 216.58.192.0/19 23.227.32.0/19 23.82.0.0/16 3.128.0.0/9 34.0.0.0/15 34.2.0.0/15 34.64.0.0/10 35.192.0.0/12 35.208.0.0/12 37.1.216.0/21 37.48.64.0/18 45.134.10.0/24 5.200.14.128/25 5.79.64.0/18 51.81.0.0/16 52.222.0.0/16 52.84.0.0/14 54.224.0.0/11 64.120.0.0/18 64.233.160.0/19 64.31.0.0/18 65.8.0.0/14 66.22.192.0/18 69.162.64.0/18 70.32.0.0/20 74.125.0.0/16 74.63.192.0/18 75.2.0.0/17 76.223.0.0/17 77.247.183.144/28 8.0.0.0/13 8.32.0.0/11 81.17.16.0/20 81.171.0.0/19 82.192.64.0/19 94.229.72.112/28 99.83.128.0/17 99.84.0.0/16 99.86.0.0/16 103.224.182.253 103.224.212.108 104.16.255.200 104.17.117.93 104.17.224.169 104.17.51.93 104.18.30.128 104.18.31.128 104.18.32.174 104.18.34.249 104.18.37.76 104.18.4.161 104.18.48.115 104.18.5.161 104.18.52.172 104.18.8.105 104.18.9.105 104.20.28.41 104.20.42.164 104.21.112.1 104.21.16.1 104.21.2.47 104.21.25.51 104.21.3.233 104.21.32.1 104.21.39.121 104.21.44.20 104.21.48.1 104.21.48.177 104.21.58.107 104.21.64.1 104.21.64.116 104.21.66.91 104.21.72.212 104.21.72.221 104.21.80.1 104.21.80.173 104.21.82.160 104.21.89.187 104.21.93.23 104.21.96.1 104.22.30.245 104.22.31.245 104.24.222.4 104.24.223.4 104.26.0.116 104.26.0.195 104.26.0.27 104.26.1.116 104.26.1.195 104.26.1.27 104.26.10.203 104.26.11.203 104.26.12.113 104.26.12.194 104.26.13.113 104.26.13.194 104.26.14.36 104.26.15.36 104.26.2.228 104.26.3.228 104.26.4.185 104.26.4.213 104.26.5.185 104.26.5.213 108.138.26.10 108.138.26.37 108.138.26.66 108.138.26.83 108.139.119.112 108.139.119.125 108.139.119.67 108.139.119.84 108.139.182.126 108.139.182.28 108.139.182.29 108.139.182.79 108.156.22.35 108.156.22.60 108.156.22.64 108.156.22.97 108.156.60.47 108.156.60.50 108.156.60.62 108.156.60.7 108.157.229.11 108.157.229.128 108.157.229.22 108.157.229.75 108.158.122.42 108.158.122.49 108.158.122.53 108.158.122.61 108.158.194.19 108.158.194.34 108.158.194.81 108.158.194.85 108.177.14.207 13.224.103.102 13.224.103.28 13.224.103.31 13.224.103.86 13.224.186.117 13.224.186.118 13.224.186.16 13.224.186.23 13.225.10.126 13.225.10.14 13.225.10.4 13.225.10.97 13.225.239.28 13.225.239.5 13.225.239.53 13.225.239.6 13.225.35.111 13.225.35.126 13.225.35.62 13.225.35.84 13.225.78.123 13.225.78.13 13.225.78.29 13.225.78.34 13.226.244.101 13.226.244.22 13.226.244.82 13.226.244.89 13.227.146.112 13.227.146.114 13.227.146.118 13.227.146.81 13.248.169.48 13.248.243.5 13.32.110.5 13.32.110.59 13.32.110.78 13.32.110.82 13.33.235.123 13.33.235.14 13.33.235.17 13.33.235.30 138.128.140.244 138.128.140.246 138.128.140.247 138.128.140.248 138.128.140.249 138.128.140.251 138.128.140.252 138.128.140.253 142.250.102.207 142.250.150.207 142.250.178.219 142.250.178.251 142.250.180.155 142.250.180.187 142.250.180.219 142.250.180.251 142.250.184.155 142.250.187.123 142.250.187.155 142.250.187.187 142.250.200.219 142.250.200.251 142.250.201.219 142.250.201.27 142.250.201.59 142.250.203.123 142.250.203.251 142.250.27.207 142.250.74.123 142.250.74.155 142.250.74.187 142.250.74.27 142.250.74.59 142.251.1.207 142.251.140.123 142.251.140.27 142.251.140.59 142.251.140.91 142.251.141.59 142.251.142.123 142.251.143.123 142.251.143.187 142.251.143.219 142.251.143.251 142.251.208.123 142.251.208.155 142.251.208.187 142.251.209.27 142.251.209.59 142.251.36.187 142.251.36.219 142.251.36.251 142.251.37.187 142.251.37.219 142.251.37.251 142.251.37.27 142.251.37.59 142.251.38.123 142.251.38.219 142.251.38.251 142.251.39.27 142.251.39.59 142.251.39.91 143.204.11.114 143.204.11.26 143.204.11.69 143.204.11.91 143.204.215.125 143.204.215.42 143.204.215.45 143.204.215.81 143.204.237.112 143.204.237.17 143.204.237.35 143.204.237.65 143.204.55.13 143.204.55.14 143.204.55.49 143.204.55.87 15.197.240.20 15.204.67.7 162.159.128.232 162.159.128.233 162.159.128.234 162.159.128.235 162.159.129.232 162.159.129.233 162.159.129.234 162.159.129.235 162.159.130.232 162.159.130.233 162.159.130.234 162.159.130.235 162.159.133.232 162.159.133.233 162.159.133.234 162.159.134.232 162.159.134.233 162.159.134.234 162.159.135.232 162.159.135.233 162.159.135.234 162.159.136.232 162.159.136.233 162.159.136.234 162.159.137.232 162.159.137.233 162.159.137.234 162.159.138.232 162.159.138.233 162.159.138.234 162.210.195.122 162.210.195.123 162.210.196.166 162.210.196.167 162.210.196.168 162.210.196.171 162.210.196.172 162.210.196.173 162.210.199.65 162.2Line truncated
|
||||
alloc_dnum DNUM_DISCORD
|
||||
alloc_qnum QNUM_DISCORD
|
||||
DISCORD_SET_NAME=discord
|
||||
zapret_custom_daemons()
|
||||
{
|
||||
local opt="--qnum=$QNUM_DISCORD $NFQWS_OPT_DESYNC_DISCORD"
|
||||
do_nfqws $1 $DNUM_DISCORD "$opt"
|
||||
}
|
||||
zapret_custom_firewall()
|
||||
{
|
||||
local f
|
||||
local first_packets_only="$ipt_connbytes 1:3"
|
||||
local DISCORD_PORTS_IPT=$(replace_char - : $DISCORD_PORTS)
|
||||
local dest_set="-m set --match-set $DISCORD_SET_NAME dst"
|
||||
local subnet
|
||||
local DISABLE_IPV6=1
|
||||
[ "$1" = 1 ] && {
|
||||
ipset create $DISCORD_SET_NAME hash:net hashsize 8192 maxelem 4096 2>/dev/null
|
||||
ipset flush $DISCORD_SET_NAME
|
||||
for subnet in $DISCORD_SUBNETS; do
|
||||
echo add $DISCORD_SET_NAME $subnet
|
||||
done | ipset -! restore
|
||||
}
|
||||
f="-p udp -m multiport --dports $DISCORD_PORTS_IPT"
|
||||
fw_nfqws_post $1 "$f $first_packets_only $dest_set" "" $QNUM_DISCORD
|
||||
[ "$1" = 1 ] || {
|
||||
ipset destroy $DISCORD_SET_NAME 2>/dev/null
|
||||
}
|
||||
}
|
||||
zapret_custom_firewall_nft()
|
||||
{
|
||||
local f
|
||||
local first_packets_only="$nft_connbytes 1-3"
|
||||
local dest_set="ip daddr @$DISCORD_SET_NAME"
|
||||
local subnets
|
||||
local DISABLE_IPV6=1
|
||||
make_comma_list subnets $DISCORD_SUBNETS
|
||||
nft_create_set $DISCORD_SET_NAME "type ipv4_addr; size 4096; auto-merge; flags interval;"
|
||||
nft_flush_set $DISCORD_SET_NAME
|
||||
nft_add_set_element $DISCORD_SET_NAME "$subnets"
|
||||
f="udp dport {$DISCORD_PORTS}"
|
||||
nft_fw_nfqws_post "$f $first_packets_only $dest_set" "" $QNUM_DISCORD
|
||||
}
|
||||
zapret_custom_firewall_nft_flush()
|
||||
{
|
||||
nft_del_set $DISCORD_SET_NAME 2>/dev/null
|
||||
}
|
||||
Reference in new issue
Block a user