backbone.ws

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gnu_linux:iptables:fail2ban [2014/09/10 14:48] – unban 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 35: Line 37:
 </code> </code>
  
-To unban any IP from specific Jail:+To unban any IP from specific Jail until the next Fail2ban daemon restart:
 <code bash | Unban IP from Jail> <code bash | Unban IP from Jail>
 iptables -D fail2ban-recidive -s 111.222.333.444 -j REJECT iptables -D fail2ban-recidive -s 111.222.333.444 -j REJECT
 </code> </code>