User Tools

Site Tools


fail2ban:fail2ban_commands

Table of Contents

Commands

The commands presented above can be executed using:

$ fail2ban-client <COMMAND>

or by typing them in the interactive console available with:

$ fail2ban-client -i

Example

Manually Unban a <IP> address in <JAIL>:

$ fail2ban-client set <JAIL> unbanip <IP>

For sshd jail:

$ fail2ban-client set sshd unbanip 10.12.112.1

Manually ban a <IP> address in <JAIL>:

$ fail2ban-client set <JAIL> banip <IP>

For sshd jail:

$ fail2ban-client set sshd banip 10.12.112.1

Resources

fail2ban/fail2ban_commands.txt · Last modified: 2020/04/10 17:38 (external edit)