Forum Home
Press F1
 
Thread ID: 113624 2010-10-28 11:05:00 Allowing only NZ IPs - :) WarNox (8772) Press F1
Post ID Timestamp Content User
1148433 2010-10-28 11:05:00 I just found this amusing so I'll post it on here. My plan was to block all IPs except NZ ones from accessing a certain network, and then I found this list and decided writing Access Lists would just not be worth it :D

All IPs assigned to New Zealand (apparently):

14.1.32.0/19
14.1.64.0/19
14.128.4.0/22
27.96.64.0/22
27.110.120.0/21
27.111.12.0/22
27.121.96.0/22
27.252.0.0/16
58.28.0.0/16
58.84.224.0/20
60.234.0.0/19
60.234.32.0/20
60.234.48.0/24
60.234.49.0/26
60.234.49.64/28
60.234.49.96/27
60.234.49.128/25
60.234.50.0/23
60.234.52.0/22
60.234.56.0/21
60.234.64.0/23
60.234.66.0/28
60.234.66.16/29
60.234.66.32/27
60.234.66.64/26
60.234.66.128/25
60.234.67.0/24
60.234.68.0/23
60.234.70.0/25
60.234.70.128/26
60.234.71.0/24
60.234.72.0/21
60.234.80.0/20
60.234.96.0/20
60.234.112.0/21
60.234.120.0/23
60.234.122.0/25
60.234.122.160/27
60.234.122.192/26
60.234.123.0/24
60.234.124.0/22
60.234.128.0/17
61.14.141.224/28
61.28.206.0/24
64.34.49.8/29
64.34.137.0/27
64.39.12.192/28
64.39.19.128/28
64.39.20.0/29
64.39.28.56/29
64.45.25.160/28
64.49.194.96/29
64.49.199.168/29
64.49.201.216/29
64.49.206.216/29
64.49.228.152/29
64.49.235.160/29
64.49.235.184/29
64.49.236.8/29
64.93.82.224/28
64.106.143.40/29
64.106.143.48/31
64.106.156.50/31
64.106.156.52/30
64.106.156.56/29
64.106.156.64/28
64.106.174.10/31
64.106.174.12/30
64.106.174.16/30
64.106.229.70/31
64.106.229.72/29
64.187.102.120/29
65.17.219.80/29
65.17.219.88/31
65.17.234.40/29
65.17.234.48/28
65.17.234.64/28
65.61.133.96/29
65.61.138.224/28
65.61.138.240/29
65.61.145.120/29
65.61.156.112/28
65.99.197.120/29
65.99.197.192/29
65.244.225.0/27
66.29.197.145/32
66.29.197.146/31
66.29.197.148/30
66.29.197.152/30
66.29.197.156/32
66.111.208.0/22
66.111.220.0/22
66.216.80.0/29
66.216.87.48/29
66.216.99.40/29
66.216.104.32/28
66.216.106.192/29
66.216.108.152/29
66.219.29.0/27
67.23.187.0/27
67.192.9.32/29
67.192.53.160/29
67.192.142.64/29
67.192.170.200/29
67.192.172.64/29
67.192.235.232/29
67.198.161.0/24
67.198.162.0/24
67.201.33.160/28
67.215.3.104/29
67.229.152.0/21
67.229.160.0/21
69.20.85.152/29
69.30.246.112/28
69.61.33.152/29
69.61.45.40/29
69.90.77.184/29
70.33.241.16/28
72.3.251.248/29
72.9.145.94/31
72.9.145.96/30
72.9.145.100/31
72.9.147.18/31
72.9.147.20/30
72.9.147.24/31
72.13.82.112/29
72.29.27.0/27
72.32.21.16/29
72.32.61.200/29
72.32.107.168/29
72.32.116.200/29
72.32.151.160/29
72.32.163.184/29
72.32.168.72/29
72.32.171.152/29
72.32.240.48/29
72.35.5.112/28
74.205.39.8/29
74.205.47.8/29
74.205.55.8/29
74.205.60.112/29
74.205.101.232/29
74.205.110.112/29
74.205.112.200/29
76.74.223.240/28
78.24.205.112/28
80.190.227.128/28
80.190.227.152/29
82.113.134.160/27
89.184.165.0/29
89.187.105.192/28
92.61.245.128/28
92.61.245.144/29
98.129.32.48/29
98.129.95.120/29
98.129.95.248/29
98.129.108.24/29
98.129.116.104/29
98.129.129.192/29
98.129.138.80/29
98.129.146.0/29
98.129.211.160/29
110.34.48.0/22
110.44.16.0/22
110.92.16.0/22
110.173.160.0/20
110.232.144.0/22
111.65.224.0/20
111.69.0.0/16
112.109.64.0/19
113.21.224.0/22
113.130.120.0/22
113.197.64.0/22
113.197.96.0/22
114.31.208.0/22
114.110.32.0/21
114.134.0.0/20
114.134.160.0/19
115.126.128.0/21
115.187.96.0/19
115.188.0.0/15
116.66.240.0/21
116.89.224.0/20
116.90.76.0/22
116.90.128.0/20
116.93.128.0/20
116.193.144.0/21
116.199.208.0/20
117.18.80.0/21
117.53.144.0/21
117.53.156.0/22
117.104.176.0/21
117.120.32.0/21
118.82.128.0/17
118.90.0.0/16
118.92.0.0/15
118.148.0.0/15
119.15.0.0/19
119.47.112.0/20
119.224.0.0/16
119.235.32.0/21
120.89.80.0/21
120.136.0.0/21
120.136.48.0/20
120.138.16.0/20
121.54.176.0/21
121.72.0.0/14
121.79.192.0/18
121.90.0.0/16
121.98.0.0/15
122.56.0.0/13
122.152.133.160/28
123.100.64.0/18
123.108.144.0/21
123.255.0.0/18
124.6.192.0/19
124.150.160.0/20
124.155.224.0/20
124.157.64.0/18
124.197.0.0/18
124.198.128.0/17
124.248.128.0/20
125.236.0.0/14
130.123.0.0/16
130.195.0.0/16
130.216.0.0/15
131.203.0.0/16
132.181.0.0/16
134.159.120.8/29
134.159.120.64/27
134.159.121.144/28
134.159.121.160/28
134.159.122.120/29
134.159.151.144/28
134.159.151.160/29
134.159.151.208/30
138.75.0.0/16
138.211.0.0/16
138.235.0.0/16
139.80.0.0/16
140.200.0.0/16
143.96.0.0/16
144.66.0.0/16
146.171.0.0/16
147.158.0.0/16
150.206.0.0/16
152.153.0.0/16
153.111.0.0/16
155.32.0.0/16
155.59.0.0/16
156.13.0.0/16
156.59.0.0/16
156.62.0.0/16
156.69.0.0/16
156.149.0.0/16
159.117.0.0/16
160.4.0.0/16
161.29.0.0/16
161.65.0.0/16
161.66.0.0/16
162.112.0.0/16
163.7.0.0/16
165.84.0.0/16
165.205.0.0/16
166.65.0.0/16
166.83.0.0/16
166.106.0.0/16
167.179.0.0/16
173.203.12.96/29
173.203.129.64/28
173.203.129.144/28
173.203.147.248/29
173.203.166.88/29
173.203.166.136/29
173.224.115.224/27
174.143.57.112/29
174.143.60.32/28
174.143.64.240/29
174.143.114.240/29
174.143.190.56/29
174.143.190.72/29
175.111.100.0/22
175.176.216.0/22
180.189.192.0/19
180.210.208.0/22
180.222.64.0/22
182.16.152.0/22
182.23.176.0/21
182.48.128.0/19
182.50.160.0/22
182.54.160.0/20
182.154.0.0/16
182.236.120.0/21
192.54.130.0/24
192.65.248.0/24
192.67.168.0/24
192.73.21.0/24
192.84.253.0/24
192.86.12.0/24
192.88.85.0/24
192.88.119.0/24
192.88.190.0/24
192.92.15.0/24
192.94.169.0/24
192.100.53.0/24
192.101.16.0/24
192.102.92.0/24
192.104.252.0/24
192.105.10.0/24
192.107.10.0/24
192.107.112.0/23
192.107.171.0/24
192.107.172.0/24
192.111.102.0/24
192.122.171.0/24
192.122.180.0/24
192.124.24.0/24
192.133.31.0/24
192.133.66.0/24
192.138.251.0/24
192.146.133.0/24
192.146.150.0/24
192.146.218.0/23
192.147.151.0/24
192.147.152.0/23
192.148.221.0/24
192.150.144.0/24
192.150.218.0/23
192.150.220.0/24
192.153.251.0/24
192.156.165.0/24
192.156.225.0/24
192.160.226.0/24
192.161.128.0/23
192.173.16.0/20
192.188.43.0/24
192.188.71.0/24
192.188.185.0/24
192.188.241.0/24
192.189.34.0/24
192.190.108.0/24
192.195.12.0/23
192.195.14.0/24
192.195.186.0/24
192.195.219.0/24
192.200.64.0/20
192.203.81.0/24
192.203.82.0/23
192.203.84.0/22
192.203.88.0/21
192.203.99.0/24
192.203.154.0/24
192.203.208.0/23
192.203.216.0/24
192.206.152.0/22
192.206.156.0/23
192.207.143.0/24
192.230.16.0/20
192.231.15.0/24
192.231.183.0/24
192.231.248.0/24
192.245.36.0/24
192.245.73.0/24
192.245.74.0/23
192.245.76.0/22
192.245.80.0/24
192.245.94.0/24
192.245.185.0/24
192.245.220.0/24
192.251.230.0/24
194.117.104.16/30
194.117.104.24/30
194.117.104.32/30
194.117.104.128/30
194.117.104.156/30
194.117.104.224/30
195.112.176.20/30
195.112.176.36/30
195.112.176.48/30
195.112.176.64/30
195.112.176.84/30
195.112.176.148/30
195.112.176.176/30
195.112.176.192/30
195.112.176.236/30
198.22.37.0/24
198.27.4.0/22
198.27.8.0/24
198.41.16.0/20
198.48.0.0/22
198.49.3.0/24
198.51.195.0/24
198.61.0.0/22
202.0.32.0/19
202.0.84.0/24
202.0.97.0/24
202.0.121.0/24
202.0.124.0/23
202.0.151.0/24
202.0.153.0/24
202.1.8.0/21
202.2.4.0/22
202.2.8.0/21
202.3.16.0/20
202.4.16.0/21
202.4.24.0/24
202.6.5.0/24
202.6.6.0/23
202.6.84.0/23
202.6.87.0/24
202.6.93.0/24
202.6.109.0/24
202.6.110.0/24
202.6.116.0/23
202.7.0.0/23
202.7.4.0/22
202.7.32.0/20
202.7.48.0/22
202.7.60.0/22
202.8.8.0/22
202.8.12.0/23
202.8.44.0/22
202.9.88.0/24
202.9.224.0/19
202.12.0.0/24
202.12.3.0/24
202.12.70.0/24
202.12.76.0/22
202.12.80.0/22
202.12.84.0/23
202.12.91.0/24
202.12.96.0/24
202.12.104.0/23
202.12.108.0/24
202.12.122.0/23
202.12.124.0/24
202.12.248.0/21
202.14.16.0/20
202.14.32.0/19
202.14.73.0/24
202.14.74.0/23
202.14.82.0/23
202.14.84.0/24
202.14.96.0/23
202.14.99.0/24
202.14.100.0/24
202.14.102.0/24
202.14.106.0/23
202.14.108.0/23
202.14.114.0/23
202.14.127.0/24
202.14.135.0/24
202.14.136.0/24
202.14.140.0/23
202.14.142.0/24
202.14.149.0/24
202.14.167.0/24
202.14.168.0/24
202.14.216.0/23
202.14.218.0/24
202.14.224.0/22
202.14.228.0/24
202.14.252.0/23
202.14.254.0/24
202.20.0.0/21
202.20.32.0/19
202.20.64.0/23
202.20.76.0/22
202.20.80.0/24
202.20.91.0/24
202.20.92.0/23
202.20.96.0/23
202.20.102.0/23
202.20.104.0/24
202.20.113.0/24
202.20.121.0/24
202.20.122.0/24
202.21.16.0/20
202.21.64.0/19
202.21.96.0/20
202.21.128.0/24
202.21.130.0/23
202.21.132.0/23
202.21.136.0/22
202.21.141.0/24
202.21.142.0/23
202.21.155.0/24
202.21.156.0/23
202.22.0.0/21
202.22.16.0/21
202.22.24.0/22
202.22.28.0/23
202.22.30.0/24
202.27.0.0/21
202.27.8.0/24
202.27.32.0/19
202.27.64.0/20
202.27.80.0/21
202.27.88.0/23
202.27.90.0/24
202.27.92.0/22
202.27.96.0/19
202.27.128.0/17
202.36.0.0/16
202.37.0.0/17
202.37.128.0/19
202.37.160.0/20
202.37.176.0/22
202.37.180.0/23
202.37.183.0/24
202.37.184.0/21
202.37.192.0/18
202.41.136.0/22
202.41.140.0/24
202.46.160.0/19
202.49.0.0/16
202.50.0.0/19
202.50.32.0/20
202.50.48.0/24
202.50.50.0/23
202.50.52.0/22
202.50.56.0/21
202.50.64.0/20
202.50.80.0/22
202.50.85.0/24
202.50.86.0/23
202.50.88.0/21
202.50.96.0/19
202.50.128.0/17
202.52.152.0/24
202.52.155.0/24
202.53.176.0/20
202.55.96.0/20
202.56.32.0/20
202.56.48.0/21
202.59.224.0/24
202.61.2.0/23
202.62.245.0/24
202.65.160.0/21
202.68.80.0/20
202.70.130.0/24
202.73.192.0/20
202.74.192.0/19
202.74.224.0/21
202.78.128.0/19
202.78.240.0/21
202.86.96.0/20
202.89.4.0/22
202.89.32.0/19
202.89.128.0/19
202.95.250.0/24
202.124.96.0/19
202.125.110.0/24
202.126.80.0/21
202.126.192.0/20
202.127.8.0/22
202.128.108.0/23
202.129.208.0/24
202.129.253.0/24
202.134.48.0/24
202.134.53.0/24
202.135.142.160/27
202.137.224.0/24
202.137.240.0/21
202.146.186.0/24
202.147.43.80/28
202.147.46.24/29
202.147.46.32/28
202.147.46.176/29
202.150.96.0/19
202.154.128.0/19
202.160.48.0/20
202.160.112.0/21
202.162.72.0/23
202.162.176.0/21
202.164.28.0/22
202.169.192.0/19
202.170.160.0/20
202.171.65.128/26
202.174.6.0/23
202.174.112.0/21
202.174.160.0/19
202.175.128.0/20
202.180.64.0/18
202.189.160.0/20
202.191.32.0/20
203.9.176.0/21
203.21.25.56/30
203.21.25.76/30
203.21.25.108/30
203.21.25.140/30
203.21.25.200/29
203.21.27.0/27
203.21.27.36/30
203.21.27.96/28
203.21.27.128/29
203.21.27.152/29
203.21.27.192/28
203.21.27.224/27
203.21.31.52/30
203.21.31.72/29
203.21.31.80/28
203.21.31.96/28
203.21.31.152/30
203.21.31.168/29
203.21.31.192/29
203.21.31.224/27
203.26.179.0/24
203.30.174.0/24
203.57.145.0/24
203.79.64.0/18
203.80.60.0/22
203.83.218.0/24
203.84.134.0/23
203.86.192.0/20
203.89.160.0/19
203.92.25.0/24
203.92.213.0/24
203.96.0.0/15
203.98.0.0/18
203.98.193.248/29
203.99.32.0/21
203.99.64.0/21
203.99.128.0/23
203.99.132.0/22
203.100.208.0/20
203.109.128.0/17
203.110.0.0/18
203.114.128.0/18
203.118.128.0/18
203.118.241.0/24
203.119.56.0/24
203.119.84.0/24
203.144.32.0/20
203.152.96.0/19
203.160.112.0/20
203.163.54.0/24
203.163.68.16/28
203.163.68.32/28
203.163.68.64/27
203.163.68.96/28
203.163.68.112/30
203.163.68.116/32
203.163.68.120/29
203.163.68.128/29
203.163.68.152/29
203.163.68.224/29
203.163.70.64/26
203.163.71.64/27
203.163.71.224/27
203.166.118.144/29
203.167.128.0/17
203.170.56.0/24
203.170.88.0/24
203.171.4.0/24
203.171.32.0/19
203.171.208.0/24
203.171.223.0/24
203.173.128.0/17
203.174.26.0/24
203.174.30.0/23
203.175.112.0/21
203.176.122.0/23
203.176.124.0/22
203.176.154.0/23
203.176.188.0/24
203.184.0.0/18
203.190.208.0/21
203.191.7.0/24
203.192.141.208/28
203.192.179.192/29
203.194.70.144/28
203.196.101.0/24
203.196.102.0/24
203.196.112.224/28
203.196.121.0/25
203.196.121.128/27
203.207.60.0/23
203.208.21.0/24
203.211.64.0/18
203.215.142.0/23
203.217.142.0/23
203.222.54.64/28
203.222.54.172/30
203.222.63.52/30
203.222.63.176/28
203.222.172.144/28
203.222.172.192/30
203.222.175.0/24
204.15.198.136/29
204.15.198.240/29
204.232.186.136/29
205.214.84.64/29
205.214.84.104/29
205.214.84.152/29
205.214.85.40/29
206.72.120.8/29
206.72.123.32/27
206.72.123.240/28
206.72.124.224/27
206.214.208.170/31
206.214.209.28/31
206.214.209.82/31
206.214.209.84/31
206.214.210.31/32
206.214.210.32/31
206.214.210.34/32
206.214.211.137/32
206.214.211.248/30
206.214.215.89/32
206.214.222.38/31
206.214.222.40/31
206.217.134.152/29
207.7.129.8/29
207.97.238.56/29
207.126.109.0/24
207.209.22.0/24
207.209.83.0/24
209.18.85.190/31
209.18.85.192/29
209.18.106.190/31
209.18.106.192/29
209.18.107.10/31
209.18.107.12/30
209.18.107.16/30
209.28.33.0/24
209.61.128.248/29
209.61.145.176/29
209.93.181.128/25
209.93.188.0/25
209.162.176.182/31
209.162.176.184/29
209.162.188.213/32
209.162.188.214/31
209.162.188.216/29
209.162.188.224/31
209.162.188.226/32
210.4.208.0/21
210.5.48.0/21
210.7.32.0/20
210.48.0.0/17
210.48.160.0/19
210.54.0.0/15
210.56.32.0/20
210.79.48.0/21
210.80.188.176/28
210.86.0.0/17
210.88.111.192/28
210.185.0.0/18
210.246.0.0/18
212.63.182.5/32
216.19.206.192/26
216.38.50.170/31
216.38.50.172/31
216.38.51.94/31
216.38.51.96/31
216.38.62.94/31
216.38.62.96/31
216.38.63.56/31
216.65.3.224/28
216.65.64.224/28
216.131.125.184/29
218.100.21.0/24
218.100.23.0/24
218.100.24.0/23
218.100.26.0/24
218.100.56.0/24
218.100.65.0/24
218.100.68.0/24
218.101.0.0/17
218.185.224.0/21
219.88.0.0/15
222.152.0.0/14
223.165.16.0/22
223.165.64.0/20
WarNox (8772)
1148434 2010-10-28 11:10:00 Most people use a geoip plugin for this kind of thing - the IP ranges assigned here change reasonably frequently, and manually entering / updating rules is somewhat annoying.

See here (www.maxmind.com).
Erayd (23)
1148435 2010-10-28 19:20:00 I get a list, similar to the above, from SiteHost on a semi-regular basis and have a bash script which reads it like this:

cat /root/firewall/routes.txt | while read currline; do iptables -A INPUT -s $currline -p tcp -m tcp --dport 80 -j ACCEPT; done
Chilling_Silence (9)
1148436 2010-10-28 23:30:00 and you missed at least one....

what about company's that have there own net block....
EG. - 202.27.54.0/24
robsonde (120)
1148437 2010-10-28 23:45:00 what about company's that have there own net block....
EG. - 202.27.54.0/24All good GeoIP databases will include these - all organisations are treated equally as far as IP assignments go; ISPs just happen to have a lot more of them.

The IP range you've posted appears to belong to the Ministry of Social Development (Wellington).
Erayd (23)
1148438 2010-10-29 00:52:00 and you missed at least one....

what about company's that have there own net block....
EG. - 202.27.54.0/24

Yea I thought about that and looked up the Auckland Uni one, as they own it and it was on the list.

130.216.0.0/16

I guess they don't have them all, it is the first list I've found.
WarNox (8772)
1