Skip to content

Ban's not working... #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ImInTheICU opened this issue Apr 12, 2025 · 1 comment
Open

Ban's not working... #73

ImInTheICU opened this issue Apr 12, 2025 · 1 comment

Comments

@ImInTheICU
Copy link

I've attempted to ban my IP to test that the ban functionality is working for me and it seems to ban me but continue letting me access the site.

cscli decisions add --ip 2600:8804:.... --duration 5m --type ban
INFO Decision successfully added                  

I've checked access logs and Cf-Connecting-Ip, X-Forwarded-For seem to be correct.

Caddyfile

{
        servers :443 {
                timeouts {
                        read_body 120s
                }
        }

        crowdsec {
                api_key OfJe.....
                api_url http://localhost:8080/
        }
}
@hslatman
Copy link
Owner

Have you tried running Caddy with debug level logging? Are there any log lines standing out indicating Caddy not being able to access your CrowdSec LAPI? Is the frequency of the streaming bouncer set to a reasonable value (e.g. every minute, or so?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants