[Definition] actionstart = actionstop = actioncheck = actionban = ufw from comment "" ufw out to comment "" iptables -I DOCKER-USER 1 -s -j REJECT actionunban = ufw delete from ufw delete out to iptables -D DOCKER-USER -s -j REJECT # Option: kill-mode # 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 "[]" _kill_conntrack = conntrack -D -s "" # 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): add = prepend # Option: blocktype # Notes.: reject or deny blocktype = deny # Option: comment # Notes.: comment for rule added by fail2ban comment = by Fail2Ban after attempts against