Crowdsec #48
Replies: 4 comments 9 replies
-
|
Great suggestion! Are you familiar with how to integrate it properly in a Docker Compose setup? If you have any recommendations or would like to contribute a working example, feel free to share it. Even better if you’re up for submitting a PR! We’d be happy to review it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @dmesad, This is a working basic configuration which could serve as a guide to a formal implementation: I think it would need some changes to better implement it. The crowdsec bouncer is only packaged with debian so I changed the base Docker image to use debian instead of alpine. (It should be possible to install it on alpine but I didn't manage to do it). |
Beta Was this translation helpful? Give feedback.
-
|
Just wanted to share an update: I've added CrowdSec to the docker-setup and also integrated Prometheus and Grafana to monitor it. I'm using the official dashboards from crowdsecurity. Everything works smoothly inside Docker. The only remaining step is configuring the firewall bouncer on the host so it can block malicious IPs at the network level. To set up the firewall bouncer on the host:
cd /path/to/docker-setup
docker compose exec crowdsec cscli bouncers add firewall-bouncer
api_url: http://127.0.0.1:8080
api_key: <your-api-key-here>
sudo systemctl enable --now crowdsec-firewall-bouncerThe bouncer will now talk to the CrowdSec API exposed from the container on Feel free to test it and let me know if everything works as expected! |
Beta Was this translation helpful? Give feedback.
-
|
I just published a full guide on how to add CrowdSec + Firewall Bouncer to the Wiredoor Setup: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
It would be nice to include crowdsec in the docker compose example. This would make wiredoor a litle more secure for exposing services.
Beta Was this translation helpful? Give feedback.
All reactions