Block agressive scraper
Since yesterday afternoon there have been a lot of connections from two groups of IP addresses.
This was causing slowdowns and even unavailability on the webapp and on azure storage.
We blocked these addresses on moma
.
Here's the current state of the moma
firewall:
root@moma:/var/log/varnish# iptables -nvL --line-numbers
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 44151 2911K REJECT all -- * * 43.128.0.0/10 0.0.0.0/0 reject-with icmp-port-unreachable
2 1776 106K DROP all -- * * 101.32.240.178 0.0.0.0/0
3 1738 104K DROP all -- * * 101.32.115.96 0.0.0.0/0
4 1805 108K DROP all -- * * 101.32.254.77 0.0.0.0/0
5 1719 107K DROP all -- * * 101.32.242.16 0.0.0.0/0
6 1709 102K DROP all -- * * 101.32.244.173 0.0.0.0/0
7 1542 92520 DROP all -- * * 101.32.243.24 0.0.0.0/0
8 2715K 163M REJECT all -- * * 101.47.7.72 0.0.0.0/0 reject-with icmp-port-unreachable
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Request since yesterday:
root@moma:/var/log/varnish# awk '/GET/ && !/128\.93\./ {print $1}' varnishncsa.log{,.1} | sort -n | uniq -c | \
sort -k1 -n | awk 'BEGIN{count=0}$2 ~ /^43/{count+=$1;print}END{printf "total: %s\n", count}'
1 43.128.110.17
1 43.132.141.24
1 43.134.35.92
1 43.159.138.51
1 43.163.8.36
1 43.248.108.56
2 43.134.170.46
5 43.159.152.184
30 43.202.1.154
30 43.202.67.54
30 43.203.235.214
6466 43.130.40.43
6492 43.153.1.102
6620 43.135.179.97
6635 43.135.158.194
7128 43.159.32.86
7215 43.133.57.8
7257 43.159.41.195
7309 43.133.62.111
7337 43.133.43.154
7394 43.134.231.229
7486 43.134.119.86
7498 43.134.165.87
7547 43.134.69.90
7551 43.128.84.42
13405 43.153.60.85
13494 43.153.80.61
13517 43.153.97.220
13518 43.156.107.145
13577 43.130.61.214
13595 43.159.139.35
13608 43.153.6.132
13621 43.134.12.237
13622 43.153.39.234
13625 43.135.131.147
13639 43.153.61.213
13657 43.153.29.199
13667 43.134.163.161
13687 43.153.4.65
13699 43.153.20.37
13724 43.153.10.102
13725 43.153.52.32
13726 43.159.131.116
13729 43.135.150.154
13730 43.153.37.58
13745 43.130.12.196
13745 43.135.129.240
13746 43.153.10.154
13752 43.135.135.246
13753 43.153.3.32
13755 43.153.84.42
13765 43.159.137.20
13776 43.130.2.53
13784 43.153.46.109
13788 43.134.15.134
13790 43.135.173.248
13793 43.159.144.95
13802 43.153.20.154
13811 43.130.0.17
13811 43.159.146.48
13823 43.130.35.85
13828 43.130.31.206
13832 43.153.23.81
13835 43.130.13.203
13836 43.135.186.136
13842 43.159.144.118
13850 43.134.77.29
13851 43.135.147.140
13856 43.134.118.145
13862 43.153.106.120
13863 43.153.23.112
13865 43.135.141.103
13869 43.135.144.133
13869 43.153.103.133
13872 43.135.177.50
13883 43.153.107.175
13895 43.153.23.244
13896 43.135.156.161
13900 43.153.18.46
13902 43.135.145.56
13903 43.135.129.244
13904 43.134.56.250
13916 43.153.105.93
13928 43.153.76.232
13931 43.130.35.10
13936 43.135.134.141
13939 43.153.34.43
13940 43.134.48.88
13955 43.153.14.242
13957 43.130.17.168
13974 43.159.133.74
13976 43.159.144.69
13981 43.130.48.193
13994 43.163.8.75
14001 43.153.12.7
14001 43.153.13.111
14012 43.134.229.118
14016 43.153.122.155
14019 43.153.4.90
14019 43.153.69.7
14021 43.153.62.136
14022 43.134.91.203
14026 43.156.6.103
14027 43.134.16.138
14030 43.153.17.158
14040 43.153.58.32
14041 43.134.0.62
14041 43.153.5.20
14049 43.133.38.100
14062 43.133.43.227
14069 43.153.30.97
14070 43.135.138.166
14093 43.134.26.191
14095 43.153.11.31
14097 43.133.62.221
14105 43.128.88.143
14105 43.134.176.114
14108 43.134.121.104
14109 43.156.5.207
14110 43.134.26.28
14124 43.156.29.120
14132 43.134.109.11
14132 43.134.167.226
14133 43.163.0.23
14135 43.134.107.106
14136 43.159.37.213
14140 43.134.72.28
14143 43.134.61.238
14145 43.153.14.12
14147 43.134.63.65
14156 43.130.58.215
14166 43.134.75.217
14169 43.134.91.49
14174 43.156.2.243
14183 43.134.73.181
14192 43.133.60.97
14196 43.159.41.139
14203 43.134.61.126
14208 43.134.57.196
14224 43.134.112.111
14227 43.134.236.64
14230 43.130.60.205
14235 43.134.184.91
14250 43.133.60.115
14276 43.134.64.76
14295 43.133.59.248
14312 43.153.193.211
14331 43.156.29.145
14335 43.134.41.2
14341 43.156.3.195
14343 43.133.43.121
14364 43.133.56.146
14364 43.134.46.116
14369 43.134.99.61
14399 43.156.12.8
14453 43.128.89.170
14475 43.134.69.123
total: 1943907