fail2ban
This is an old revision of the document!
Table of Contents
Fail2Ban
Nice - Lightweight - Protection to linux box
You can do more than expected with this utility.
Here i am using SSH and FTP setting to protect my bandwidth from script kidies.
Installation
Fail2ban is written in Python, thus no compilation is required. You can even run Fail2ban without installing it.
Following is the installation procedure for the centOS.
yum install fail2ban
Enable fail2ban during system startup. and start it
chkconfig --levels 235 fail2ban on /etc/init.d/fail2ban start
Configuration
Configuration file is named as jail.conf located at “/etc/fail2ban”
Following Options you might consider to setup before proceed.
ignoreip - you might be consider setting your known ip in this section bantime - time specified here is in seconds maxretry - ban after any ip cross this limit. filter - specify filter file e.g. /etc/fail2ban/filter.d action - specify action file e.g. /etc/fail2ban/action.d logpath - where fail2ban look for log
fail2ban.1245311761.txt.gz · Last modified: 2020/08/10 02:30 (external edit)