fplanzer

fail2ban

Nov 28th, 2018
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. apt-get install fail2ban sendmail
  2.  
  3. sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
  4.  
  5. cd /etc/fail2ban/
  6. sudo nano jail.local
  7.  
  8. systemctl service enable fail2ban
  9.  
  10. fail2ban-client status
  11.  
  12. fail2ban-client status sshd
  13.  
  14. fail2ban-client ser sshd unbanip xxx.xxx.xxx.xxx
  15.  
  16. service fail2ban restart
Advertisement
Add Comment
Please, Sign In to add comment