Crowdsec

I have installed security/crowdsec and would like to set it up to work with Apache (in a jail) and PF. There is plenty of documentation on line but it's too comprehensive for a beginner to understand. What I need is a starter guide to setting it up to fulfill the following:

1. detect and identify suspicious activity
2. once detected, block the IP address instantly in Apache
3. Block incoming packets from the IP
4. report the IP.

If I understand correctly, these are its usual functions but the instructions are full of terminology and concepts I have no idea whether are needed or not.

Could someone help me to set up those four basic functions, please?
 
I have never used crowdsec. On my firewall I have chosen security/tripwire.

So you configure your webserver and give tripwire a list of files to monitor.

if anything tries to modify your trigger files it sends you an email alert.

To me its kinda like mtree for the system.

Everybody has their idea what is suspicious.

To a webmaster just looking at the web server log can be intimidating.

My feeling is its better to know when a certain file has been accessed.
On a static installation like firewall or webserver you can easily pin files.
Anything that accesses them is a problem.

MultiLayer is good.
pf with tables or blacklistd. fail2ban if you must have ssh open.

Not discouraging crowdsource in your approach. Think multiple layers.
4. report the IP.
Put it on your firewall blocklist/table. Nobody else cares it seems. Maybe your local jurisdiction cares.
I dunno what to say. Its a lawless world.
 
Crowdsec works with a public blocklist, a bit like Spamhaus, so reporting suspicious activity is key to how it works. Everyone protects everyone else.

The problem is it's as complicated as Postfix to set up, so understanding it fully isn't a quick fix.
 
Back
Top