Howto ban IP with Fail2Ban manually by command line?
问题 How do I ban an attacker IP with Fail2Ban manually by command line? 回答1: You ban him manually by adding his IP to the firewall. If you are using UFW, then you write something like this in your command line: ufw insert 1 deny from <ip> to any But you do not want to do that manually - the purpose of Fail2Ban is to ban someone automatically. Use this tutorial to configure Fail2Ban to automatically update your UFW rules. The importan part is to add banaction = ufw-SOMETHING to your jail.conf ,