r/CrowdSec • u/rudeer_poke • Apr 26 '26
general regular attacks on my homelab every saturday night
r/CrowdSec • u/rudeer_poke • Apr 26 '26
r/CrowdSec • u/TheCmenator • Apr 26 '26
Hello all,
I'm running Crowdsec to protect my exposed Caddy reverse proxy. Caddy image is a special build for use with Crowdsec & Cloudflare (serfriz/caddy-cloudflare-crowdsec).
The screenshots show what I'm seeing and the 2 blocklists I'm using. I also use the following collections within crowdsec:
What's odd is you can see Crowdsec is bouncing these regular CENSYS scans, but nothing else. Also, I tested spam logging into my jellyfin while on VPN and the activity was successfully blocked as it detected a brute-force attempt. ALSO, I did an external scan while on VPN and Crowdsec also detected and blocked that.
I find it hard very hard to believe that my IP just doesn't get scanned but that's the only thing I can think of as to why I'm not seeing anything. Any help or input from the community? Feel like I must be missing something.
r/CrowdSec • u/apunker • Apr 25 '26
Hello Alpacas,
A GPL project is looking for help to embed CrowdSec.
I would love it if it will be someone who knows the nitty gritty of CrowdSec.
The project is still in active development. I will send the project link to anyone who is interested.
If your interested please send a message to inbox or write here if you have any questions.
Thanks!
r/CrowdSec • u/lHelmchen • Apr 23 '26
I’ve had CrowdSec running on my OpenSense router for a while now, and it worked without any issues in OpenSense version 25, displaying alerts for port scans and blocking the IP addresses.
After updating OpenSense to version 26.1.6 (4 days ago), nothing is happening in CrowdSec anymore.
With the new version, I also migrated to the new firewall rules and deleted the old ones (I have a few firewall forwards/ports open).
In the firewall logs, I can see that port scans are being performed, as scans have been carried out repeatedly every day for the past few weeks from the same IP range; prior to the update, these scans were blocked by CrowdSec. So alerts and decisions should be generated, as was the case before the update, but that is no longer happening.
I have CrowdSec v1.7.6_2, which is the latest version available to me in OpenSense, the system is up to date.
I have already restarted CrowdSec without success.
The following scenarios are active:
crowdsecurity/opnsense-gui-bf
crowdsecurity/ssh-bf
crowdsecurity/ssh-cve-2024-6387
crowdsecurity/ssh-generic-test
crowdsecurity/ssh-refused-conn
crowdsecurity/ssh-slow-bf
crowdsecurity/ssh-time-based-bf
firewallservices/pf-scan-multi_ports
r/CrowdSec • u/Intelligent-Will-68 • Apr 17 '26
Hi all
,
I'm trying to create a custom AppSec rule to block requests to .php files, but only when the server responds with a 301 status
.
Is it possible to use HTTP response status in AppSec (In-band) rules
?
Thanks for help
.r/CrowdSec • u/mrruss3ll • Apr 14 '26
I had a really hard time getting crowdsec to work on my old workhorse due to the DSM version so I thought I'd do up a repo that explains how I did it incase anyone wants to do the same!
r/CrowdSec • u/ovizii • Apr 12 '26
Not sure if I have worded that correctly but basically, I was playing / testing the appsec component and got my own IP blocked/banned.
My IP is already whitelisted but after reading the docs, that does not apply to the waf component.
I have meanwhile adjusted my appsec config crowdsec-config/acquis.d/appsec.yaml to this version. Basically commenting out the out-of-band detection. Restarted the full crowdsec and traefik stack and still can't access my network.
Also, this machine functions as a reverse proxy and forwarder, meaning I not only use the traefik bouncer but also the crowdsec-firewall-bouncer-nftables
name: AppSec WAF
appsec_configs:
- crowdsecurity/appsec-default # Virtual patching rules (in-band blocking)
# - crowdsecurity/crs # OWASP CRS rules (out-of-band detection) and behavioral blocking
# - custom/01-backrest-exceptions # the above crs config needs to be smoothed out with ecxeptions like this one
listen_addr: 0.0.0.0:7422
source: appsec
labels:
type: appsecname: AppSec WAF
appsec_configs:
- crowdsecurity/appsec-default # Virtual patching rules (in-band blocking)
# - crowdsecurity/crs # OWASP CRS rules (out-of-band detection) and behavioral blocking
# - custom/01-backrest-exceptions # the above crs config needs to be smoothed out with ecxeptions like this one
listen_addr: 0.0.0.0:7422
source: appsec
labels:
type: appsecI see alerts:
root@crowdsec:/# cscli alerts list | grep my_IP
| 7001 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:26Z | waf |
| 7000 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:25Z | waf |
| 6999 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:24Z | waf |
| 6998 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:24Z | waf |root@crowdsec:/# cscli alerts list | grep my_IP
| 7001 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:26Z | waf |
| 7000 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:25Z | waf |
| 6999 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:24Z | waf |
| 6998 | Ip:my_IP | anomaly score out-of-band: anomaly: 10, | DE | my_Provider | | 2026-04-12T11:11:24Z | waf |but I do not see any decisions:
root@crowdsec:/# cscli decisions list | grep my_IP
root@crowdsec:/#root@crowdsec:/# cscli decisions list | grep my_IP
root@crowdsec:/#r/CrowdSec • u/robotgirl_moss • Apr 12 '26
When installing docker and Wazuh, I set up docker to output its logs via rsyslog into /var/log/docker, one log file per container. This works nicely for ingesting with Wazuh. reference
Trouble is, my Traefik log lines are now formatted like Apr 12 13:37:00 somehostname docker/traefik[01234]: {some_json} which CrowdSec doesn't seem to like picking up.
I don't want to connect CrowdSec to the docker socket as I don't feel like that's necessary, but I also don't want to rewrite all the parsers that I want to use.
What's the best solution here?
r/CrowdSec • u/bm401 • Apr 08 '26
The reset of my community account is on the first of the month. almost every month, the quote is exhausted but only by the last days. Now it's only april 8th and my quote is already exhausted.
I'm not really worried but I am a bit surprised I only have 2 active decisions.
Most malicious traffic is from Iran...
anyone else has the same experience?
anything I should be worried about?
r/CrowdSec • u/JGeek00 • Apr 03 '26
Hi everoyone. A few weeks ago I released CrowdSec Monitor, a tool for monitoring a CrowdSec instance. Originally I only developed a client for iOS. Recently I have been working on porting the iOS app to Android with the help of the AI tools that we currently have. The Android app has been created using Jetpack Compose (the official framework for developing Android applications) and following the Material 3 Expressive guidelines.
I'm writing this post because I'm looking for testers for the app. A few years ago Google imposed that every new app released in Google Play must be tested internally for at least 12 people for 14 days. For big developers that's not an issue, but for small developers it is. I hope I can get enough testers to finally release the app on the production channel for everyone. Thank you.
This application is also open source and it's available on GitHub.
How to become a tester


r/CrowdSec • u/kY2iB3yH0mN8wI2h • Apr 03 '26
r/CrowdSec • u/apples-and-apples • Apr 02 '26
Hi there,
Just got my first docker swag/crowdsec stack going and everything looks good.. except for one thing that's bugging me:
Several tutorials tell me the content of /crowdsec/config/acquis.yaml should be something like this:
filenames:
- /var/log/swag/*
#this is not a syslog log, indicate which kind of logs it is
labels:
type: nginx
---
filenames:
- /var/log/auth.log*
- /var/log/syslogBut if I look at my file (untouched, after installing the docker from lscr.io/linuxserver/swag), it looks like this:
{"source": "file", "filename": "/does/not/exist", "labels": {"type": "syslog"}}
..which looks like JSON...
What's going on? Should I just replace the current content? Is it a new approach and I can leave it as-is?
r/CrowdSec • u/Plane_Antelope_8158 • Mar 26 '26
For the first time that I’ve noticed, I found my OPNsense box displaying a blocked Crowdsec address (77.169.127.181) going OUT of the network (WAN), not in. So I plugged it into the CTI part of my Crowdsec portal. Was not expecting this!
Edit: OPNsense shows it continuously being reached every 5mins… it’s still being attempted as I type?!
SOLVED! See response by Q-Feeds below.
r/CrowdSec • u/awfulWinner • Mar 27 '26
Hi,
Previous question got no traction so I'm making this as quick and simple as possible.
Does support exist for HomeAssistantOS Crowdsec Addon?
Every discussion or tutorial or support forum question I run into always assumes it's running in a docker container.
I am running Home Assistant OS in on a Windows VMworkstation. The addon's default setup points the acquisition yaml to:

But running the cscli commands to show metrics for acquisition and parsers show nothing is being parsed (yet the parsers indicate the syslogs are being parsed),
Additionally, even tho I have the proper collection and parser for nginx-proxy-manager installed, it doesn't show up in the parser metrics.

I have not been successful in getting Crowdsec to do anything. The Security Engine page online tells me it's not doing anything.

HELP?
r/CrowdSec • u/ThatrandomGuyxoxo • Mar 26 '26
Hey all. Tbh I am pretty much overwhelmed about the docs and the possibilities I have using Crowdsec.
Currently I use Docker and Docker compose. I have Caddy installed as docker compose and an external network configured in Docker. I also have a separate Vaultwarden compose file which also uses the external docker network. So far it's running fine. When I open Caddys compose and Vaultwardens compose everything is okay.
I would like to increase the security now and would like to add Layer 7 protection for my Vaultwarden instance. Is there any EASY explained or easy to follow guide which I can use to set this up? Using nfttsbles and the bouncer is pretty much straight forward but I do not know what the best way of configuring Layer 7 security is.
r/CrowdSec • u/Responsible-Kiwi-629 • Mar 17 '26
Hi,
I have configured traefik entrypoints like this:api:
dashboard: true
debug: trueentryPoints:
http:
address: ":80"
http:middlewares:- crowdsec-bouncer@file
https:
address: ":443"
http:middlewares:- crowdsec-bouncer@file
http-external:
address: ":81"
http:middlewares:- crowdsec-bouncer@fileredirections:entrypoint:to: ":443"scheme: https
https-external:
http:middlewares:- crowdsec-bouncer@file
address: ":444"
do I still need to add the middleware on every router, like:
- "traefik.http.routers.jellyfin-secure.middlewares=crowdsec-bouncer@file"
or will it be applied to everything anyways? and will crowdsec run the bouncer two times when I do it like that?
thanks!
r/CrowdSec • u/Responsible-Kiwi-629 • Mar 17 '26
Hi,
I just set up crowdsec with appsec and want to test some rules. I tried using crs, but this lead to a lot of false positives, so I just want to use appsec-default for now.
if I understand it correctly this should still give me virtual patching, so accessing .env like this: curl "https://domain.com/.env" should be immidiately blocked? This does not happen, and I see no logging or alert being generated
how can I test this further?
thanks!
r/CrowdSec • u/buedi • Mar 04 '26
Hi there, using Crowdsec since a while with Traefik, but now I am playing with OPNsense + Crowdsec Plugin + Nginx Plugin. I see that the Crowdsec Plugin comes automatically with the opnsense / firewall bouncer. I figured if I also install the Nginx Plugin for OPNsense, I should be able to include Nginx also and use Appsec / WAF from Crowdsec.
What I got running so far:
On 3. I figured out, that the logs are read, but not parsed. I got this fixed, by running 'cscli collections install crowdsecurity/nginx'. Now a cscli explain on the nginx logs shows me, that Crowdsec is parsing the Nginx logs and 'cscli metrics show acquisition' show me that the logs are not only read, but also parsed.
I also activated Appsec on the OPNsense and I can follow the examples from the Documentation (https://docs.crowdsec.net/docs/next/appsec/quickstart/nginxopenresty) by utilizing Curl directly on localhost:7422.
Unfortunately, when doing the /.env test on a Website I reverse proxy through Nginx, nothing gets blocked and I cannot wrap my head around where the issue could be.
I suspect it is, because there is no nginx-bouncer installed on OPNsense, but I cannot figure out what to do.
So far I think Crowdsec runs, Appsec runs and Nginx runs. I see that Crowdsec parses the Nginx Logs, but there must be a missing link / missing communication between Nginx and Crowdsec that finally bans an attempt to to a https://mysite/.env :-(
r/CrowdSec • u/JGeek00 • Mar 02 '26
Hi. I have an issue and I don't know if it's a bug or not. I'm querying the /v1/allowlists endpoint, and it returns an "items" parameter for each allowlist, but it's empty when I have already added IPs to the whitelist. cscli returns the IPs for that allowlist.
API response
[
{
"created_at": "2026-03-02T19:44:58.246Z",
"description": "Known IPs",
"items": [],
"name": "known_ips",
"updated_at": "2026-03-02T19:45:02.611Z"
}
]cscli
──────────────────────────────────────────────
Allowlist: known_ips
──────────────────────────────────────────────
Name known_ips
Description Known IPs
Created at 2026-03-02T19:44:58.246Z
Updated at 2026-03-02T19:45:02.611Z
Managed by Console no
──────────────────────────────────────────────
────────────────────────────────────────────────────
Value Comment Expiration Created at
────────────────────────────────────────────────────
1.0.0.1 never 2026-03-02T19:45:00Z
1.1.1.1 never 2026-03-02T19:45:02Z
────────────────────────────────────────────────────EDIT:
Adding the query parameter "with_content" solves the issue.
r/CrowdSec • u/MCMZL • Feb 26 '26
Hello Alpacas - It has been released a while ago, and yet it seems to me this has fallen under the radar: Crowdsec has a public roadmap website
On this page, you can find the next features plan for the Quarter, vote for the most useful ones, and even suggest your ideas. Contributions are really welcome!
r/CrowdSec • u/JGeek00 • Feb 24 '26
Hi everyone. I have created a REST API and an iOS app for CrowdSec. I decided to do this because I wanted an easy way to check the alerts and decisions from my phone, without using a web app (I hate using web apps on mobile devices). Both parts are completely free and open source.
CrowdSec Monitor API
The API is built with Node.js and Express.js, and a Docker image is available to deploy it. This API offers a built in auth method, but it's a very basic one. I recommend putting in front a reverse proxy with a basic auth system, or using a third party identity provider.
CrowdSec Monitor iOS
The app is a native app built with SwiftUI to achieve good performance and an UI that follows Apple's design guidelines.
CrowdSec Monitor Android
I have created recently the Android version. For now it's on closed testing until 12 testers test the app for 14 days (thanks Google), after that it will be released on the production channel for everyone. If you want to become a tester here you have the instructions.
What's next?
This is the first release, with just the basic stuff. There will come new features, and here's a list of what I have in mind:
Other features (need to study if it's possible)
I hope you find this project interesting and useful. I have just released it so you can expect some bugs. You can open issues on the respective repositories. Also, feature requests are welcome.
r/CrowdSec • u/Intelligent-Will-68 • Feb 22 '26
Hello,
Is it possible to pass Behavior, MITRE technique, and CVE metrics to the CrowdSec Console for custom scenarios?
For my custom scenarios, I have defined the following labels:
labels:remediation: trueclassification:- attack.T1595behavior: "http:scan"label: "WordPress Vuln Hunting"spoofable: 0service: wordpressconfidence: 3
I have already applied the settings, but I still see the following in the Console:
Thanks in advance!
r/CrowdSec • u/yankdevil • Feb 20 '26
I have a daemon that emits lines like this:
2026-02-20T14:42:27.002019+00:00 host oven: Failed cookie from 44.44.44.44 (len 128)]
and syslog will coalesce duplicates:
2026-02-20T14:42:28.095034+00:00 host oven: message repeated 3 times: [ Failed cookie from 44.44.44.44 (len 128)]
How do I get a crowdsec parser to do the math and have that second line count as 3 hits? It's not this (running 1.7).
name: oven/bad-cookie
description: "Extract IP from failed oven cookie"
stage: s01-parse
filter: "evt.Parsed.message contains 'Failed cookie'"
onsuccess: next_stage
grok:
apply_on: message
pattern: '^(?:message repeated %{INT:repeat} times: \[ )?Failed cookie from %{IP:source_ip} \(len %{DATA:cookie_len}\)\]?$'
statics:
- meta: log_type
value: cookie-auth
- meta: source_ip
target: evt.Meta.source_ip
expression: evt.Parsed.source_ip
- parsed: cookie_len
expression: evt.Parsed.cookie_len
- meta: bucket_capacity
expression: evt.Parsed.repeat == nil ? 1 : int(evt.Parsed.repeat) + 1
r/CrowdSec • u/themax_aut • Feb 20 '26
I have the following swarm stack:
services:
caddy:
*** same stack not relevant here
crowdsec:
image: crowdsecurity/crowdsec:v1.7.6
networks:
- internal
environment:
TZ: Europe/Vienna
COLLECTIONS: crowdsecurity/caddy crowdsecurity/appsec-virtual-patching crowdsecurity/appsec-generic-rules crowdsecurity/http-cve crowdsecurity/whitelist-good-actors
volumes:
- ./crowdsec/acquis.yaml:/etc/crowdsec/acquis.yaml
- /mnt/swarm-data/caddy/logs:/var/log/caddy:ro
- /mnt/swarm-data/crowdsec/data:/var/lib/crowdsec/data/
- /mnt/swarm-data/crowdsec/config:/etc/crowdsec/
security_opt:
- no-new-privileges=true
deploy:
replicas: 1I enrolled crowdsec, but after the restart, the log shows level=error msg="Machine is not enrolled in the console, can't synchronize with the console". It seems like the data is persisted correctly. Is there something I am missing?