Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install fail2ban sendmail
- sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
- cd /etc/fail2ban/
- sudo nano jail.local
- systemctl service enable fail2ban
- fail2ban-client status
- fail2ban-client status sshd
- fail2ban-client ser sshd unbanip xxx.xxx.xxx.xxx
- service fail2ban restart
Advertisement
Add Comment
Please, Sign In to add comment