title: Traefik is forwarding container ip (10.255.0.2) as remote addr in docker swarm mode
body: <p>I'm using docker in swarm mode. I have 3 containers like in the image below.</p>
  
  <p>I want to use <code>docker-swarm-visualizer</code> and <code>portainer</code> tools under subdomains like:</p>
  
  <ul>
  <li>portainer.mydomain.com</li>
  <li>vizualizer.mydomain.com</li>
  </ul>
  
  <p>But i want to <strong>restrict</strong> access to these sub domains of course. </p>
  
  <p>I added <code>traefik.frontend.rule=Host:portainer.mydomain.com</code> and the other labels and without restriction everything works fine.</p>
  
  <p>But after I added <code>traefik.frontend.whitelistSourceRange=81.x.x.200</code> labels to my services and tried to access it from my public IP 81.x.x.200. However in trafeik logs  I see</p>
  
  <pre><code>time="2018-03-23T14:23:30Z" level=debug msg="source-IP 10.255.0.2 matched none of the whitelists - rejecting" ,
  time="2018-03-23T14:23:47Z" level=debug msg="source-IP 10.255.0.2 matched none of the whitelists - rejecting" 
  </code></pre>
  
  <p>How can i make sure that those subdomains are only accessible from 81.x.x.200 or could there be any other approach to restrict access in domain level?</p>
  
  <p>Thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/PUSmA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PUSmA.png" alt="enter image description here"></a></p>