#Crowdsec traefik decisions not getting through.

1 messages ยท Page 1 of 1 (latest)

harsh rivet
#

Hi everyone,

I used to get messages of decisions about every half an hour. Currently not getting any. I've moved from nginx to traefik, and I don't know if it is even functioning correctly at this point.

Part of my acquis.yaml:

filenames:
  - /var/log/nginx/*.log
  - ./tests/nginx/nginx.log
  - /var/log/swag/*.log
  - /var/log/traefik/*
#this is not a syslog log, indicate which kind of logs it is
labels:
#  type: nginx
  type: traefik

I still have parts of the old logs in here, but only traefik is getting updated.

My dynamic file is as follows:

http:
  middlewares:
    crowdsec-bouncer:
      plugin:
        crowdsec-bouncer-traefik-plugin:
          enabled: true
          crowdsecMode: live
          crowdseclapikey: "api key generated by doing"

docker exec crowdsec cscli bouncers add TraefikBouncer, please see: https://share.golfwithus.nl/u/zBLusE.png

I don't know why my decisions are not getting through, am I missing something?
I am running both traefik and crowdsec in docker.

My profiles.yaml is as follows:

name: default_ip_remediation
#debug: true
filters:
 - Alert.Remediation == true && Alert.GetScope() == "Ip"
decisions:
 - type: ban
   duration: 24h
duration_expr: "Sprintf('%dh', (GetDecisionsCount(Alert.GetValue()) + 1) * 24)"
notifications:
  - discord  # Set the webhook in /etc/crowdsec/notifications/slack.yaml before enabling this.
on_success: break
deft eagleBOT
#
Important Information

Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command /resolve or press the green resolve button below.

Log Files

If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.

Guide Followed (CrowdSec Official)

If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.

Screenshots

Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.

harsh rivet
#

There are no errors in the logs, everything seems to operate just fine. It's just that no decisions are seen, which I think is odd!

#

Fyi, within the crowdsec logs I can see decisions popping up!

#

time="2025-12-30T22:35:29+01:00" level=info msg="172.18.0.11 - [Tue, 30 Dec 2025 22:35:29 CET] \"GET /v1/decisions?ip=IP_HERE_OF_SOMEONE HTTP/1.1 200 106.976866ms \"Crowdsec-Bouncer-Traefik-Plugin/1.X.X\" \"" module=lapi

#

Within traefik I have added:

      # Crowdsec settings
      - "--experimental.plugins.crowdsec-bouncer-traefik-plugin.modulename=github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin"
      - "--experimental.plugins.crowdsec-bouncer-traefik-plugin.version=v1.5.0-beta1"
muted mason
#

Did you make sure to install the traefik collection? Also check cscli metrics as it will inform which files it sees and the parsed status

#

BTW bouncers / remediation don't make decisions they simply enforce them. (The logs you showed is traefik checking the IP)

Decisions are only made through log files or WAF rules.

harsh rivet
#

I feel so stupid, I didn't...

#

I am not quite sure if it works yet.

#
root@Hypnos:~# docker exec -it crowdsec cscli metrics
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Acquisition Metrics                                                                                                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Source                           โ”‚ Lines read โ”‚ Lines parsed โ”‚ Lines unparsed โ”‚ Lines poured to bucket โ”‚ Lines whitelisted โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ docker:authentik-server          โ”‚ 151        โ”‚ -            โ”‚ 151            โ”‚ -                      โ”‚ -                 โ”‚
โ”‚ file:/var/log/traefik/access.log โ”‚ 3.66k      โ”‚ 3.66k        โ”‚ -              โ”‚ 62                     โ”‚ 876               โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
#

It def did something

#

I just tested it by banning a friend, and that did register.

harsh rivet
harsh rivet
harsh rivet
#

These are the collections I have installed: crowdsecurity/traefik crowdsecurity/nginx crowdsecurity/base-http-scenarios firix/authentik crowdsecurity/discord-crawler-whitelist

#

Access to docker sock at read only

#

I donโ€™t know where to search anymore, all seems logical ๐Ÿ˜…

#

@muted mason I did put the traefik logging on json, I know it should be supported but does that work out of the box? It has a ton and I mean a ton more info to work with

harsh rivet
#

The only warning I was able to find after startup is:

{"time":"2025-12-31T16:59:50+01:00","level":"warning","msg":"grok 'NGCUSTOMUSER' already registred","id":"shy-wave","module":"parser","name":"crowdsecurity/traefik-logs","stage":"s01-parse"}
harsh rivet
#

I think it is my appsec component in my container that is not functioning, when I disable that in the traefik plugin it works!

I am trying to follow it:https://docs.crowdsec.net/docs/next/appsec/quickstart/traefik, but on unRAID.

But when enabled I keep getting:

DEBUG: CrowdsecBouncerTraefikPlugin: 2025/12/31 19:18:09 handleNextServeHTTP ip:IP_HERE isWaf:true appsecQuery:unreachable Get "http://crowdsec:7422/": dial tcp 172.18.0.98:7422: connect: connection refused

I tried to make an appsec.yaml in my /mnt/user/appdata/crowdsec dir:
appsec_config: crowdsecurity/appsec-default labels: type: appsec listen_addr: 0.0.0.0:7422 source: appsec

I'm pretty sure appsec on 7442 just isn't working, but I have absolutely no idea how to enable it... :/

I'll just keep appsec disabled for the time being.

CrowdSec, the open-source & participative IPS

harsh rivet
#

Oh I think I made it work out! I understood it incorrectly, I needed to put it in the acquis.yaml file.

#

appsec_config: crowdsecurity/appsec-default
labels:
type: appsec
listen_addr: 0.0.0.0:7422
source: appsec

Which works!

harsh rivet
#

Havenโ€™t seen any decisions yet, but I set the logging to debug in traefik and I can see appsec works now. Just need to wait I think

harsh rivet
#

What? Still no decisions being made, everything seems to workโ€ฆ I must be missing something. Got an idea @muted mason ?

#

Interesting, I am very much confused lol

#

I have a feeling traefik is doing more then swag was or something

harsh rivet
#

Or am I missing access logging for traefik or something?

harsh rivet
#

I'm still not nearly getting enough decisions. Do you guys have any idea? I am completely lost here. Maybe I have configured it all correctly, but I'm just worried and I cannot find anything on this.

#
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Appsec Metrics                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Appsec Engine โ”‚ Processed โ”‚ Blocked โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0.0.0.0:7422/ โ”‚ 406       โ”‚ -       โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
#
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Acquisition Metrics                                                                                                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Source                           โ”‚ Lines read โ”‚ Lines parsed โ”‚ Lines unparsed โ”‚ Lines poured to bucket โ”‚ Lines whitelisted โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ docker:authentik-server          โ”‚ 42         โ”‚ -            โ”‚ 42             โ”‚ -                      โ”‚ -                 โ”‚
โ”‚ file:/var/log/traefik/access.log โ”‚ 649        โ”‚ 649          โ”‚ -              โ”‚ 98                     โ”‚ 295               โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Local API Alerts                                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Reason                                     โ”‚ Count โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ crowdsecurity/http-admin-interface-probing โ”‚ 5     โ”‚
โ”‚ crowdsecurity/http-bad-user-agent          โ”‚ 3     โ”‚
โ”‚ crowdsecurity/http-open-proxy              โ”‚ 14    โ”‚
โ”‚ crowdsecurity/http-probing                 โ”‚ 7     โ”‚
โ”‚ manual 'ban' from 'localhost'              โ”‚ 1     โ”‚
โ”‚ crowdsecurity/http-crawl-non_statics       โ”‚ 4     โ”‚
โ”‚ crowdsecurity/http-cve-2021-41773          โ”‚ 2     โ”‚
โ”‚ crowdsecurity/http-sensitive-files         โ”‚ 7     โ”‚
โ”‚ crowdsecurity/jira_cve-2021-26086          โ”‚ 1     โ”‚
โ”‚ firix/authentik-bf                         โ”‚ 1     โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
#
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Parser Metrics                                                 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Parsers                            โ”‚ Hits  โ”‚ Parsed โ”‚ Unparsed โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ child-crowdsecurity/http-logs      โ”‚ 2.14k โ”‚ 2.00k  โ”‚ 140      โ”‚
โ”‚ child-crowdsecurity/traefik-logs   โ”‚ 1.43k โ”‚ 713    โ”‚ 713      โ”‚
โ”‚ crowdsecurity/dateparse-enrich     โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ”‚ crowdsecurity/geoip-enrich         โ”‚ 447   โ”‚ 447    โ”‚ -        โ”‚
โ”‚ crowdsecurity/http-logs            โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ”‚ crowdsecurity/non-syslog           โ”‚ 784   โ”‚ 784    โ”‚ -        โ”‚
โ”‚ crowdsecurity/public-dns-allowlist โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ”‚ crowdsecurity/traefik-logs         โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ”‚ crowdsecurity/whitelists           โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ”‚ firix/authentik-logs               โ”‚ 71    โ”‚ -      โ”‚ 71       โ”‚
โ”‚ quafley/Immich_whitelist           โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ”‚ quafley/Overseerr_whitelist        โ”‚ 713   โ”‚ 713    โ”‚ -        โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

I am noticing this, is this indicatin git doesn't work correctly?

harsh rivet
#

@muted mason I also made sure to do the crowsec-generic-test for appsec:

root@Hypnos:~# docker exec -it crowdsec cscli alerts list | grep crowdsecurity/appsec-generic-test
โ”‚ 44001 โ”‚ Ip:    โ”‚ crowdsecurity/appsec-generic-test          โ”‚ NL      โ”‚ 206238 Freedom Internet BV            โ”‚           โ”‚ 2026-01-01T21:36:48Z โ”‚
โ”‚ 43999 โ”‚ Ip:   โ”‚ crowdsecurity/appsec-generic-test          โ”‚ NL      โ”‚ 199218 Proton AG                      โ”‚           โ”‚ 2026-01-01T21:35:58Z โ”‚
โ”‚ 43997 โ”‚ Ip:    โ”‚ crowdsecurity/appsec-generic-test          โ”‚ US      โ”‚ 396982 GOOGLE-CLOUD-PLATFORM          โ”‚           โ”‚ 2026-01-01T21:35:55Z โ”‚
``` All indicating it works fine. Can you confirm if it is working as it should? I just am really confused by the fact that the decisions have gone down like A LOT since switching to traefik. 

I am seeing the tests in the hub as well, not geting a message on it though on discord:
```yaml `profiles.yaml`
name: default_ip_remediation
#debug: true
filters:
 - Alert.Remediation == true && Alert.GetScope() == "Ip"
decisions:
 - type: ban
   duration: 24h
duration_expr: "Sprintf('%dh', (GetDecisionsCount(Alert.GetValue()) + 1) * 24)"
notifications:
  - discord  # Set the webhook in /etc/crowdsec/notifications/slack.yaml before enabling this.
on_success: break

I have configured everything to ban, but I will implement captcha's as well soon.

filenames:
  - /var/log/traefik/*.log
#this is not a syslog log, indicate which kind of logs it is
labels:
  type: traefik
harsh rivet
#

Most up to date config is as follows:
For traefik:

accessLog:
  filePath: /var/log/traefik/access.log
  format: json
  filters:
    statusCodes:
      - "100-199" # log informational http requests
      - "200-299" # log successful http requests
      - "300-399" # log redirects
      - "400-499" # log failed http requests
      - "500-599" # log server errors
    #retryAttempts: true # where at least one retry was attempted
    minDuration: 0ms # log all requests
  # collect logs as in-memory buffer before writing into log file
  bufferingSize: 0
  fields:
    defaultMode: keep # keep all fields per default
    headers:
      defaultMode: keep
#

For the crowdsec plugin:

crowdsec-bouncer:
      plugin:
        crowdsec-bouncer-traefik-plugin:
          enabled: true
          logLevel: ERROR
          LogFilePath: "/var/log/traefik/crowdsec-bouncer.log"
          updateIntervalSeconds: 60
          updateMaxFailure: 0
          defaultDecisionSeconds: 60
          remediationStatusCode: 403
          httpTimeoutSeconds: 10
          crowdsecMode: live
          crowdsecAppsecEnabled: true
          crowdsecAppsecScheme: "http"
          crowdsecAppsecHost: crowdsec:7422
          crowdsecAppsecFailureBlock: true
          crowdsecAppsecUnreachableBlock: true
          crowdsecLapiKey: 
          crowdsecLapiScheme: http
          crowdsecLapiHost: crowdsec:8080
          crowdsecLapiTLSInsecureVerify: false

          forwardedHeadersTrustedIPs: # In front of traefik, i.e., cloudflare.
            - 172.16.0.0/12 # Includes my custom docker networks.
          clientTrustedIPs:
            - 10.0.0.0/8
            - 192.168.0.0/16 # Trust all local subnets.
            - 172.16.0.0/12 
          forwardedHeadersCustomName: X-Forwarded-For
          captchaProvider: hcaptcha
          captchaSiteKey: 
          captchaSecretKey: 
          captchaGracePeriodSeconds: 1800
          captchaHTMLFilePath: /captcha.html
          banHTMLFilePath: /ban.html
          metricsUpdateIntervalSeconds: 600     

Decisions added for ban and captcha, both work when manually triggered.

muted mason
#

I'm not ignoring you, I'm on annual leave will be back Monday.

Everything so far looks okay, can you upload the full output of cscli metrics

harsh rivet
#

Here is the full metrics

harsh rivet
harsh rivet
#

I think I resolved my first issue loz, I tweaked more things and it seems to process correctly now. Only thing is the increasing dropped traffic requests. And the question regarding the captcha and bans :)

harsh rivet
muted mason
harsh rivet
#

I already apply crowdsec to every router, but I need to have it enabled as I deal with shareable links. Iโ€™ll just allowlist it

#

I could perhaps make a rule to bypass crowdsec from within traefik, but that will be a lot of testing

harsh rivet
muted mason
harsh rivet
#

Ah like that okay. Yeah Iโ€™m going to look into if I can exclude certain parts of that app from crowdsec. Or Iโ€™m allowlisting the ip

harsh rivet
#

Discord*

muted mason
#

Probably not, but also discord probably hasnt setup the rDNS

#

we whitelist using combination of ranges and rDNS to prevent spoofing

harsh rivet
#

Yeah okay, best bet is to just whitelist that IP, not big deal.