# Whitelist SourceRange via docker-compose IS NOT respected

**URL:** <https://community.traefik.io/t/whitelist-sourcerange-via-docker-compose-is-not-respected/4309>\
**Category:** Traefik v1\
**Tags:** dashboard-api, docker\
**Created:** [February 9, 2020, 8:55am UTC](https://community.traefik.io/t/whitelist-sourcerange-via-docker-compose-is-not-respected/4309 "2020-02-09T08:55:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MacGyver27](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macgyver27/32/1563_2.png) [@MacGyver27](https://community.traefik.io/u/MacGyver27)\
**Post date:** [February 9, 2020, 8:55am UTC](https://community.traefik.io/t/whitelist-sourcerange-via-docker-compose-is-not-respected/4309/1 "2020-02-09T08:55:23Z")

</div>

Please can somebody have a look

Just found out that my docker config part for sourceRange is no longer working! I tested it like year ago and it worked - restricting access only to specific prefixes..  
Whiteliste sourcerange via file config still works.

Was on version 1.7.16 and tested it for the latest (v1) as well 1.7.20.. this is crucial security bridge.

_Linux Debian Buster  
docker -v  
Docker version 19.03.5, build 633a0ea838  
docker-compose -v  
docker-compose version 1.25.3, build d4d1b42b_

None of the following was understood by traefik:

```auto
- traefik.frontend.whitelist.sourceRange=192.168.255.0/24
- traefik.frontend.whitelist.sourceRange=[192.168.255.0/24]
- traefik.frontend.whitelist.sourceRange=192.168.255.0/24,10.8.0.0/24
- traefik.frontend.whitelist.sourceRange=192.168.255.0/24, 10.8.0.0/24
- traefik.frontend.whitelist.sourceRange=[192.168.255.0/24,10.8.0.0/24]
- "traefik.frontend.whitelist.sourceRange=192.168.255.0/24"
- "traefik.frontend.whitelist.sourceRange=[192.168.255.0/24]"
- "traefik.frontend.whitelist.sourceRange=192.168.255.0/24,10.8.0.0/24"
- "traefik.frontend.whitelist.sourceRange=192.168.255.0/24, 10.8.0.0/24"
- "traefik.frontend.whitelist.sourceRange=[192.168.255.0/24,10.8.0.0/24]"

or
traefik.frontend.whitelist.sourceRange: 192.168.255.0/24, 10.8.0.0/24
traefik.frontend.whitelist.sourceRange: "192.168.255.0/24, 10.8.0.0/24"
traefik.frontend.whitelist.sourceRange: [192.168.255.0/24, 10.8.0.0/24]
traefik.frontend.whitelist.sourceRange: ["192.168.255.0/24", "10.8.0.0/24"]

```

When whitelisting through docker labels source range is no longer respected and allows everything ☹

Appreciate, Michal

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [February 9, 2020, 3:32pm UTC](https://community.traefik.io/t/whitelist-sourcerange-via-docker-compose-is-not-respected/4309/2 "2020-02-09T15:32:09Z")

</div>

Hello,

The syntax is:

```auto
labels:
- "traefik.frontend.whiteList.sourceRange=192.168.255.0/24,10.8.0.0/24"

```

---

<div class="post-metadata">

**Author:** ![MacGyver27](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macgyver27/32/1563_2.png) [@MacGyver27](https://community.traefik.io/u/MacGyver27)\
**Post date:** [February 10, 2020, 12:03am UTC](https://community.traefik.io/t/whitelist-sourcerange-via-docker-compose-is-not-respected/4309/3 "2020-02-10T00:03:53Z")

</div>

Sorry for freaking out.. that change `whitelist` -\> `whiteList` had to be introduced in one 1.7 version.. thx for taking a look, Michal
