I've tried to search for support threads here on discord, but can't really find anything. I've also tried to read the docs and asked chatgpt (increadiably useless, but was worth a try) but I feel like I'm missing something fundamental here.
What I want: - AppSec triggered from traefik to add an IP block on nftables.
My setup: - Ubuntu server - nftables in front of a traefik instance - crowdsec installed, listening on port 8080, appsec running listening on port 7422 - crowdsec-bouncer-traefik-plugin installed and enabled (crowdsecMode: appsec) - crowdsec-firewall-bouncer
When I manually add a decision
sudo cscli decisions add -i <client-up> -t ban -d 1m
sudo cscli decisions add -i <client-up> -t ban -d 1m
I'm locked out directly
When I run "curl -vk "https://<server domain>/?id=%27%20OR%201%3D1--" I can see the following in my traefik logs.
╭────┬───────────────┬───────────────────────────────────────────────────────┬─────────┬────┬───────────┬──────────────────────╮│ ID │ value │ reason │ country │ as │ decisions │ created_at │├────┼───────────────┼───────────────────────────────────────────────────────┼─────────┼────┼───────────┼──────────────────────┤│ 51 │ Ip:<client computer> │ anomaly score block: sql_injection: 10, anomaly: 10, │ │ │ │ 2025-09-21T12:25:52Z
╭────┬───────────────┬───────────────────────────────────────────────────────┬─────────┬────┬───────────┬──────────────────────╮│ ID │ value │ reason │ country │ as │ decisions │ created_at │├────┼───────────────┼───────────────────────────────────────────────────────┼─────────┼────┼───────────┼──────────────────────┤│ 51 │ Ip:<client computer> │ anomaly score block: sql_injection: 10, anomaly: 10, │ │ │ │ 2025-09-21T12:25:52Z
So AppSec seems to do what I want. But decisions is empty.
My understanding of this is that there's an alert created based on the AppSec trigger, but no decision is matched. SO nftables will not block anything.