mirror of https://github.com/fail2ban/fail2ban
option "add", can be set to "insert <num>" instead of prepend (customization or backwards compat)
parent
e4e7a83cff
commit
5debaa4cac
|
@ -19,9 +19,9 @@ actioncheck =
|
||||||
|
|
||||||
actionban = if [ -n "<application>" ] && ufw app info "<application>"
|
actionban = if [ -n "<application>" ] && ufw app info "<application>"
|
||||||
then
|
then
|
||||||
ufw prepend <blocktype> from <ip> to <destination> app "<application>" comment "<comment>"
|
ufw <add> <blocktype> from <ip> to <destination> app "<application>" comment "<comment>"
|
||||||
else
|
else
|
||||||
ufw prepend <blocktype> from <ip> to <destination> comment "<comment>"
|
ufw <add> <blocktype> from <ip> to <destination> comment "<comment>"
|
||||||
fi
|
fi
|
||||||
ss -K dst [<ip>]
|
ss -K dst [<ip>]
|
||||||
|
|
||||||
|
@ -33,6 +33,10 @@ actionunban = if [ -n "<application>" ] && ufw app info "<application>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[Init]
|
[Init]
|
||||||
|
# Option: add
|
||||||
|
# Notes.: can be set to "insert 1" to insert a rule at certain position (here 1):
|
||||||
|
add = prepend
|
||||||
|
|
||||||
# Option: blocktype
|
# Option: blocktype
|
||||||
# Notes.: reject or deny
|
# Notes.: reject or deny
|
||||||
blocktype = reject
|
blocktype = reject
|
||||||
|
|
Loading…
Reference in New Issue