diff --git a/config/action.d/ufw.conf b/config/action.d/ufw.conf index bf06fe67..cf8c22be 100644 --- a/config/action.d/ufw.conf +++ b/config/action.d/ufw.conf @@ -23,7 +23,7 @@ actionban = if [ -n "" ] && ufw app info "" else ufw from to comment "" fi - ss -K dst [] + actionunban = if [ -n "" ] && ufw app info "" then @@ -32,6 +32,21 @@ actionunban = if [ -n "" ] && ufw app info "" ufw delete from to 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) +# Example: banaction = ufw[kill-mode=ss] +kill-mode = + +# intern conditional parameter used to provide killing mode after ban: +_kill_ = +_kill_ss = ss -K dst "[]" + +# Option: kill +# Notes.: can be used to specify custom killing feature, by default depending on option kill-mode +# Examples: banaction = ufw[kill='ss -K "( sport = :http || sport = :https )" dst "[]"'] + banaction = ufw[kill='cutter ""'] +kill = <_kill_> + [Init] # Option: add # Notes.: can be set to "insert 1" to insert a rule at certain position (here 1):