fail2ban_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
fail2ban_commands [2016/09/04 15:17] – luke7858 | fail2ban_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: | + | `- Jail list: wp-login, |
</ | </ | ||
+ | \\ | ||
+ | === Viewing Jail Information === | ||
Viewing the status of that jail such as: total banned, blocked IPs, number of failed attempts | Viewing the status of that jail such as: total banned, blocked IPs, number of failed attempts | ||
<sxh bash> | <sxh bash> | ||
Line 18: | Line 21: | ||
|- Total banned: | |- Total banned: | ||
`- Banned IP list: | `- Banned IP list: | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | === Ignore IP === | ||
+ | <sxh bash> | ||
+ | # fail2ban-client ssh-iptables set addignoreip x.x.x.x | ||
+ | These IP addresses/ | ||
+ | |- 127.0.0.1/8 | ||
+ | `- 7x.x.x.x | ||
+ | </ | ||
+ | Getting the IPs | ||
+ | <sxh bash> | ||
+ | # fail2ban-client get ssh-iptables ignoreip | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | === Unban IP === | ||
+ | Fail2Ban < v0.8.8: | ||
+ | \\ | ||
+ | <sxh bash> | ||
+ | fail2ban-client get JAILNAME actionunban x.x.x.x | ||
+ | </ | ||
+ | \\ | ||
+ | Fail2Ban > v0.8.8: | ||
+ | <sxh bash> | ||
+ | fail2ban-client set JAILNAME unbanip x.x.x.x | ||
</ | </ |
fail2ban_commands.1473002223.txt.gz · Last modified: 2024/05/23 07:26 (external edit)