updated with new scripts

This commit is contained in:
root
2021-02-04 22:19:22 -05:00
parent 0167c62088
commit 3340d0695d
27 changed files with 110 additions and 397 deletions

19
etc/iptables/README.md Normal file
View File

@@ -0,0 +1,19 @@
# iptables
Here is my script that I use to update iptables with data.
The different files are listed in lists and are hopefully somewhat self explanatory
Anything with .list end in the zone folder will be added to the block list. This was initially used to block countries, but you can use it to block anything.
Add ```update.sh``` in your cron
Load iptables and ipset rules however you please on start up
This is done by the following. Some of my servers have it in ```/etc/rc.local``` others have it in ```/etc/network/interface``` as post-up script
```iptables-restore < /path/to/iptables.save```
```ipset restore < /path/to/ipset.save```
There may be a better way to do this, but this works for me on some servers.

37737
etc/iptables/ipset.save Normal file

File diff suppressed because it is too large Load Diff

14
etc/iptables/list/CF.list Normal file
View File

@@ -0,0 +1,14 @@
173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/12
172.64.0.0/13
131.0.72.0/22

11
etc/iptables/rules.v4 Normal file
View File

@@ -0,0 +1,11 @@
# Generated by iptables-save v1.4.21 on Sat May 13 10:34:33 2017
*filter
:INPUT ACCEPT [59:5736]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [45:49826]
-A INPUT -m set --match-set drop src -j DROP
-A OUTPUT -m set --match-set drop dst -j DROP
COMMIT
# Completed on Sat May 13 10:34:33 2017

7
etc/iptables/rules.v6 Normal file
View File

@@ -0,0 +1,7 @@
# Generated by ip6tables-save v1.6.0 on Tue Feb 12 14:49:54 2019
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Tue Feb 12 14:49:54 2019

65
etc/iptables/service.sh Executable file
View File

@@ -0,0 +1,65 @@
#!/bin/bash
# Configure iptables firewall
# Limit PATH
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
# Download
ip_update() {
wget -q 'https://www.cloudflare.com/ips-v4' -O /etc/iptables/list/CF.list
wget -q 'http://ipdeny.com/ipblocks/data/countries/ru.zone' -O /etc/iptables/zone/ru.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/cn.zone' -O /etc/iptables/zone/cn.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/in.zone' -O /etc/iptables/zone/in.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/iq.zone' -O /etc/iptables/zone/iq.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/jp.zone' -O /etc/iptables/zone/jp.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/kp.zone' -O /etc/iptables/zone/kp.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/kr.zone' -O /etc/iptables/zone/kr.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/id.zone' -O /etc/iptables/zone/id.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/cf.zone' -O /etc/iptables/zone/cf.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/za.zone' -O /etc/iptables/zone/za.zone
wget -q 'http://ipdeny.com/ipblocks/data/countries/co.zone' -O /etc/iptables/zone/co.zone
}
# ipset update
firewall_update() {
ip_update
for i in $(cat /etc/iptables/zone/*.zone ); do ipset -exist -A drop $i; done
}
# iptables configuration
firewall_start() {
ipset create drop hash:net family inet hashsize 16384 maxelem 65536
ip_update
for i in $(cat /etc/iptables/zone/*.zone ); do ipset -exist -A drop $i; done
iptables -A INPUT -m set --match-set drop src -j DROP
iptables -A OUTPUT -m set --match-set drop dst -j DROP
}
# clear iptables configuration
firewall_stop() {
iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
ipset destroy drop
}
# execute action
case "$1" in
start|restart)
echo "Starting firewall"
firewall_stop
firewall_start
echo "Firewall started"
;;
stop)
echo "Stopping firewall"
firewall_stop
echo "Firewall stopped"
;;
update)
echo "Update ipset IPs"
firewall_update
echo "updated ipset IPs"
;;
esac

View File

View File

@@ -0,0 +1,5 @@
41.78.120.0/22
41.223.184.0/22
169.239.96.0/22
196.216.160.0/24
197.242.176.0/21

8444
etc/iptables/zone/cn.zone Normal file

File diff suppressed because it is too large Load Diff

536
etc/iptables/zone/co.zone Normal file
View File

@@ -0,0 +1,536 @@
45.5.160.0/22
45.5.164.0/22
45.5.172.0/22
45.5.180.0/22
45.5.184.0/22
45.5.188.0/22
45.7.132.0/22
45.65.136.0/22
45.65.200.0/24
45.65.232.0/22
45.70.168.0/22
45.71.7.0/24
45.71.180.0/22
45.162.0.0/22
45.162.76.0/22
45.162.82.0/23
45.162.84.0/24
45.162.85.0/24
45.162.126.0/24
45.163.0.0/22
45.163.28.0/23
45.163.30.0/24
45.167.124.0/23
45.167.126.0/24
45.167.248.0/22
45.168.104.0/22
45.169.98.0/23
45.169.253.0/24
45.170.124.0/22
45.170.132.0/22
45.170.240.0/22
45.171.118.0/24
45.171.180.0/22
45.172.178.0/23
45.172.184.0/22
45.172.218.0/24
45.172.222.0/23
45.173.4.0/22
45.173.8.0/22
45.173.12.0/24
45.173.14.0/23
45.173.44.0/24
45.173.68.0/22
45.174.196.0/22
45.174.224.0/23
45.174.227.0/24
45.175.20.0/24
45.175.139.0/24
45.176.70.0/23
45.176.193.0/24
45.176.232.0/22
45.177.52.0/23
45.177.54.0/24
45.177.108.0/22
45.178.4.0/22
45.178.12.0/22
45.178.64.0/22
45.179.160.0/22
45.179.200.0/22
45.179.244.0/22
45.180.22.0/23
45.180.44.0/24
45.180.82.0/23
45.180.112.0/24
45.181.156.0/22
45.181.188.0/22
45.181.204.0/23
45.181.206.0/23
45.182.41.0/24
45.182.190.0/23
45.183.40.0/24
45.183.196.0/22
45.183.247.0/24
45.185.31.0/24
45.187.48.0/22
45.224.186.0/24
45.225.224.0/22
45.226.112.0/22
45.226.186.0/23
45.227.5.0/24
45.227.88.0/22
45.229.72.0/23
45.229.192.0/23
45.230.33.0/24
45.231.184.0/22
45.233.4.0/22
45.233.72.0/22
45.233.168.0/22
45.235.40.0/22
45.237.36.0/22
45.238.144.0/22
45.238.180.0/22
45.238.196.0/22
45.239.88.0/22
45.239.115.0/24
66.231.64.0/20
131.0.136.0/22
131.0.168.0/22
131.108.168.0/22
131.196.208.0/22
131.196.212.0/22
131.221.40.0/22
132.255.20.0/22
138.0.40.0/22
138.0.88.0/22
138.0.116.0/22
138.36.64.0/22
138.94.0.0/22
138.97.56.0/22
138.97.80.0/22
138.117.40.0/22
138.117.84.0/22
138.117.108.0/22
138.117.136.0/22
138.121.4.0/22
138.121.12.0/22
138.121.156.0/22
138.121.200.0/22
138.122.200.0/22
138.186.20.0/22
138.186.188.0/22
138.204.236.0/22
143.0.92.0/22
143.0.102.0/23
143.0.108.0/22
143.137.96.0/22
143.208.64.0/22
152.200.0.0/14
152.204.0.0/15
152.231.24.0/21
157.253.0.0/16
161.10.0.0/16
161.18.0.0/16
167.0.0.0/16
167.249.40.0/22
167.250.120.0/22
168.0.244.0/22
168.90.12.0/22
168.176.0.0/16
168.197.68.0/22
168.227.0.0/22
168.227.104.0/22
168.227.244.0/22
168.228.108.0/22
168.228.124.0/22
170.78.40.0/22
170.78.56.0/22
170.78.185.0/24
170.79.88.0/22
170.80.8.0/22
170.80.96.0/22
170.81.24.0/22
170.81.252.0/22
170.82.40.0/23
170.83.59.0/24
170.238.64.0/23
170.238.168.0/23
170.238.226.0/23
170.238.236.0/22
170.245.158.0/23
170.246.112.0/22
170.247.0.0/22
170.254.0.0/22
170.254.228.0/22
177.252.0.0/14
179.0.9.0/24
179.0.10.0/24
179.0.15.0/24
179.0.27.0/24
179.0.29.0/24
179.0.146.0/24
179.0.205.0/24
179.1.0.0/16
179.12.0.0/14
179.18.0.0/15
179.32.0.0/15
179.42.172.0/22
179.43.104.0/22
179.43.108.0/22
179.50.0.0/17
179.51.96.0/19
179.60.32.0/20
179.60.240.0/22
179.61.112.0/20
181.32.0.0/15
181.48.0.0/13
181.56.0.0/13
181.68.0.0/15
181.70.0.0/15
181.118.144.0/20
181.128.0.0/13
181.136.0.0/13
181.144.0.0/13
181.152.0.0/13
181.174.0.0/18
181.192.128.0/17
181.199.192.0/20
181.204.0.0/14
181.224.160.0/22
181.225.64.0/20
181.225.80.0/20
181.225.96.0/20
181.232.0.0/17
181.234.0.0/15
181.236.0.0/15
181.240.0.0/12
186.0.0.0/18
186.0.64.0/18
186.1.128.0/19
186.1.160.0/19
186.1.248.0/21
186.27.128.0/17
186.28.0.0/16
186.29.0.0/16
186.30.0.0/16
186.31.0.0/16
186.43.0.0/17
186.80.0.0/14
186.84.0.0/14
186.96.96.0/19
186.97.0.0/18
186.97.64.0/18
186.97.128.0/17
186.98.0.0/16
186.99.0.0/16
186.102.0.0/16
186.103.0.0/17
186.112.0.0/14
186.116.0.0/14
186.121.0.0/17
186.144.0.0/14
186.148.160.0/19
186.154.0.0/16
186.155.0.0/16
186.159.0.0/18
186.159.64.0/19
186.159.112.0/22
186.168.0.0/15
186.170.0.0/15
186.179.96.0/20
186.180.0.0/16
186.181.0.0/16
186.183.128.0/17
186.190.224.0/21
190.0.0.0/19
190.0.32.0/19
190.0.240.0/21
190.1.64.0/19
190.1.128.0/19
190.1.160.0/19
190.1.192.0/19
190.1.224.0/19
190.2.208.0/21
190.3.192.0/19
190.3.224.0/19
190.5.192.0/20
190.6.160.0/20
190.6.176.0/20
190.7.64.0/20
190.7.80.0/20
190.7.96.0/20
190.7.112.0/20
190.7.128.0/20
190.7.144.0/20
190.8.176.0/22
190.8.192.0/19
190.8.224.0/19
190.9.64.0/19
190.9.96.0/19
190.9.192.0/19
190.9.224.0/19
190.13.0.0/19
190.13.32.0/19
190.13.80.0/21
190.13.96.0/20
190.13.192.0/20
190.14.224.0/20
190.14.240.0/20
190.15.0.0/19
190.24.0.0/16
190.25.0.0/16
190.26.0.0/16
190.27.0.0/16
190.28.0.0/16
190.29.0.0/16
190.52.0.0/19
190.60.0.0/16
190.61.0.0/19
190.61.32.0/19
190.61.64.0/18
190.61.128.0/17
190.65.0.0/16
190.66.0.0/15
190.68.0.0/15
190.70.0.0/17
190.70.128.0/17
190.71.0.0/16
190.84.0.0/16
190.85.0.0/16
190.90.0.0/16
190.93.128.0/19
190.96.128.0/19
190.96.160.0/19
190.96.192.0/20
190.96.208.0/20
190.96.224.0/19
190.97.64.0/20
190.97.80.0/20
190.97.128.0/19
190.97.192.0/19
190.99.128.0/17
190.102.120.0/21
190.102.160.0/19
190.102.192.0/20
190.102.208.0/20
190.103.96.0/20
190.103.112.0/20
190.107.16.0/20
190.109.128.0/19
190.109.160.0/19
190.110.64.0/19
190.115.224.0/19
190.120.128.0/20
190.121.128.0/20
190.121.144.0/20
190.124.96.0/19
190.125.0.0/16
190.126.0.0/15
190.128.0.0/19
190.128.32.0/19
190.128.64.0/18
190.130.64.0/18
190.131.192.0/18
190.143.0.0/18
190.143.64.0/18
190.144.0.0/14
190.151.192.0/18
190.156.0.0/15
190.158.0.0/15
190.165.0.0/18
190.165.64.0/18
190.165.128.0/17
190.182.0.0/18
190.182.64.0/18
190.184.128.0/18
190.184.200.0/21
190.211.140.0/22
190.240.0.0/18
190.240.64.0/18
190.240.128.0/17
190.242.0.0/16
190.243.0.0/16
190.248.0.0/15
190.250.0.0/15
190.252.0.0/14
191.64.0.0/12
191.88.0.0/13
191.97.0.0/20
191.98.0.0/17
191.102.0.0/20
191.102.60.0/22
191.102.64.0/18
191.102.192.0/19
191.102.224.0/20
191.103.128.0/17
191.104.0.0/13
191.144.0.0/12
192.68.185.0/24
192.92.154.0/24
192.135.95.0/24
192.140.124.0/23
198.49.128.0/22
198.51.71.0/24
200.0.0.0/21
200.0.187.0/24
200.0.201.0/24
200.1.64.0/19
200.1.96.0/21
200.1.124.0/24
200.1.126.0/24
200.1.127.0/24
200.1.173.0/24
200.1.175.0/24
200.1.192.0/21
200.2.64.0/21
200.3.128.0/20
200.3.144.0/23
200.3.147.0/24
200.3.148.0/22
200.3.152.0/22
200.3.156.0/22
200.3.160.0/21
200.3.192.0/23
200.3.244.0/22
200.4.16.0/20
200.6.160.0/20
200.6.176.0/20
200.9.72.0/24
200.9.94.0/24
200.9.158.0/23
200.10.136.0/23
200.10.154.0/24
200.10.164.0/24
200.10.174.0/23
200.11.40.0/21
200.12.170.0/24
200.12.175.0/24
200.12.176.0/20
200.13.192.0/19
200.13.224.0/19
200.14.40.0/21
200.14.112.0/23
200.16.68.0/22
200.16.79.0/24
200.16.117.0/24
200.16.118.0/23
200.21.0.0/16
200.23.115.0/24
200.24.0.0/21
200.24.8.0/24
200.24.9.0/24
200.24.16.0/20
200.24.32.0/20
200.24.48.0/20
200.24.96.0/20
200.24.112.0/20
200.25.0.0/17
200.25.224.0/20
200.25.240.0/20
200.26.128.0/19
200.29.96.0/20
200.29.112.0/20
200.29.232.0/21
200.30.64.0/20
200.30.80.0/20
200.30.96.0/19
200.31.64.0/19
200.31.192.0/20
200.31.208.0/20
200.34.0.0/24
200.34.171.0/24
200.35.32.0/20
200.35.48.0/20
200.47.172.0/22
200.47.216.0/22
200.58.192.0/20
200.58.208.0/20
200.58.224.0/20
200.61.128.0/19
200.69.64.0/19
200.69.96.0/20
200.69.112.0/20
200.71.32.0/20
200.71.48.0/20
200.73.0.0/18
200.73.64.0/19
200.74.128.0/19
200.75.32.0/19
200.75.64.0/19
200.80.0.0/18
200.81.56.0/21
200.85.224.0/20
200.85.240.0/20
200.89.96.0/20
200.89.112.0/20
200.89.192.0/20
200.89.208.0/20
200.89.224.0/20
200.89.240.0/20
200.91.192.0/19
200.91.224.0/19
200.93.128.0/19
200.93.160.0/19
200.110.128.0/19
200.110.168.0/21
200.112.192.0/20
200.112.208.0/21
200.114.0.0/20
200.114.16.0/20
200.114.32.0/19
200.115.178.0/24
200.115.180.0/24
200.115.181.0/24
200.116.0.0/17
200.116.128.0/17
200.118.0.0/17
200.118.128.0/17
200.119.0.0/19
200.119.32.0/19
200.119.64.0/18
200.122.192.0/19
200.122.224.0/20
200.122.240.0/20
200.124.124.0/23
200.192.106.0/24
201.130.16.0/22
201.131.46.0/24
201.131.78.0/24
201.131.90.0/23
201.131.97.0/24
201.131.114.0/24
201.131.188.0/22
201.150.96.0/22
201.182.248.0/22
201.184.0.0/15
201.190.64.0/18
201.216.0.0/19
201.216.32.0/19
201.217.192.0/19
201.219.112.0/20
201.219.192.0/19
201.219.240.0/21
201.220.30.0/23
201.220.32.0/20
201.220.48.0/20
201.220.64.0/20
201.220.80.0/20
201.221.122.0/24
201.221.124.0/23
201.221.128.0/20
201.221.144.0/20
201.221.160.0/20
201.221.176.0/20
201.228.0.0/17
201.228.128.0/17
201.232.0.0/17
201.232.128.0/17
201.233.0.0/17
201.233.128.0/17
201.236.192.0/19
201.236.224.0/19
201.244.0.0/16
201.245.0.0/16
206.223.124.0/24
207.248.81.0/24
216.241.0.0/19

415
etc/iptables/zone/eu.zone Normal file
View File

@@ -0,0 +1,415 @@
2.16.0.0/13
5.23.0.0/19
5.104.64.0/21
5.181.200.0/22
37.26.112.0/20
37.139.64.0/21
37.235.48.0/20
37.244.0.0/18
37.252.160.0/20
45.11.104.0/22
45.12.68.0/22
45.43.64.0/19
46.22.64.0/20
46.31.232.0/21
46.58.0.0/17
46.234.32.0/19
46.235.152.0/21
62.51.0.0/16
62.62.0.0/17
62.78.0.0/19
62.102.0.0/17
62.115.0.0/16
62.134.0.0/16
62.164.0.0/17
62.180.0.0/19
62.180.32.0/19
62.180.64.0/18
62.180.128.0/17
62.184.0.0/16
62.185.0.0/16
62.186.0.0/16
62.187.0.0/16
62.200.0.0/16
62.229.0.0/16
62.230.0.0/16
77.81.124.0/22
77.81.160.0/22
77.232.64.0/19
77.243.176.0/20
78.108.112.0/20
79.110.168.0/22
79.170.112.0/21
80.67.64.0/20
80.67.80.0/20
80.81.128.0/20
80.84.16.0/20
80.86.160.0/20
80.86.176.0/20
80.91.240.0/20
80.208.254.0/24
80.209.254.0/24
80.231.0.0/16
80.239.128.0/20
80.239.144.0/20
80.239.160.0/20
80.239.176.0/20
80.239.192.0/20
80.239.208.0/20
80.239.224.0/20
80.239.240.0/20
80.240.128.0/20
81.209.128.0/17
82.129.0.0/17
82.138.128.0/18
82.150.0.0/19
82.196.32.0/19
82.197.128.0/19
83.124.0.0/14
83.133.0.0/16
83.143.240.0/21
84.39.112.0/21
84.39.136.0/21
84.39.152.0/21
84.40.0.0/19
84.40.32.0/21
84.40.48.0/21
84.53.128.0/18
84.247.36.0/22
85.90.244.0/22
85.91.44.0/22
85.204.148.0/22
85.204.160.0/22
86.105.32.0/21
86.105.227.0/24
86.106.102.0/24
87.239.249.0/24
87.239.250.0/23
87.239.252.0/23
88.221.0.0/16
89.30.0.0/17
89.33.6.0/23
89.36.255.0/24
89.42.155.0/24
92.61.144.0/20
92.114.48.0/22
92.122.0.0/15
93.174.208.0/21
93.184.208.0/20
93.191.168.0/21
93.191.216.0/21
94.102.160.0/20
94.127.72.0/21
94.176.168.0/22
94.177.4.0/23
95.85.0.0/18
95.100.0.0/15
95.130.112.0/21
107.161.160.0/20
107.181.128.0/19
109.69.136.0/21
109.72.144.0/20
109.106.160.0/19
109.233.176.0/21
109.237.24.0/22
134.0.72.0/21
141.101.64.0/18
146.66.152.0/21
149.154.152.0/21
151.236.0.0/19
151.249.88.0/21
155.254.32.0/19
158.255.208.0/21
162.217.248.0/22
162.220.240.0/21
176.10.80.0/21
178.62.0.0/16
178.79.192.0/18
185.3.28.0/22
185.10.104.0/22
185.16.216.0/22
185.25.180.0/22
185.26.236.0/22
185.27.228.0/22
185.29.8.0/22
185.31.16.0/22
185.32.192.0/22
185.33.4.0/22
185.36.20.0/22
185.36.140.0/22
185.42.204.0/22
185.43.52.0/22
185.45.8.0/22
185.53.128.0/22
185.55.208.0/22
185.57.56.0/22
185.60.84.0/22
185.60.236.0/22
185.63.76.0/22
185.83.216.0/22
185.114.225.0/24
185.114.226.0/23
185.115.124.0/22
185.115.128.0/22
185.115.240.0/22
185.117.20.0/22
185.119.252.0/22
185.120.4.0/22
185.120.12.0/22
185.120.20.0/22
185.120.32.0/22
185.122.36.0/22
185.122.56.0/22
185.135.212.0/22
185.225.204.0/22
185.231.112.0/22
185.238.188.0/22
188.114.96.0/20
188.226.128.0/17
188.244.96.0/22
193.27.64.0/23
193.31.208.0/20
193.108.64.0/21
193.124.20.0/23
193.127.0.0/16
193.149.192.0/20
193.149.208.0/21
193.149.216.0/24
193.149.218.0/23
193.149.220.0/22
193.149.224.0/24
193.149.226.0/23
193.149.228.0/22
193.149.232.0/21
193.254.64.0/18
194.10.0.0/16
194.29.66.0/24
194.29.72.0/24
194.29.76.0/23
194.29.81.0/24
194.29.82.0/23
194.29.84.0/22
194.29.88.0/21
194.29.96.0/24
194.29.102.0/23
194.29.104.0/21
194.29.112.0/23
194.29.115.0/24
194.29.116.0/23
194.29.121.0/24
194.29.122.0/23
194.29.124.0/22
194.42.163.0/24
194.42.164.0/22
194.42.168.0/21
194.58.64.0/23
194.69.32.0/22
194.69.38.0/23
194.69.40.0/23
194.69.44.0/22
194.69.48.0/21
194.69.56.0/22
194.69.144.0/20
194.69.168.0/21
194.69.176.0/24
194.69.178.0/23
194.69.180.0/24
194.69.182.0/24
194.133.0.0/16
194.135.26.0/23
194.135.132.0/23
194.161.0.0/16
194.194.0.0/16
194.196.0.0/19
194.196.32.0/19
194.196.64.0/18
194.196.128.0/17
194.234.0.0/16
194.235.0.0/16
194.253.0.0/16
195.2.32.0/19
195.12.224.0/19
195.51.0.0/16
195.61.0.0/16
195.74.160.0/19
195.75.0.0/16
195.79.0.0/16
195.90.32.0/19
195.118.0.0/16
195.119.0.0/16
195.129.0.0/19
195.129.32.0/19
195.129.64.0/18
195.129.128.0/17
195.182.96.0/19
195.183.0.0/16
195.212.0.0/16
195.219.0.0/19
195.219.32.0/19
195.219.64.0/19
195.219.96.0/19
195.219.128.0/19
195.219.160.0/19
195.219.192.0/18
195.234.24.0/23
195.246.116.0/23
198.105.96.0/19
209.250.224.0/19
212.0.0.0/18
212.8.160.0/19
212.100.0.0/19
212.117.224.0/19
212.159.192.0/18
212.167.0.0/16
213.62.0.0/16
213.116.0.0/16
213.117.0.0/16
213.137.160.0/19
213.155.128.0/19
213.166.96.0/19
213.168.248.0/22
213.219.36.0/22
213.248.64.0/18
217.15.160.0/20
217.22.28.0/22
217.71.96.0/20
217.112.144.0/20
62.95.128.0/17
81.11.0.0/17
84.205.64.0/19
84.234.16.0/20
91.195.166.0/23
91.202.200.0/22
91.203.120.0/22
91.208.56.0/24
91.208.85.0/24
91.210.64.0/22
91.216.56.0/24
91.217.14.0/23
91.237.250.0/24
93.175.144.0/21
93.175.152.0/22
93.175.156.0/23
93.175.158.0/24
93.175.159.0/24
131.176.0.0/16
138.199.0.0/16
139.92.0.0/16
139.191.0.0/16
144.44.0.0/16
145.218.0.0/16
146.106.0.0/16
148.185.0.0/16
151.106.128.0/19
151.106.224.0/20
151.175.0.0/16
158.67.0.0/16
159.245.0.0/16
163.171.64.0/18
163.171.128.0/17
192.81.182.0/23
192.81.184.0/24
192.84.176.0/20
192.84.192.0/21
192.84.200.0/23
192.84.202.0/24
192.84.203.0/24
192.84.204.0/22
192.108.23.0/24
192.108.24.0/23
192.108.26.0/24
192.108.27.0/24
192.108.28.0/24
192.108.29.0/24
192.108.30.0/24
192.108.31.0/24
192.108.32.0/24
192.108.33.0/24
192.108.34.0/24
192.108.35.0/24
192.108.36.0/22
192.108.40.0/22
192.108.44.0/24
192.108.45.0/24
192.108.46.0/24
192.108.47.0/24
192.147.251.0/24
192.171.1.0/24
192.171.2.0/23
192.171.4.0/23
193.9.1.0/24
193.9.2.0/23
193.9.4.0/22
193.25.198.0/24
193.35.37.0/24
193.41.104.0/21
193.43.236.0/22
193.53.99.0/24
193.53.100.0/24
193.58.0.48/29
193.93.96.0/22
193.108.88.0/21
193.108.152.0/22
193.150.8.0/22
193.187.0.0/24
193.200.150.0/24
193.201.252.0/22
193.202.24.0/22
193.202.28.0/23
193.202.30.0/24
193.202.64.0/21
193.202.72.0/23
193.202.77.0/24
193.202.78.0/23
193.219.5.0/24
193.219.6.0/24
193.221.121.0/24
193.239.4.0/22
193.254.198.0/23
194.0.38.0/24
194.0.39.0/24
194.0.40.0/24
194.0.41.0/24
194.29.64.0/23
194.29.68.0/23
194.29.71.0/24
194.29.79.0/24
194.29.97.0/24
194.29.98.0/24
194.29.99.0/24
194.29.114.0/24
194.29.118.0/23
194.29.120.0/24
194.42.160.0/23
194.42.162.0/24
194.42.176.0/20
194.69.160.0/21
194.69.181.0/24
194.69.183.0/24
194.69.184.0/21
194.93.96.0/23
194.93.98.0/24
194.105.120.0/21
194.146.94.0/23
195.3.208.0/22
195.24.250.0/23
195.46.39.0/24
195.93.196.0/23
195.95.192.0/23
195.95.194.0/23
195.130.199.0/24
195.178.6.0/23
195.191.102.0/23
195.225.62.0/23
195.245.108.0/23
195.245.124.0/23
195.245.126.0/23
199.247.0.0/19
202.0.77.0/24
207.229.112.0/22
207.229.116.0/24
207.229.118.0/23
207.229.120.0/24
207.229.122.0/23
207.229.124.0/22
209.162.128.0/19

2747
etc/iptables/zone/id.zone Normal file

File diff suppressed because it is too large Load Diff

6002
etc/iptables/zone/in.zone Normal file

File diff suppressed because it is too large Load Diff

197
etc/iptables/zone/iq.zone Normal file
View File

@@ -0,0 +1,197 @@
2.56.36.0/22
5.1.104.0/21
5.8.240.0/21
5.10.224.0/21
5.42.192.0/19
5.62.128.0/21
5.62.136.0/21
5.62.144.0/21
5.149.96.0/20
31.25.136.0/21
37.17.128.0/19
37.77.48.0/21
37.77.64.0/20
37.98.224.0/21
37.156.104.0/22
37.205.112.0/21
37.236.0.0/14
45.81.144.0/22
45.82.60.0/22
45.84.232.0/22
45.128.120.0/22
45.134.240.0/22
45.143.28.0/22
45.148.92.0/22
45.151.76.0/22
45.153.116.0/22
45.157.52.0/22
45.157.148.0/22
46.21.251.0/24
46.30.224.0/21
46.243.16.0/21
46.253.128.0/20
62.201.192.0/18
78.109.224.0/20
81.90.16.0/20
81.95.80.0/20
82.199.208.0/20
85.31.40.0/22
85.194.196.0/22
85.194.248.0/22
85.208.228.0/22
86.111.144.0/21
89.33.66.0/23
89.46.200.0/21
91.106.32.0/19
91.108.192.0/18
91.192.4.0/22
92.119.60.0/22
93.91.192.0/20
93.94.48.0/21
93.187.32.0/21
93.191.112.0/22
95.159.64.0/18
95.170.192.0/19
109.127.64.0/18
109.205.112.0/21
109.224.0.0/18
130.193.128.0/17
130.255.0.0/21
130.255.88.0/22
130.255.92.0/22
131.117.224.0/19
149.255.192.0/18
151.236.160.0/19
159.255.160.0/21
164.138.232.0/21
176.28.72.0/21
176.105.236.0/22
176.222.60.0/22
176.241.80.0/20
178.22.32.0/21
185.9.68.0/22
185.12.24.0/22
185.14.248.0/22
185.16.24.0/22
185.20.24.0/22
185.20.196.0/22
185.21.136.0/22
185.23.152.0/22
185.24.60.0/22
185.27.216.0/22
185.33.44.0/22
185.34.16.0/22
185.37.88.0/22
185.37.160.0/22
185.38.212.0/22
185.42.192.0/22
185.47.180.0/22
185.51.220.0/22
185.52.100.0/22
185.52.116.0/22
185.54.156.0/22
185.54.164.0/22
185.55.184.0/22
185.56.192.0/22
185.58.12.0/22
185.65.252.0/22
185.69.4.0/22
185.72.252.0/22
185.75.96.0/22
185.76.32.0/22
185.80.40.0/22
185.84.68.0/22
185.88.24.0/22
185.89.88.0/22
185.90.104.0/22
185.91.16.0/22
185.95.184.0/22
185.95.204.0/22
185.98.24.0/22
185.100.20.0/22
185.101.236.0/22
185.104.156.0/22
185.106.28.0/22
185.112.188.0/22
185.112.232.0/22
185.113.104.0/22
185.117.8.0/22
185.118.8.0/22
185.118.44.0/22
185.118.96.0/22
185.118.128.0/22
185.122.252.0/22
185.124.148.0/22
185.128.36.0/22
185.129.4.0/22
185.130.48.0/22
185.133.224.0/22
185.135.68.0/22
185.135.196.0/22
185.136.148.0/22
185.136.240.0/22
185.138.120.0/22
185.140.192.0/22
185.141.8.0/22
185.143.40.0/22
185.155.156.0/22
185.157.180.0/22
185.158.20.0/22
185.164.216.0/22
185.166.24.0/22
185.172.228.0/22
185.180.60.0/22
185.181.52.0/22
185.184.196.0/22
185.184.216.0/22
185.185.172.0/22
185.187.204.0/22
185.194.8.0/22
185.203.52.0/22
185.206.124.0/22
185.206.172.0/22
185.217.76.0/22
185.217.88.0/22
185.220.112.0/22
185.227.236.0/22
185.230.40.0/22
185.239.16.0/22
185.239.52.0/22
185.239.176.0/22
185.247.176.0/22
185.248.24.0/22
185.253.76.0/22
185.254.84.0/22
185.255.44.0/22
188.72.0.0/18
192.161.6.0/23
192.166.36.0/22
193.194.130.0/23
193.194.142.0/23
194.31.93.0/24
194.31.193.0/24
194.31.199.0/24
194.31.220.0/24
194.39.228.0/22
194.113.196.0/22
194.117.56.0/21
194.127.108.0/22
194.153.76.0/23
194.153.102.0/23
194.156.76.0/22
194.180.40.0/22
195.7.8.0/22
195.69.228.0/22
195.85.218.0/24
195.85.223.0/24
195.85.226.0/24
195.85.244.0/24
195.133.220.0/22
212.126.96.0/19
212.237.112.0/20
213.32.252.0/22
217.145.228.0/22
91.213.191.0/24
91.217.185.0/24
185.1.98.0/24
193.106.196.0/22

4311
etc/iptables/zone/jp.zone Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
175.45.176.0/22

2020
etc/iptables/zone/kr.zone Normal file

File diff suppressed because it is too large Load Diff

10497
etc/iptables/zone/ru.zone Normal file

File diff suppressed because it is too large Load Diff

1711
etc/iptables/zone/za.zone Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
[Unit]
Description=iptables firewall service
After=network.target
[Service]
Type=oneshot
ExecStart=/etc/iptables/service.sh start
RemainAfterExit=true
ExecStop=/etc/iptables/service.sh stop
StandardOutput=journal
[Install]
WantedBy=multi-user.target