Closed git-n-pissed closed 5 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is locked due to inactivity
Is there an existing issue for this?
Current Behavior
The unban action of the clouldflare-token.conf file fails. This is happening because the initial
GET
call to the Cloudflare API hasnotes
in its query string, and the default value ofnotes
isFail2Ban <name>
. The space in that value is causing the failure.I.e. this:
Should be changed to this (confirmed working):
You might also be able to get away with using
%20
, instead of an_
, but I haven't tried that.Expected Behavior
Unban action shouldn't fail
Steps To Reproduce
1.) Cause a ban 2.) View the Cloudflare dashboard and see the ban was added (Security > WAF > Tools > IP Access Rules) 3.) Wait the required unban time (default is 10 minutes) 4.) View the fail2ban.log and verify that an unban was attempted 5.) View the Cloudflare dashboard and see that the ban still exists
Environment
CPU architecture
x86-64
Docker creation
Container logs