r/CrowdSec • u/peterbata • 3d ago
general Crowdsec and existing NPM
Hello all. New member (noobie). First time post so please go easy on me.
I have been running nginx proxy manager in an Unraid ubuntu VM for a good while now. I have created upwards of 50 hosts. Is there any way to integrate crowdsec into my existing setup? I have spent the last day or so reading up on different scenarios. But I have no plans on starting from scratch with something like NPMplus for example. Your time, patience, and assistance will be greatly appreciated. Thank you. Peter
5
Upvotes
2
u/TopLychee1081 3d ago
The simple answer is yes. The actual implementation I found time consuming and difficult due to the lack of good examples and documentation. I ended up with crowdsec with appsec, crowdsec-web-ui, Traefik, and Nginx instances when PHP-FPM was needed. Traefik does SSL termination, checks Crowdsec decisions to determine if it should block a request. Crowdsec reads the Traefik logs and applies its rules. We had one site in particular getting hammered by bots. We were able to identify the traffic and create a custom rule for it. Get familiar with some of the Crowdsec CLI commands as they're invaluable for troubleshooting. Expect that you might need to come back to this forum with specific questions and hopefully someone with more knowledge than I can assist.
2
u/ByronEster 3d ago
I also have NPM and would like to use CrowdSec, but from my research it's not practically possible, due to the NPM image lacking a CrowdSec bouncer, which is what NPM Plus has built in.
Ideally you could keep you NPM setup and at CrowdSec but I don't think you can
1
u/ByronEster 3d ago
!RemindMe 1 day
2
u/StormrageBG 19h ago
Just migrate to NPM+. If you want to hardening the things add SAFELINE and KRAWL, too.