You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unban action of the clouldflare-token.conf file fails. This is happening because the initial GET call to the Cloudflare API has notes in its query string, and the default value of notes is Fail2Ban <name>. The space in that value is causing the failure.
I.e. this:
# The message to include in the firewall IP banning rule.
#
notes = Fail2Ban <name>
Should be changed to this (confirmed working):
# The message to include in the firewall IP banning rule.
#
notes = Fail2Ban_<name>
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
- OS: Ubuntu Server 22.04
- How docker service was installed: Docker Compose
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.
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
The text was updated successfully, but these errors were encountered: