I have made some bad bot postings to the search engine forum, but really I think it all belongs here in the security forum. I would like to maintain this thread in one place and share some of the stuff I run into.
The latest bad actor I found comes from utel.net.ua, a Ukranian source that also seems to serve its neighbor Poland.
Running the linux command on apache access log
tail -f /var/log/httpd/access_log
showed continuing, repeated hits across several domains.
The command
grep utel.net.ua /var/log/httpd/access_log |awk '{print $2}' |sort |uniq > utel.net.ua
produced a list of results
213.186.119.131.utel.net.ua
213.186.119.132.utel.net.ua
213.186.119.133.utel.net.ua
213.186.119.134.utel.net.ua
213.186.119.135.utel.net.ua
213.186.119.136.utel.net.ua
213.186.119.137.utel.net.ua
213.186.119.138.utel.net.ua
213.186.119.139.utel.net.ua
213.186.119.140.utel.net.ua
213.186.119.141.utel.net.ua
213.186.119.142.utel.net.ua
213.186.119.143.utel.net.ua
213.186.119.144.utel.net.ua
213.186.120.196.utel.net.ua
213.186.122.2.utel.net.ua
213.186.122.3.utel.net.ua
213.186.127.10.utel.net.ua
213.186.127.12.utel.net.ua
213.186.127.13.utel.net.ua
213.186.127.14.utel.net.ua
213.186.127.28.utel.net.ua
213.186.127.2.utel.net.ua
213.186.127.3.utel.net.ua
213.186.127.4.utel.net.ua
213.186.127.5.utel.net.ua
213.186.127.6.utel.net.ua
213.186.127.7.utel.net.ua
213.186.127.8.utel.net.ua
213.186.127.9.utel.net.ua
First checked that these IP numbers were accurate using nslookup
nslookup 213.186.119.131.utel.net.ua
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: 213.186.119.131.utel.net.ua
Address: 213.186.119.131
Then went to http://ip2cidr.com/, entered the first and last IP numbers, and this produced the list
213.186.119.131/32
213.186.119.132/30
213.186.119.136/29
213.186.119.144/28
213.186.119.160/27
213.186.119.192/26
213.186.120.0/22
213.186.124.0/23
213.186.126.0/24
213.186.127.0/29
213.186.127.8/31
Not 100% useful, OK? Maybe I'm just not smart enough.....
Then on to http://magic-cookie.co.uk/iplist.html, entered the first IP on the original list and played with the secondary number, which identifies how deep to go into netblocks. A few experiments came up with 213.186.119.131/19, and the list of 8192 IP numbers blocked stretches from 213.186.96.0 to 213.186.127.255
Then checked with http://www.maxmind.com and ran both the first and last IP numbers. They both belong to utel, so that makes it pretty certain that everything in-between is theirs also.
Then came the command (as root of course)
/sbin/iptables -p tcp -I INPUT -j DROP -s 213.186.119.131/19 && /etc/init.d/iptables save && /etc/init.d/sshd restart
(some of these paths may vary for different linux flavors, this is centos)
Now I sit watching results for tail -f /var/log/httpd/access_log | grep utel
Nothing. Zero. Zip. Nada.
Of course this method runs the risk of blocking traffic that you might want -- for example, possibly some users of utel wireless smart phones might not be able to access my sites -- but it seems to me that bots from Ukraine are not doing me a lot of good.
Hope this info is useful
Cheers, Mike
Edited by nuts, 15 June 2012 - 12:06 PM.






