Simple fail2ban config
- - - - -- - - - - - - -- - -
#sudo apt-get install fail2ban
Now to fine tune default configs
#cd /etc/fail2ban
#sudo vim jail.conf
#it also help protect ssh ftp apache asterisk ...
.
.
bantime = 989898 ##in seconds
maxretry = 3 ##place your threshold value
#search for jails
#JAILS
[ssh]
enabled=true
port =ssh
filter = sshd
logpath = var/log/auth.log
maxretry = 3
save/exit
................................
#service fail2ban restart
- - - - -- - - - - - - -- - -
#sudo apt-get install fail2ban
Now to fine tune default configs
#cd /etc/fail2ban
#sudo vim jail.conf
#it also help protect ssh ftp apache asterisk ...
.
.
bantime = 989898 ##in seconds
maxretry = 3 ##place your threshold value
#search for jails
#JAILS
[ssh]
enabled=true
port =ssh
filter = sshd
logpath = var/log/auth.log
maxretry = 3
save/exit
................................
#service fail2ban restart
No comments:
Post a Comment