Attached is a firewall script which excludes nodes I suspect are
running protocol version 1.46.

Even with this firewall, I still see very high requests/hour, > 150k

So I don't think it is the old nodes in the connection table, but
this gets rid of them just in case.  Unfortunately if any of them
upgrade, they are still excluded.

These command lines extract more 1.46 IP numbers from the open
connections page:

latest is my list of IP numbers or domain names.

make-firewall just puts the iptables command around the IP number

apply-firewall actually executes the iptables commands.

update-firewall adds more IP numbers from the open connections page.

-- Ed Huff

#!/bin/bash
for ip in $(cat $1 | grep -v ' ') ; do
    echo iptables -t filter -I INPUT -p tcp -s $ip -j REJECT --reject-with tcp-reset
done
1.0.0.1
12.155.161.215
12.162.145.165
12.203.159.223
12.218.249.201
12.228.131.42
12.230.201.203
12.235.54.150
12.237.46.60
12.246.224.78
12.246.39.20
128.100.0.180
128.148.211.45
128.151.84.143
128.197.60.30
128.20.1.233
128.32.38.148
129.119.44.174
129.177.41.226
129.242.13.140
130.179.92.6
130.95.49.28
131.216.64.186
134.173.60.73
134.53.164.125
137.186.239.181
137.238.230.117
138.129.38.86
138.202.119.125
138.88.29.175
139.140.128.2
139.94.165.64
141.76.61.166
144.254.174.170
146.201.152.185
147.52.17.56
150.1.1.250
151.197.211.248
151.201.148.35
151.213.96.135
151.26.172.113
151.26.179.183
151.28.150.193
151.30.175.68
151.35.82.2
151.37.163.38
151.38.235.217
151.42.101.118
158.196.151.118
159.178.51.19
161.53.65.159
162.84.146.219
164.113.101.233
164.77.58.85
166.36.228.139
168.122.239.247
169.229.54.50
169.254.0.0
169.254.12.173
169.254.132.13
169.254.132.23
169.254.132.233
169.254.134.32
169.254.147.9
169.254.148.96
169.254.162.11
169.254.163.146
169.254.166.168
169.254.181.208
169.254.18.7
169.254.198.3
169.254.198.70
169.254.21.221
169.254.232.92
169.254.238.83
169.254.33.175
169.254.73.111
169.254.73.97
169.254.76.148
169.254.86.94
169.254.95.189
171.75.115.8
172.133.175.202
172.138.167.129
172.141.221.118
172.150.83.237
172.154.20.225
172.154.248.121
172.156.102.150
172.158.237.134
172.162.17.229
172.162.252.67
172.163.53.171
172.165.133.162
172.168.230.121
172.176.116.204
172.176.149.60
172.176.161.38
172.176.218.240
172.176.62.79
172.178.165.19
172.179.19.203
172.179.28.54
172.179.73.81
172.179.8.254
172.180.202.241
172.180.210.127
172.180.90.240
172.182.148.113
172.182.56.173
172.182.9.47
172.183.159.91
172.183.178.171
172.183.211.104
172.183.250.102
172.184.228.149
172.190.118.105
19.0.0.50
192.107.9.65
192.216.227.159
194.144.36.235
194.230.124.170
194.230.178.180
194.230.210.7
194.237.36.252
195.121.24.83
195.149.165.180
195.174.197.166
195.242.68.34
195.242.95.136
198.234.182.117
199.237.174.19
200.102.59.138
200.109.65.235
200.162.235.171
200.249.7.155
200.249.7.56
200.79.232.18
200.82.62.45
202.0.48.63
202.123.13.127
202.180.123.204
202.231.8.125
202.72.180.75
202.94.68.220
203.164.116.109
203.164.16.170
203.173.21.130
203.61.189.130
203.61.189.83
205.200.51.23
206.48.63.163
206.48.63.246
207.214.80.234
207.81.107.3
208.187.181.226
208.27.139.32
209.142.155.49
209.165.6.82
210.11.214.147
210.49.248.224
210.54.108.213
210.55.81.221
210.55.84.33
211.27.131.134
211.27.132.91
211.27.136.27
211.29.3.22
211.30.87.166
212.100.173.58
212.105.227.37
212.119.80.170
212.119.90.10
212.119.91.177
212.120.116.9
212.129.44.68
212.142.232.199
212.163.254.94
212.194.111.68
212.194.113.204
212.194.113.57
212.194.145.157
212.194.161.51
212.194.184.177
212.194.39.227
212.194.41.72
212.194.51.101
212.194.61.239
212.202.72.245
212.203.42.62
212.204.116.38
212.238.193.116
212.44.95.20
213.100.37.206
213.10.189.10
213.103.17.12
213.107.100.86
213.107.126.112
213.112.100.19
213.112.4.133
213.114.152.222
213.114.240.187
213.114.242.164
213.135.65.223
213.140.6.226
213.146.114.96
213.168.108.14
213.168.91.118
213.177.128.129
213.177.128.227
213.177.145.178
213.189.67.91
213.196.228.126
213.22.231.186
213.23.155.81
213.23.2.21
213.23.45.209
213.243.189.247
213.254.40.125
213.255.26.161
213.255.31.164
213.36.199.181
213.36.207.11
213.39.219.73
213.44.220.242
213.44.254.80
213.47.244.52
213.51.55.57
213.54.170.43
213.54.187.105
213.54.33.22
213.54.42.54
213.54.52.70
213.54.59.208
213.67.127.100
213.6.75.26
213.6.78.125
213.6.78.226
213.7.127.18
213.7.215.165
213.7.226.140
213.7.226.91
213.78.146.88
213.89.106.64
213.89.78.145
216.120.4.139
216.187.106.251
216.201.2.15
216.232.157.124
216.254.112.202
216.63.164.125
217.0.50.222
217.123.68.147
217.136.201.230
217.167.203.50
217.185.182.144
217.186.226.138
217.199.65.22
217.210.29.10
217.215.39.165
217.215.48.18
217.2.241.231
217.2.241.251
217.2.253.203
217.225.46.172
217.232.47.246
217.232.52.174
217.232.90.161
217.255.173.86
217.42.97.9
217.43.52.176
217.82.237.107
217.83.114.58
217.84.144.254
217.85.16.226
217.85.44.81
217.87.133.105
217.88.225.10
217.9.27.132
217.9.27.21
217.9.37.100
217.99.138.110
218.222.198.195
219.111.124.67
219.165.189.96
219.45.24.128
219.88.24.163
219.88.42.121
220.109.250.207
220.244.30.42
220.27.249.21
23.255.81.145
24.127.68.148
24.129.126.186
24.130.229.48
24.151.249.233
24.159.104.88
24.165.88.149
24.167.114.150
24.168.123.194
24.202.255.42
24.204.55.231
24.205.77.41
24.208.128.31
24.211.160.80
24.233.55.6
24.247.147.226
24.28.55.64
24.48.171.227
24.53.109.156
24.53.190.42
24.70.120.143
24.72.34.44
24.84.68.70
3.0.0.0
3.0.0.2
37.8.10.49
39.6.84.89
4.0.0.0
4.33.66.71
4.40.44.108
44.3.4.5
4.4.52.107
4.46.162.33
4.46.9.72
61.105.52.147
61.207.82.17
62.101.126.224
62.131.117.114
62.147.246.122
62.157.39.242
62.178.166.90
62.178.99.201
62.195.11.205
62.199.243.198
62.211.36.35
62.226.18.254
62.245.161.15
62.37.65.18
62.39.216.139
62.39.216.229
62.39.217.227
62.39.217.234
62.39.217.247
62.39.218.10
62.39.218.86
62.39.233.220
62.62.172.142
62.98.16.15
62.98.174.211
63.119.38.204
63.149.103.37
63.241.8.112
63.246.163.146
64.213.227.52
64.228.207.17
64.252.175.233
64.4.115.133
64.53.132.239
64.62.161.12
64.6.47.152
64.81.198.46
64.91.72.185
65.168.179.159
65.168.179.25
65.168.179.81
65.24.27.146
65.28.198.66
65.30.148.156
65.32.116.238
66.108.76.141
66.131.216.67
66.131.47.84
66.142.132.194
66.189.191.147
66.215.3.151
66.217.215.59
66.220.104.42
66.235.39.157
66.235.8.247
66.24.152.23
66.50.248.34
66.51.219.21
66.60.179.250
66.74.33.62
66.81.199.62
66.8.232.90
66.92.233.14
66.93.137.34
66.95.10.109
67.112.123.226
67.118.149.171
67.128.111.34
67.165.180.27
67.208.66.140
67.23.174.70
67.67.112.44
67.68.0.131
67.82.150.187
67.85.181.239
68.119.40.96
68.122.38.232
68.13.36.24
68.164.132.169
68.171.229.50
68.201.186.186
68.202.214.48
68.212.224.181
68.212.228.95
68.2.175.28
68.3.153.121
68.32.175.48
68.36.171.118
68.37.171.118
68.45.34.247
68.48.34.203
68.49.11.165
68.6.109.104
68.61.99.13
68.65.87.219
68.6.59.47
68.6.66.77
69.10.194.207
80.104.195.34
80.110.136.195
80.11.104.42
80.117.192.82
80.133.156.244
80.134.182.10
80.134.191.19
80.13.54.223
80.136.124.224
80.142.99.139
80.144.250.150
80.144.250.48
80.180.130.204
80.180.165.236
80.180.61.234
80.180.99.156
80.180.99.73
80.181.59.135
80.181.60.103
80.181.60.187
80.181.83.121
80.182.0.29
80.184.203.159
80.184.248.235
80.184.70.243
80.200.151.137
80.230.138.236
80.25.87.53
80.35.146.144
80.4.102.183
80.50.156.175
80.50.87.77
80.50.88.215
80.6.234.105
81.106.224.26
81.1.101.87
81.128.129.114
81.128.145.87
81.128.181.185
81.128.220.68
81.136.164.109
81.152.62.168
81.152.62.254
81.152.87.0
81.164.194.98
81.203.184.28
81.211.181.51
81.218.91.91
81.220.104.180
81.220.169.32
81.224.222.175
81.48.149.145
81.48.16.97
81.48.26.76
81.48.26.9
81.48.78.201
81.49.104.5
81.50.116.236
81.50.243.211
81.51.119.24
81.51.175.4
81.51.239.135
81.51.7.135
81.53.11.31
81.64.224.28
81.65.252.63
81.69.210.134
81.78.19.67
81.95.98.76
81.97.89.28
82.64.16.11
82.64.197.236
82.64.212.155
82.64.234.160
82.64.238.87
82.65.118.155
82.65.129.210
82.65.138.115
82.65.160.96
82.65.176.170
82.65.200.211
82.65.204.190
82.65.62.171
82.67.147.40
82.67.169.57
82.67.83.186
82.82.32.169
82.82.70.64
82.84.218.33
82.84.46.43
acmik.org
ardvarc.homelinux.net
ariolc.dyndns.org
dhg864.dyndns.org
energija.dyndns.org
ethernia.shacknet.nu
fakir.dyndns.org
fbnetz.homeip.net
feryd.dyndns.org
fly.cnuce.cnr.it
FRED 3.escambiaso.com
freenet.teitel.net
ghtek2.homeip.net
hirn.dyndns.org
ldoc.no-ip.com
leberle.no-ip.com
lepton.css.swau.edu
localhost.amaonline.com
mitchb.no-ip.com
nameddomain.no-ip.com
nehwon.homelinux.net
oberon.zlynx.org
piggy.is-a-geek.net
so-la.net
stroke.dyndns.org
superfazt.dyndns.org
tokuloco.zapto.org
uptime.dyndns.org
wg504.2y.net
yalla.homelinux.net
yavuz.homeip.net
zara.kicks-ass.net
#!/bin/bash

iptables --flush; ./make-firewall latest | bash; iptables -L -n -v
#!/bin/bash

wget -O - http://localhost:8888/servlet/nodeinfo/networking/ocm?setLevel=1 2>/dev/null | grep 1.46 | sed 's/:.*//; s/.*>//' | sort -u > updates

mv -f sorted latest; sort -u latest updates > sorted; wc -l *; cat updates; diff latest sorted

# iptables --flush; ./make-firewall latest | bash; iptables -L -n -v

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to