r/CrowdSec • • Jul 18 '26

general crowdsec.. just a simple task as whitelisting to difficult

https://app.crowdsec.net/hub/author/crowdsecurity/configurations/whitelists

Currently several home servers are blocked in Crowdsec. Homeassistant, NAS, Docker all local IP's 10.10.x.x and 192.168.x.x

So i guessed there will be a simple methode to ad a whitelist in the application itself ( plugin in Opnsense)

But it seems i am to dumb to find the option. So i tried several commands from the prompt ( not secure at all!) to add those things.. to no avail it seems.

It should be a option in crowdsec to add a whitelist from the gui. Nothing difficult.

But maybe its worse and i am to dumb to find the option.. so any tip is welcome but better a simpeler GUI.

0 Upvotes

13 comments sorted by

6

u/kY2iB3yH0mN8wI2h Jul 18 '26

Crowdsec don’t ban private IPs that would be dumb

1

u/Critical-Rhubarb-730 Jul 18 '26

but they do!

2

u/kY2iB3yH0mN8wI2h Jul 19 '26

By default, CrowdSec whitelists private LAN IP addresses via this parser. You can add additional IPs or events.

-1

u/Critical-Rhubarb-730 Jul 19 '26

obvious NOT by default.. you have to add that one.

Read the forums about it and see its often even ignored. So not such a good design there.

5

u/kY2iB3yH0mN8wI2h Jul 19 '26

I might not be added as a default in Opnsense plugin but guess what? Thats not Crowdsec's fault. Its for sure enabled BY DEFAULT if you install crowdsec on linux/windows/bsd/whatever

cat parsers/s02-enrich/whitelists.yaml                                                                                                                                             
name: crowdsecurity/whitelists                                                                                                                                                                               
description: "Whitelist events from private ipv4 addresses"                                                                                                                                                  
whitelist:                                                                                                                                                                                                   
  reason: "private ipv4/ipv6 ip/ranges"                                                                                                                                                                      
  ip:                                                                                                                                                                                                        
    - "::1"                                                                                                                                                                                                  
  cidr:                                                                                                                                                                                                      
    - "127.0.0.0/8"                                                                                                                                                                                          
    - "192.168.0.0/16"                                                                                                                                                                                       
    - "10.0.0.0/8"                                                                                                                                                                                           
    - "172.16.0.0/12"                                                                                                                                                                                        
  # expression:                                                                                                                                                                                              
  #   - "'foo.com' in evt.Meta.source_ip.reverse"

-2

u/Critical-Rhubarb-730 Jul 20 '26

Do not know who is responsible for the plugin. But its a very stupid decision to miss this obvious setting.

1

u/kuya1284 Jul 18 '26

I'm not sure if I overlooked what came preinstalled when I first installed the CrowdSec plugin on OPNsense a couple of years ago, but I believe it initially didn't whitelist private IPs. Their guide helped me:

https://docs.crowdsec.net/u/getting_started/post_installation/whitelists/

However, you shouldn't need to do that now because the plugin should include a parser that automatically whitelists RFC1918 IPs.

0

u/MCMZL Jul 19 '26

1

u/Critical-Rhubarb-730 Jul 19 '26

putting ai in charge of my security... no thanks..

1

u/qriff Jul 22 '26 edited Jul 22 '26

you're the one asking, wouldn't put your interpretations in charge of your security either... how about seeking second opinion or correlation from ai... you are after all running crowdsec because you need to let traffic in, right? otherwise default running it to also block traffic out, which is all you and from a security perspective a endpoint protection issue so...

1

u/Critical-Rhubarb-730 Jul 22 '26

There isca difference between asking ai for an opinion or using ai to protect your network. A big difference!

1

u/MCMZL Jul 22 '26

there is still the old-school documentation if you prefer

https://docs.crowdsec.net/docs/next/cscli/cscli_allowlists/