# \[Fixed\] Problem Publishing public LoadBalancer Port on host

**URL:** <https://forums.suse.com/t/fixed-problem-publishing-public-loadbalancer-port-on-host/876>\
**Category:** Rancher 1.x\
**Created:** [November 5, 2015, 2:41pm UTC](https://forums.suse.com/t/fixed-problem-publishing-public-loadbalancer-port-on-host/876 "2015-11-05T14:41:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)\
**Post date:** [November 5, 2015, 2:41pm UTC](https://forums.suse.com/t/fixed-problem-publishing-public-loadbalancer-port-on-host/876/1 "2015-11-05T14:41:43Z")

</div>

Hi,

I have a stack with several internal load balancer which works perfectly.  
I wanted to add another public Loadbalancer in order to access my application from Internet but I don’t manage to contact the LB from the hosts.

this is the configuration from  
rancher-compose.yml :

```
load:
  load_balancer_config: {}

```

docker-compose.yml:

```
load:
  ports:
  - 80:8090
  restart: always
  labels:
    io.rancher.scheduler.global: 'true'
    io.rancher.loadbalancer.target.service1: service1.mydomain.com=8080
    io.rancher.loadbalancer.target.service2: service2.mydomain.com.com=8090
    io.rancher.loadbalancer.target.service3: service3.mydomain.com=8080
  tty: true
  image: rancher/load-balancer-service
  links:
  - service1
  - service2
  - service3
  stdin_open: true

```

I am able to reach my 3 services calling the lb on his internal ip :  
telnet 10.42.14.172 80 ==\> this works 😄

but on the hosts  
telnet localhost 80 ==\> this not works ☹

it seams that the iptable rules have been setup correctly

```
iptables-save
-A CATTLE_PREROUTING -p tcp -m addrtype --dst-type LOCAL -m tcp --dport 80 -j DNAT --to-destination 10.42.14.172:80

```

I can’t figure how to publish it on my host (so publishing on internet)

thanks for helo

sebastien

I’m using Rancher with :  
v0.43.1  
Cattle  
v0.106.0  
User Interface  
v0.63.0  
Rancher Compose  
v0.5.0

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [November 5, 2015, 9:04pm UTC](https://forums.suse.com/t/fixed-problem-publishing-public-loadbalancer-port-on-host/876/2 "2015-11-05T21:04:41Z")

</div>

It sounds like you’re hitting this issue.

> <https://github.com/rancher/rancher/issues/1920>
>
> Requests from the host to the public IP and back to the host do not work.

---

<div class="post-metadata">

**Author:** ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)\
**Post date:** [November 6, 2015, 2:52pm UTC](https://forums.suse.com/t/fixed-problem-publishing-public-loadbalancer-port-on-host/876/3 "2015-11-06T14:52:27Z")

</div>

@denise,

Thanks I think you’re right, i can telnet to the ip:port from another Host

Thanks in fact that’s just all I wanted

sebastien
