This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fail2ban:fail2ban_commands [2015/12/10 18:48] cbustillo created |
fail2ban:fail2ban_commands [2020/04/10 17:38] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
The commands presented above can be executed using: | The commands presented above can be executed using: | ||
+ | <code> | ||
$ fail2ban-client <COMMAND> | $ fail2ban-client <COMMAND> | ||
+ | </code> | ||
or by typing them in the interactive console available with: | or by typing them in the interactive console available with: | ||
+ | <code> | ||
$ fail2ban-client -i | $ fail2ban-client -i | ||
+ | </code> | ||
===== Example ===== | ===== Example ===== | ||
Line 13: | Line 17: | ||
Manually Unban a <IP> address in <JAIL>: | Manually Unban a <IP> address in <JAIL>: | ||
- | <code>fail2ban-client set <JAIL> unbanip <IP></code> | + | <code>$ fail2ban-client set <JAIL> unbanip <IP></code> |
For sshd jail: | For sshd jail: | ||
- | <code>fail2ban-client set sshd unbanip 10.12.112.1</code> | + | <code>$ fail2ban-client set sshd unbanip 10.12.112.1</code> |
+ | Manually ban a <IP> address in <JAIL>: | ||
+ | |||
+ | <code>$ fail2ban-client set <JAIL> banip <IP></code> | ||
+ | |||
+ | For sshd jail: | ||
+ | |||
+ | <code>$ fail2ban-client set sshd banip 10.12.112.1</code> | ||
====== Resources ====== | ====== Resources ====== | ||