sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python2.5
sudo nano /usr/bin/fail2ban-server
Change the first line from
#!/usr/bin/pythonto
#!/usr/bin/python2.5
Set the /etc/fail2ban/jail.conf as usual.
sudo /etc/init.d/fail2ban restart
Make change to the related services to "True". By default, any unauthorized access will be blocked after 6 invalid attempts.
sudo nano /etc/fail2ban/jail.conf
After that, restart fail2ban.
sudo /etc/init.d/fail2ban restart
That's all. See you!



2 comments:
Possible typo?
sudo nano /etc/usr/bin/fail2ban-server
-->
sudo nano /usr/bin/fail2ban-server
I've just stumbled on this blog - good stuff! Thanks,
Tom
Tom Strickland,
The typo has been fixed.
Thank you.
Samiux
Post a Comment