Fail2ban help needed please

Hi all,

I’ve installed VW and F2B in docker containers on my NAS and setup a cloudflare tunnel. All is working great and CF is banning IP’s.

My problem is now to get email notifications working. If I replace the action with action=%(action_mw)s I get emails working but no CF IP blocking.

How can I have both IP blocking and emails?

My vaultwarden.local jail file is:

[vaultwarden]
enabled = true
port = 80,443,8081
filter = vaultwarden
banaction = %(banaction_allports)s
logpath = /remotelogs/vaultwarden/vaultwarden.log
maxretry = 3
bantime = 14400
findtime = 14400
chain = FORWARD
destemail = greg@example.au
sender = greg@domain.net.au
sendername = Fail2ban
action = cloudflare
    iptables-allports

Any help greatly appreciated.

Greg

For anyone looking for the answer. Change the action to:

action = %(action_cf_mwl)s
    iptables-allports

you also need to define cfemail and cfapikey in your vaultwarden.local file