mirror of https://github.com/fail2ban/fail2ban
- Prepared for 0.4.0 release
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@105 a942ae1a-1317-0410-a47c-b1dcaea8d6050.6 0.4.0
parent
b0cae2c43f
commit
a051e05cb4
|
@ -4,10 +4,10 @@
|
||||||
|_| \__,_|_|_/___|_.__/\__,_|_||_|
|
|_| \__,_|_|_/___|_.__/\__,_|_||_|
|
||||||
|
|
||||||
=============================================================
|
=============================================================
|
||||||
Fail2Ban (version 0.3.2) ??/??/2005
|
Fail2Ban (version 0.4.0) 04/24/2005
|
||||||
=============================================================
|
=============================================================
|
||||||
|
|
||||||
ver. 0.3.2 (??/??/2005) - ????
|
ver. 0.4.0 (04/24/2005) - stable
|
||||||
----------
|
----------
|
||||||
- Fixed textToDNS which did not recognize strings like
|
- Fixed textToDNS which did not recognize strings like
|
||||||
"12-345-67-890.abcd.mnopqr.xyz"
|
"12-345-67-890.abcd.mnopqr.xyz"
|
||||||
|
|
15
README
15
README
|
@ -4,7 +4,7 @@
|
||||||
|_| \__,_|_|_/___|_.__/\__,_|_||_|
|
|_| \__,_|_|_/___|_.__/\__,_|_||_|
|
||||||
|
|
||||||
=============================================================
|
=============================================================
|
||||||
Fail2Ban (version 0.3.1) 03/31/2005
|
Fail2Ban (version 0.4.0) 04/24/2005
|
||||||
=============================================================
|
=============================================================
|
||||||
|
|
||||||
Fail2Ban scans log files like /var/log/pwdfail and bans IP
|
Fail2Ban scans log files like /var/log/pwdfail and bans IP
|
||||||
|
@ -13,9 +13,8 @@ rules to reject the IP address. Currently iptables, ipfw and
|
||||||
ipfwadm are supported. Fail2Ban can read multiple log files
|
ipfwadm are supported. Fail2Ban can read multiple log files
|
||||||
such as sshd or Apache web server ones. It needs log4py.
|
such as sshd or Apache web server ones. It needs log4py.
|
||||||
|
|
||||||
This is my first Python program. I began learning Python for
|
This is my first Python program. Moreover, English is not my
|
||||||
less than one week so please be understanding ;-) English is
|
mother tongue...
|
||||||
not either my mother tongue...
|
|
||||||
|
|
||||||
|
|
||||||
More details:
|
More details:
|
||||||
|
@ -28,8 +27,8 @@ brute force or scripts. They try 10, 20 and sometimes more
|
||||||
user/password (without success anyway). In order to
|
user/password (without success anyway). In order to
|
||||||
discourage these script kiddies, I wanted that sshd refuse
|
discourage these script kiddies, I wanted that sshd refuse
|
||||||
login from a specific ip after 3 password failures. After
|
login from a specific ip after 3 password failures. After
|
||||||
some google searches, I found that sshd was not able of that.
|
some Google searches, I found that sshd was not able of that.
|
||||||
So I search for a script or program that do it. Found
|
So I search for a script or program that do it. I found
|
||||||
nothing :-( So I decide to write mine and to learn Python :-)
|
nothing :-( So I decide to write mine and to learn Python :-)
|
||||||
|
|
||||||
For each sections defined in the configuration file, Fail2Ban
|
For each sections defined in the configuration file, Fail2Ban
|
||||||
|
@ -37,7 +36,7 @@ tries to find lines which match the failregex. Then it
|
||||||
retrieves the message time using timeregex and timepattern.
|
retrieves the message time using timeregex and timepattern.
|
||||||
It finally gets the ip and if it has already done 3 or more
|
It finally gets the ip and if it has already done 3 or more
|
||||||
password failures in the last banTime, the ip is banned for
|
password failures in the last banTime, the ip is banned for
|
||||||
banTime using a iptable rule. After banTime, the rule is
|
banTime using a firewall rule. After banTime, the rule is
|
||||||
deleted. Notice that if no "plain" ip is available, Fail2Ban
|
deleted. Notice that if no "plain" ip is available, Fail2Ban
|
||||||
try to do DNS lookup in order to found one or several ip's to
|
try to do DNS lookup in order to found one or several ip's to
|
||||||
ban.
|
ban.
|
||||||
|
@ -66,6 +65,8 @@ To install, just do:
|
||||||
This will install Fail2Ban into /usr/lib/fail2ban. The
|
This will install Fail2Ban into /usr/lib/fail2ban. The
|
||||||
fail2ban.py executable is placed into /usr/bin.
|
fail2ban.py executable is placed into /usr/bin.
|
||||||
|
|
||||||
|
For Gentoo users, an ebuild is available on the website.
|
||||||
|
|
||||||
Fail2Ban should now be correctly installed. Just type:
|
Fail2Ban should now be correctly installed. Just type:
|
||||||
|
|
||||||
> fail2ban.py -h
|
> fail2ban.py -h
|
||||||
|
|
|
@ -24,4 +24,4 @@ __date__ = "$Date$"
|
||||||
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
|
|
||||||
version = "0.3.1-CVS"
|
version = "0.4.0"
|
||||||
|
|
Loading…
Reference in New Issue