# Need help to get custom whitelist to work

**URL:** <https://discourse.crowdsec.net/t/need-help-to-get-custom-whitelist-to-work/2736>\
**Category:** crowdsec\
**Created:** [December 27, 2025, 2:58pm UTC](https://discourse.crowdsec.net/t/need-help-to-get-custom-whitelist-to-work/2736 "2025-12-27T14:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Udeson](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/udeson/32/1359_2.png) [@Udeson](https://discourse.crowdsec.net/u/Udeson)\
**Post date:** [December 27, 2025, 2:58pm UTC](https://discourse.crowdsec.net/t/need-help-to-get-custom-whitelist-to-work/2736/1 "2025-12-27T14:58:07Z")

</div>

Hey guys,

I need your support to push me in the right direction getting my custom whitelist to work.

**Setup:**

- Ubuntu Server with Pangolin and Crowdsec (Crowdsec-Bouncer-Traefik-Plugin) installation as Docker-Images
- Crowdsec account registered and enrolled with Crowdsec installation
- Basically installation seems to work but banned IPs from my mobile and cable carrier

**Problem:**

I cannot get a custom whiteliste YAML-file parsed/recognized by crowdsec ☹

Tried to created the file via:

1. host mount directory `/etc/crowdsec/hub/parsers/s02-enrich/crowdsecurity/01-my-whitelist.yaml`
2. inside crowdsec docker image `/etc/crowdsec/parsers/s02-enrich/01-my-whitelist.yaml`

I also tried the variant to symlink from docker image to host file.

After restarting the docker images with `docker compose down && docker compose up -d --force-recreate` the file is ignored and not listed as parser in the result of `docker exec crowdsec cscli parsers list`.

_ **level=warning msg=“Ignoring file /etc/crowdsec/hub/parsers/s02-enrich/crowdsecurity/01-my-whitelist.yaml of type parsers”** _

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/crowdsec/original/2X/b/bc563e7ba93edb83e58c57fa3e019cdad872d0f1.png)

These where the contents of the file I tested with:

> name: homelab/ASN-whitelist  
> description: “Whitelist Trusted ASNs”  
> whitelist:  
> reason: “Whitelisted ASN”  
> expression:
> 
> - evt.Meta.ASNumber in [‘XXX1’, ‘XXX2’]
> - evt.Enriched.ASNumber in [‘XXX1, ‘XXX2’]

> name: homelab/ASN-whitelist  
> description: “Whitelist own ASNs”  
> whitelist:  
> reason: “Whitelisted ASN”  
> cidr:
> 
> - “XXX.XXX.X.X/16”
> - “XXX.XXX.X.X/12”

I am thankful to every idea 🙂

Thx in advance
