mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
action.d/ufw.conf: amend to #3018: parameter kill-mode extended with conntrack
This commit is contained in:
parent
c7a86b4616
commit
bbfff18280
1 changed files with 2 additions and 1 deletions
|
|
@ -33,13 +33,14 @@ actionunban = if [ -n "<application>" ] && ufw app info "<application>"
|
|||
fi
|
||||
|
||||
# Option: kill-mode
|
||||
# Notes.: can be set to ss (may be extended later with other modes) to immediately drop all connections from banned IP, default empty (no kill)
|
||||
# Notes.: can be set to ss or conntrack (may be extended later with other modes) to immediately drop all connections from banned IP, default empty (no kill)
|
||||
# Example: banaction = ufw[kill-mode=ss]
|
||||
kill-mode =
|
||||
|
||||
# intern conditional parameter used to provide killing mode after ban:
|
||||
_kill_ =
|
||||
_kill_ss = ss -K dst "[<ip>]"
|
||||
_kill_conntrack = conntrack -D -s "<ip>"
|
||||
|
||||
# Option: kill
|
||||
# Notes.: can be used to specify custom killing feature, by default depending on option kill-mode
|
||||
|
|
|
|||
Loading…
Reference in a new issue