backbone.ws

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gnu_linux:iptables:fail2ban [2014/09/10 14:45] – created kolangnu_linux:iptables:fail2ban [2014/09/10 14:55] (current) kolan
Line 1: Line 1:
 ====== Fail2ban ====== ====== Fail2ban ======
  
-Firstly I recommend to read the documentation (man fail2ban) and Commentaries in the configuration files.+Firstly I recommend to read the documentation (man fail2ban) and the comments in the configuration files
 + 
 +Installation manual can be found on [[http://wiki.gentoo.org/wiki/Fail2ban | Gentoo Wiki]].
  
 To view status of the Fail2ban server just put To view status of the Fail2ban server just put
 <code bash | Jail Status> <code bash | Jail Status>
-sudo fail2ban-client status+$ fail2ban-client status
 Status Status
 |- Number of jail:      25 |- Number of jail:      25
Line 13: Line 15:
 To view status of any jail put To view status of any jail put
 <code bash | Jail Status> <code bash | Jail Status>
-sudo fail2ban-client status ssh-ddos # or any jail name+$ fail2ban-client status ssh-ddos # or any jail name
 Status for the jail: ssh-ddos Status for the jail: ssh-ddos
 |- filter |- filter
Line 33: Line 35:
 target     prot opt source               destination          target     prot opt source               destination         
 RETURN     all  --  0.0.0.0/           0.0.0.0/ RETURN     all  --  0.0.0.0/           0.0.0.0/
 +</code>
 +
 +To unban any IP from specific Jail until the next Fail2ban daemon restart:
 +<code bash | Unban IP from Jail>
 +iptables -D fail2ban-recidive -s 111.222.333.444 -j REJECT
 </code> </code>