Initial commit
This commit is contained in:
27
0.10.2/action.d/iptables-multiport.local
Normal file
27
0.10.2/action.d/iptables-multiport.local
Normal file
@ -0,0 +1,27 @@
|
||||
# Fail2Ban configuration file
|
||||
#
|
||||
# Author: Cyril Jaquier
|
||||
# Modified by Yaroslav Halchenko for multiport banning
|
||||
#
|
||||
|
||||
[Definition]
|
||||
|
||||
# Option: actionstart
|
||||
# Notes.: command executed once at the start of Fail2Ban.
|
||||
# Values: CMD
|
||||
#
|
||||
actionstart = <ip64tables> -N f2b-<name>
|
||||
<ip64tables> -A f2b-<name> -j <returntype>
|
||||
<ip64tables> -I <chain> -p <protocol> -m multiport --dports <port> -j f2b-<name>
|
||||
|
||||
# Option: actionstop
|
||||
# Notes.: command executed once at the end of Fail2Ban
|
||||
# Values: CMD
|
||||
#
|
||||
actionstop = <ip64tables> -D <chain> -p <protocol> -m multiport --dports <port> -j f2b-<name>
|
||||
<actionflush>
|
||||
<ip64tables> -X f2b-<name>
|
||||
|
||||
[Init]
|
||||
|
||||
ip64tables = ip64tables <lockingopt>
|
Reference in New Issue
Block a user