Skip to content

Sometimes not unbanning #1

@pjv

Description

@pjv

Hi @jkbzh, thanks for this code - saved me writing something like it.

After setting everything up and testing and seemingly getting it working fine, I'm noticing that sometimes IP's are successfully getting unbanned (by f2b) and sometimes they are not. This results in the temp ban IP list growing and containing old bans that should have timed out and been deleted.

I know that it's an intermittent issue because i set up some "unban" logging and when I went through the log of unban requests and tried to manually match them against the CF list, some were there and some weren't.

I am looking for a way to try to debug this issue and wondering if you have any suggestions. Do you know where I might look for logs (running under ubuntu)?

I was looking at the https://github.com/cloudflare/cloudflare-python repo's readme and thought maybe adjusting the "retries" parameter on the list_items_delete_by_id function could possibly help.

I also noticed that the cloudflare-python is (currently) at version 4.3.1 but f2b_cf is locked at 3.1.1 and was wondering about trying to update the cloudflare module. Any thoughts on that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions