Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto ban IP with Fail2Ban manually by command line?

How do I ban an attacker IP with Fail2Ban manually by command line?

like image 269
udgru Avatar asked Mar 12 '15 19:03

udgru


1 Answers

fail2ban-client -vvv set JAIL banip WW.XX.YY.ZZ

Check the jail where to add the IP using fail2ban-client status

Both commands may require to be executed as sudoer. In this case add a sudo before them.

like image 115
Marco Avatar answered Sep 28 '22 05:09

Marco