Wiki‎ > ‎

Add iptables rules for Fail2ban

posted Jul 13, 2015, 4:05 PM by Dong Xu
mcaylor@ginger:~$ vi rules.v4
mcaylor@ginger:~$ sudo cp rules.v4 /etc/iptables/rules.v4
mcaylor@ginger:~$ sudo cp rules.v4 /etc/network/iptables.up.rules
mcaylor@ginger:~$ sudo iptables-apply
 * Stopping authentication failure monitor fail2ban                      
                                                                                       [ OK ]
Applying new iptables rules from '/etc/network/iptables.up.rules'... done.
Can you establish NEW connections to the machine? (y/N) y
... then my job is done. See you next time.
 * Starting authentication failure monitor fail2ban  
Comments