Lines 13-21
Link Here
|
13 |
# Notes.: command executed once at the start of Fail2Ban. |
13 |
# Notes.: command executed once at the start of Fail2Ban. |
14 |
# Values: CMD |
14 |
# Values: CMD |
15 |
# |
15 |
# |
16 |
actionstart = iptables -N fail2ban-<name> |
16 |
actionstart = sleep 1 |
|
|
17 |
iptables -n -L fail2ban-sshd &> /dev/null && exit 0 |
18 |
iptables -N fail2ban-<name> |
17 |
iptables -A fail2ban-<name> -j RETURN |
19 |
iptables -A fail2ban-<name> -j RETURN |
18 |
iptables -I INPUT -p <protocol> -j fail2ban-<name> |
20 |
iptables -I INPUT -p <protocol> -j fail2ban-<name> |
|
|
21 |
sleep 1 |
19 |
|
22 |
|
20 |
# Option: actionstop |
23 |
# Option: actionstop |
21 |
# Notes.: command executed once at the end of Fail2Ban |
24 |
# Notes.: command executed once at the end of Fail2Ban |