linuxserver / docker-swag

Nginx webserver and reverse proxy with php support and a built-in Certbot (Let's Encrypt) client. It also contains fail2ban for intrusion prevention.
https://docs.linuxserver.io/general/swag
GNU General Public License v3.0
2.87k stars 245 forks source link

[BUG] variables in action cloudflare-token are not substituted #515

Open elmuz opened 2 hours ago

elmuz commented 2 hours ago

Is there an existing issue for this?

Current Behavior

I am facing the following issue: even though <cfzone> is assigned in jail.local it is not substituted at banning time. In fact if I set "echo " > /config/fail2ban/test.txt" as "banaction" I will get "" instead of the actual variable value. I feel maybe I am misunderstanding configuration settings, but I did a lot of trial/error.

This is my jail.local (snippet)

[DEFAULT]
cftoken = xyz....
cfzone = fd4ec1...
# Prevents banning LAN subnets
ignoreip = 10.0.0.0/8
           192.168.0.0/16
           172.16.0.0/12

...

Expected Behavior

No response

Steps To Reproduce

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

docker image: 4188c008a7d2

Container logs

nothing relevant related to fail2ban
github-actions[bot] commented 2 hours ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.