Line
Link Here
|
0 |
-- fail2ban/iptables-allports.conf 2011-04-02 03:59:01.178912076 +0200 |
0 |
++ /etc/fail2ban/action.d/iptables-allports.conf 2011-04-02 15:11:47.441713873 +0200 |
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 = ( flock -x 200 |
|
|
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 |
) 200>/var/lock/fail2ban-iptables-allports |
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 |