# Whitelist + swarm can't get real source ip

**URL:** <https://community.traefik.io/t/whitelist-swarm-cant-get-real-source-ip/3897>\
**Category:** Traefik v2\
**Tags:** docker-swarm, middleware\
**Created:** [January 16, 2020, 9:13pm UTC](https://community.traefik.io/t/whitelist-swarm-cant-get-real-source-ip/3897 "2020-01-16T21:13:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![darkl0rd](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darkl0rd](https://community.traefik.io/u/darkl0rd)\
**Post date:** [January 17, 2020, 6:37am UTC](https://community.traefik.io/t/whitelist-swarm-cant-get-real-source-ip/3897/2 "2020-01-17T06:37:44Z")

</div>

> <https://github.com/moby/moby/issues/25526>
>
> Output of docker version:
> Client:
> Version: 1.12.0
> API version: 1.24
> Go version: go1.6.3
> Git commit: 8eab29e
> Built: Thu Jul 28 22:00:36 2016
> ...

This is caused due to the additional "overlay" network; you can bypass this by using "host" networking. The only downside is that you can only run one instance of Traefik per node. That being said, you should really be spreading your Traefik instances across nodes anyway, so it isn't really a problem.

```auto
services:
  traefik:
    ...
    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
      - target: 443
        published: 443
        protocol: tcp
        mode: host

```

---

_[View the full topic](https://community.traefik.io/t/whitelist-swarm-cant-get-real-source-ip/3897)._
