Autonomía digital y tecnológica

Código e ideas para una internet distribuida

Linkoteca. iptables


First, find the right jail to unban for. Use:

fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'

to get the actual jail names. Then, use this to find the iptables rule name:

iptables -L -n

The rule name and jail name may not be the same but it should be clear which one is related to which.

Then, with Fail2Ban v0.8.8 and later:

fail2ban-client set unbanip

Where is the jail name, and is the IP address to unban.

With Fail2Ban before v0.8.8, the syntax is different:

fail2ban-client get actionunban