My logs show people trying to guess passwords. What's the easiest way for me to flat-out deny connections from offending IP addresses such as "218.5.2.223"?
--------------------------
-
################### LogWatch 4.3.1 (01/13/03) ####################
Processing Initiated: Sun Oct 16 04:02:13 2005
Date Range Processed: yesterday
Detail Level of Output: 0
Logfiles for Host: hosting.dallasray.com ##########################
##########
##########
##########
########
--------------------- pam_unix Begin ------------------------
sshd:
Invalid Users:
Unknown Account: 87 Time(s)
Authentication Failures:
adm (218.5.2.223 ): 1 Time(s)
games (218.5.2.223 ): 1 Time(s)
news (218.5.2.223 ): 1 Time(s)
mysql (218.5.2.223 ): 2 Time(s)
nobody (218.5.2.223 ): 1 Time(s)
mail (218.5.2.223 ): 1 Time(s)
apache (218.5.2.223 ): 1 Time(s)
rpm (218.5.2.223 ): 1 Time(s)
unknown (218.5.2.223 ): 86 Time(s)
operator (218.5.2.223 ): 1 Time(s)
unknown (220.174.208.39 ): 1 Time(s)
sshd (218.5.2.223 ): 1 Time(s)
ftp (218.5.2.223 ): 1 Time(s)
---------------------- pam_unix End -------------------------
--------------------- Connections (secure-log) Begin ------------------------
Connections:
Service imap:
24.227.192.2: 2 Time(s)
127.0.0.1: 253 Time(s)
---------------------- Connections (secure-log) End -------------------------
--------------------- SSHD Begin ------------------------
Failed logins from these:
Aaliyah/password from 218.5.2.223: 1 Time(s)
Aaron/password from 218.5.2.223: 1 Time(s)
Aba/password from 218.5.2.223: 1 Time(s)
Abel/password from 218.5.2.223: 1 Time(s)
Jewel/password from 218.5.2.223: 1 Time(s)
adam/password from 218.5.2.223: 1 Time(s)
adm/password from 218.5.2.223: 1 Time(s)
admin/password from 218.5.2.223: 7 Time(s)
admins/password from 218.5.2.223: 2 Time(s)
alan/password from 218.5.2.223: 1 Time(s)
alex/password from 218.5.2.223: 1 Time(s)
amanda/password from 218.5.2.223: 1 Time(s)
andrew/password from 220.174.208.39: 1 Time(s)
angel/password from 218.5.2.223: 1 Time(s)
apache/password from 218.5.2.223: 1 Time(s)
aron/password from 218.5.2.223: 1 Time(s)
backup/password from 218.5.2.223: 1 Time(s)
brett/password from 218.5.2.223: 1 Time(s)
danny/password from 218.5.2.223: 1 Time(s)
data/password from 218.5.2.223: 1 Time(s)
david/password from 218.5.2.223: 1 Time(s)
ftp/password from 218.5.2.223: 1 Time(s)
games/password from 218.5.2.223: 1 Time(s)
george/password from 218.5.2.223: 1 Time(s)
guest/password from 218.5.2.223: 2 Time(s)
http/password from 218.5.2.223: 1 Time(s)
httpd/password from 218.5.2.223: 1 Time(s)
ident/password from 218.5.2.223: 1 Time(s)
info/password from 218.5.2.223: 2 Time(s)
john/password from 218.5.2.223: 1 Time(s)
library/password from 218.5.2.223: 1 Time(s)
linux/password from 218.5.2.223: 1 Time(s)
mail/password from 218.5.2.223: 1 Time(s)
master/password from 218.5.2.223: 1 Time(s)
michael/password from 218.5.2.223: 2 Time(s)
mikael/password from 218.5.2.223: 1 Time(s)
mike/password from 218.5.2.223: 2 Time(s)
mysql/password from 218.5.2.223: 2 Time(s)
news/password from 218.5.2.223: 1 Time(s)
nobody/password from 218.5.2.223: 1 Time(s)
operator/password from 218.5.2.223: 1 Time(s)
oracle/password from 218.5.2.223: 1 Time(s)
party/password from 218.5.2.223: 1 Time(s)
paul/password from 218.5.2.223: 1 Time(s)
pgsql/password from 218.5.2.223: 2 Time(s)
postmaster/password from 218.5.2.223: 1 Time(s)
resin/password from 218.5.2.223: 1 Time(s)
richard/password from 218.5.2.223: 2 Time(s)
robert/password from 218.5.2.223: 1 Time(s)
root/password from 218.5.2.223: 17 Time(s)
rpm/password from 218.5.2.223: 1 Time(s)
sales/password from 218.5.2.223: 1 Time(s)
sara/password from 218.5.2.223: 1 Time(s)
search/password from 218.5.2.223: 1 Time(s)
sgi/password from 218.5.2.223: 1 Time(s)
sharon/password from 218.5.2.223: 1 Time(s)
shell/password from 218.5.2.223: 1 Time(s)
shop/password from 218.5.2.223: 1 Time(s)
ssh/password from 218.5.2.223: 1 Time(s)
sshd/password from 218.5.2.223: 1 Time(s)
stephen/password from 218.5.2.223: 1 Time(s)
steven/password from 218.5.2.223: 1 Time(s)
sunny/password from 218.5.2.223: 1 Time(s)
sunsun/password from 218.5.2.223: 1 Time(s)
susan/password from 218.5.2.223: 1 Time(s)
suva/password from 218.5.2.223: 1 Time(s)
technicom/password from 218.5.2.223: 1 Time(s)
test/password from 218.5.2.223: 5 Time(s)
unix/password from 218.5.2.223: 1 Time(s)
user/password from 218.5.2.223: 2 Time(s)
username/password from 218.5.2.223: 2 Time(s)
users/password from 218.5.2.223: 1 Time(s)
web/password from 218.5.2.223: 1 Time(s)
webadmin/password from 218.5.2.223: 1 Time(s)
webmaster/password from 218.5.2.223: 2 Time(s)
webpop/password from 218.5.2.223: 1 Time(s)
www-data/password from 218.5.2.223: 1 Time(s)
www/password from 218.5.2.223: 1 Time(s)
wwwrun/password from 218.5.2.223: 1 Time(s)
**Unmatched Entries**
Illegal user andrew from 220.174.208.39
Illegal user admin from 218.5.2.223
Illegal user test from 218.5.2.223
Illegal user guest from 218.5.2.223
Illegal user webmaster from 218.5.2.223
Illegal user oracle from 218.5.2.223
Illegal user library from 218.5.2.223
Illegal user info from 218.5.2.223
Illegal user shell from 218.5.2.223
Illegal user linux from 218.5.2.223
Illegal user unix from 218.5.2.223
Illegal user webadmin from 218.5.2.223
Illegal user test from 218.5.2.223
Illegal user admin from 218.5.2.223
Illegal user guest from 218.5.2.223
Illegal user master from 218.5.2.223
Illegal user admin from 218.5.2.223
Illegal user admin from 218.5.2.223
Illegal user admin from 218.5.2.223
Illegal user admin from 218.5.2.223
Illegal user test from 218.5.2.223
Illegal user test from 218.5.2.223
Illegal user webmaster from 218.5.2.223
Illegal user user from 218.5.2.223
Illegal user username from 218.5.2.223
Illegal user username from 218.5.2.223
Illegal user user from 218.5.2.223
Illegal user admin from 218.5.2.223
Illegal user test from 218.5.2.223
Illegal user danny from 218.5.2.223
Illegal user sharon from 218.5.2.223
Illegal user aron from 218.5.2.223
Illegal user alex from 218.5.2.223
Illegal user brett from 218.5.2.223
Illegal user mike from 218.5.2.223
Illegal user alan from 218.5.2.223
Illegal user data from 218.5.2.223
Illegal user www-data from 218.5.2.223
Illegal user http from 218.5.2.223
Illegal user httpd from 218.5.2.223
Illegal user backup from 218.5.2.223
Illegal user info from 218.5.2.223
Illegal user shop from 218.5.2.223
Illegal user sales from 218.5.2.223
Illegal user web from 218.5.2.223
Illegal user www from 218.5.2.223
Illegal user wwwrun from 218.5.2.223
Illegal user adam from 218.5.2.223
Illegal user stephen from 218.5.2.223
Illegal user richard from 218.5.2.223
Illegal user george from 218.5.2.223
Illegal user michael from 218.5.2.223
Illegal user john from 218.5.2.223
Illegal user david from 218.5.2.223
Illegal user paul from 218.5.2.223
Illegal user angel from 218.5.2.223
Illegal user pgsql from 218.5.2.223
Illegal user pgsql from 218.5.2.223
Illegal user ident from 218.5.2.223
Illegal user resin from 218.5.2.223
Illegal user mikael from 218.5.2.223
Illegal user mike from 218.5.2.223
Illegal user suva from 218.5.2.223
Illegal user webpop from 218.5.2.223
Illegal user technicom from 218.5.2.223
Illegal user susan from 218.5.2.223
Illegal user sunsun from 218.5.2.223
Illegal user sunny from 218.5.2.223
Illegal user steven from 218.5.2.223
Illegal user ssh from 218.5.2.223
Illegal user search from 218.5.2.223
Illegal user sara from 218.5.2.223
Illegal user robert from 218.5.2.223
Illegal user richard from 218.5.2.223
Illegal user postmaster from 218.5.2.223 Illegal user party from 218.5.2.223 Illegal user michael from 218.5.2.223 Illegal user amanda from 218.5.2.223 Illegal user sgi from 218.5.2.223 Illegal user Aaliyah from 218.5.2.223 Illegal user Aaron from 218.5.2.223 Illegal user Aba from 218.5.2.223 Illegal user Abel from 218.5.2.223 Illegal user Jewel from 218.5.2.223 Illegal user users from 218.5.2.223 Illegal user admins from 218.5.2.223 Illegal user admins from 218.5.2.223
---------------------- SSHD End -------------------------
###################### LogWatch End #########################