Gentoo Archives: gentoo-server

From: mrfroasty <mrfroasty@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] iptables && fail2ban
Date: Fri, 07 Aug 2009 19:20:21
Message-Id: 4A7DDE0E.60704@gmail.com
In Reply to: Re: [gentoo-server] iptables && fail2ban by Homer Parker
1 I finally got my hands on the subject, but I am not in a position to
2 play with regular expression.
3
4 REGEX:
5 #failregex = USER \S+: no such user found from \S* ?\[<HOST>\] to \S+\s*$
6
7 This captures only this kinds of logs on auth.log:
8 #Aug 6 22:25:59 fileserver proftpd[18234]: fileserver.mzalendo.net
9 (202.102.135.54[202.102.135.54]) - USER !@#$%^&*: no such user found
10 from 202.102.135.54 [202.102.135.54] to 192.168.1.34:21
11
12 It misses this:
13 #Aug 7 20:47:18 fileserver proftpd[23323]: fileserver.mzalendo.net
14 (gendesktop.mzalendo.net[192.168.1.33]) - USER mysql (Login failed):
15 Incorrect password.
16
17 Anyone with a smarter regex and interested to share it with me?
18 I will see if I can learn regex and try to manipulate this expressions.
19
20 Thanks
21
22 GR
23 mrfroasty
24
25 --
26 Extra details:
27 OSS:Gentoo Linux
28 profile:x86
29 Hardware:msi geforce 8600GT asus p5k-se
30 location:/home/muhsin
31 language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
32 Typo:40WPM
33 url:http://www.mzalendo.net

Replies

Subject Author
Re: [gentoo-server] iptables && fail2ban "paul kölle" <pkoelle@×××××.com>