|
|
@ -4,7 +4,7 @@
|
|
|
|
|_| \__,_|_|_/___|_.__/\__,_|_||_|
|
|
|
|
|_| \__,_|_|_/___|_.__/\__,_|_||_|
|
|
|
|
|
|
|
|
|
|
|
|
=============================================================
|
|
|
|
=============================================================
|
|
|
|
Fail2Ban (version 0.5.0) 2005/07/12
|
|
|
|
Fail2Ban (version 0.5.1) 2005/07/23
|
|
|
|
=============================================================
|
|
|
|
=============================================================
|
|
|
|
|
|
|
|
|
|
|
|
Fail2Ban scans log files like /var/log/pwdfail and bans IP
|
|
|
|
Fail2Ban scans log files like /var/log/pwdfail and bans IP
|
|
|
@ -55,34 +55,36 @@ Installation:
|
|
|
|
-------------
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
|
|
Require: python-2.3 (http://www.python.org)
|
|
|
|
Require: python-2.3 (http://www.python.org)
|
|
|
|
log4py-1.1 (http://sourceforge.net/projects/log4py)
|
|
|
|
log4py-1.3 (http://sourceforge.net/projects/log4py)
|
|
|
|
|
|
|
|
|
|
|
|
To install, just do:
|
|
|
|
To install, just do:
|
|
|
|
|
|
|
|
|
|
|
|
> tar xvfj fail2ban-0.5.0.tar.bz2
|
|
|
|
> tar xvfj fail2ban-0.5.1.tar.bz2
|
|
|
|
> cd fail2ban-0.5.0
|
|
|
|
> cd fail2ban-0.5.1
|
|
|
|
> python setup.py install
|
|
|
|
> python setup.py install
|
|
|
|
|
|
|
|
|
|
|
|
This will install Fail2Ban into /usr/lib/fail2ban. The
|
|
|
|
This will install Fail2Ban into /usr/lib/fail2ban. The fail2ban
|
|
|
|
fail2ban.py executable is placed into /usr/bin.
|
|
|
|
executable is placed into /usr/bin.
|
|
|
|
|
|
|
|
|
|
|
|
Gentoo: an ebuild is available on the website.
|
|
|
|
Gentoo: an ebuild is available on the website.
|
|
|
|
Debian: a package is available on the website.
|
|
|
|
Debian: a package 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 -h
|
|
|
|
|
|
|
|
|
|
|
|
to see if everything is alright. You can configure fail2ban
|
|
|
|
to see if everything is alright. You can configure fail2ban
|
|
|
|
with a config file. Copy config/fail2ban.conf.default to
|
|
|
|
with a config file. Copy config/fail2ban.conf.default to
|
|
|
|
/etc/fail2ban.conf.
|
|
|
|
/etc/fail2ban.conf.
|
|
|
|
|
|
|
|
|
|
|
|
Gentoo users can use the initd script available in config/.
|
|
|
|
You can use the initd script available in config/. Copy
|
|
|
|
Copy gentoo-initd to /etc/init.d/fail2ban and gentoo-confd
|
|
|
|
<dist>-initd to /etc/init.d/fail2ban. Gentoo users must copy
|
|
|
|
to /etc/conf.d/fail2ban. You can start fail2ban and add it
|
|
|
|
gentoo-confd to /etc/conf.d/fail2ban. You can start fail2ban:
|
|
|
|
to your default runlevel:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> /etc/init.d/fail2ban start
|
|
|
|
> /etc/init.d/fail2ban start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gentoo users can add it to the default runlevel:
|
|
|
|
|
|
|
|
|
|
|
|
> rc-update add fail2ban default
|
|
|
|
> rc-update add fail2ban default
|
|
|
|
|
|
|
|
|
|
|
|
Configuration:
|
|
|
|
Configuration:
|
|
|
|