User Tools

Site Tools


fail2ban_commands

Differences

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

Link to this comparison view

Next revision
Previous revision
fail2ban_commands [2016/09/04 15:15] – created luke7858fail2ban_commands [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=== View Current Jails ===
 What current jails are there? What current jails are there?
 <sxh bash> <sxh bash>
Line 4: Line 5:
 Status Status
 |- Number of jail:      1 |- Number of jail:      1
-`- Jail list:   xmlrpc+`- Jail list:   wp-login, xmlrpc
 </sxh> </sxh>
 +\\
 +=== Viewing Jail Information ===
 +Viewing the status of that jail such as: total banned, blocked IPs, number of failed attempts
 <sxh bash> <sxh bash>
 # fail2ban-client status xmlrpc # fail2ban-client status xmlrpc
Line 17: Line 21:
    |- Total banned:     3    |- Total banned:     3
    `- Banned IP list:   x.x.x.x x.x.x.x x.x.x.x    `- Banned IP list:   x.x.x.x x.x.x.x x.x.x.x
 +</sxh>
 +\\
 +\\
 +=== Ignore IP ===
 +<sxh bash>
 +# fail2ban-client ssh-iptables set addignoreip x.x.x.x
 +These IP addresses/networks are ignored:
 +|- 127.0.0.1/8
 +`- 7x.x.x.x
 +</sxh>
 +Getting the IPs
 +<sxh bash>
 +# fail2ban-client get ssh-iptables ignoreip
 +</sxh>
 +\\
 +\\
 +=== Unban IP ===
 +Fail2Ban < v0.8.8:
 +\\
 +<sxh bash>
 +fail2ban-client get JAILNAME actionunban x.x.x.x
 +</sxh>
 +\\
 +Fail2Ban > v0.8.8:
 +<sxh bash>
 +fail2ban-client set JAILNAME unbanip x.x.x.x
 </sxh> </sxh>
fail2ban_commands.1473002112.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki