fix(fail2ban): pass blocktype via banaction to override the ufw action default
jail-level blocktype is ignored (action [Init] wins); it must be passed as banaction = ufw[blocktype=deny].
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
bantime = 1d
|
bantime = 1d
|
||||||
banaction = {{fail2ban_firewall}}
|
banaction = {{fail2ban_firewall}}[blocktype={{fail2ban_blocktype}}]
|
||||||
allowipv6 = true
|
allowipv6 = true
|
||||||
ignoreip = 127.0.0.1/8
|
ignoreip = 127.0.0.1/8
|
||||||
backend = {{fail2ban_backend}}
|
backend = {{fail2ban_backend}}
|
||||||
blocktype = {{fail2ban_blocktype}}
|
|
||||||
ignoreself = true
|
ignoreself = true
|
||||||
|
|||||||
Reference in New Issue
Block a user