Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gnu_linux:iptables:fail2ban [2014/09/10 14:45] – created kolan | gnu_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 | + | Firstly I recommend to read the documentation (man fail2ban) and the comments |
+ | |||
+ | Installation manual can be found on [[http:// | ||
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 | target | ||
RETURN | RETURN | ||
+ | </ | ||
+ | |||
+ | 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 | ||
</ | </ |