| Line 26... |
Line 26... |
| 26 |
# Option: actionstart
|
26 |
# Option: actionstart
|
| 27 |
# Notes.: command executed once at the start of Fail2Ban.
|
27 |
# Notes.: command executed once at the start of Fail2Ban.
|
| 28 |
# Values: CMD
|
28 |
# Values: CMD
|
| 29 |
#
|
29 |
#
|
| 30 |
actionstart = ipset --create f2b-<name> iphash
|
30 |
actionstart = ipset --create f2b-<name> iphash
|
| 31 |
iptables -I <chain> -p <protocol> -m multiport --dports <port> -m set --match-set f2b-<name> src -j <blocktype>
|
31 |
<iptables> -I <chain> -p <protocol> -m multiport --dports <port> -m set --match-set f2b-<name> src -j <blocktype>
|
| 32 |
|
32 |
|
| 33 |
# Option: actionstop
|
33 |
# Option: actionstop
|
| 34 |
# Notes.: command executed once at the end of Fail2Ban
|
34 |
# Notes.: command executed once at the end of Fail2Ban
|
| 35 |
# Values: CMD
|
35 |
# Values: CMD
|
| 36 |
#
|
36 |
#
|
| 37 |
actionstop = iptables -D <chain> -p <protocol> -m multiport --dports <port> -m set --match-set f2b-<name> src -j <blocktype>
|
37 |
actionstop = <iptables> -D <chain> -p <protocol> -m multiport --dports <port> -m set --match-set f2b-<name> src -j <blocktype>
|
| 38 |
ipset --flush f2b-<name>
|
38 |
ipset --flush f2b-<name>
|
| 39 |
ipset --destroy f2b-<name>
|
39 |
ipset --destroy f2b-<name>
|
| 40 |
|
40 |
|
| 41 |
# Option: actionban
|
41 |
# Option: actionban
|
| 42 |
# Notes.: command executed when banning an IP. Take care that the
|
42 |
# Notes.: command executed when banning an IP. Take care that the
|