Howto ban IP with Fail2Ban manually by command line?

udgru picture udgru · Mar 12, 2015 · Viewed 57.7k times · Source

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

Answer

Marco picture Marco · Sep 2, 2015

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.