К основному контенту

Сообщения

Сообщения за апрель, 2013

Блокируем w00tw00t сканы

На одном сервере появились вот такие вот подарки: error.log [Mon Apr 29 20:17:54 2013] [error] [client 50.63.136.60] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.test0:) acess.log 50.63.136.60 - - [29/Apr/2013:20:17:54 +0200] "GET /w00tw00t.at.ISC.SANS.test0:) HTTP/1.1" 400 523 "-" "-" Считаем # grep "w00tw00t.at.ISC.SANS" /var/log/apache2/access.log | awk '{ print $1}' | sort | uniq -c       1 42.121.99.77      85 50.63.136.60       3 81.161.248.17       1 87.98.227.69       3 94.23.26.88 Это привет от DFind Scanner и кулцацкеров. Ну, Fail2ban нам поможет. У меня UFW, так что action.d/ufw-all.conf [Definition] actionstart = actionstop = actioncheck = actionban = ufw insert 1 deny from actionunban = ufw delete deny from И сам банхаммер: jail.conf [apache-w00tw00t] enabled  = true port     = http,https filter   = apache-w00tw00t logpath