Question

Not able to connect from loadbalancer to a droplet

Posted May 3, 2019 331 views
DigitalOcean

I have a load balancer(174.138.122.79) which is SSL enabled and wants to point to one of the droplet having a rest service (139.59.69.79) with nginx.

174.138.122.79—————>139.59.69.79(with nginx for 80 to 8080 routing).

I can access the app directly on http://139.59.69.79 and it works fine, but not able to connect via load balancer(443->80 configured).

However, if i make the app run on port say 1134 and enable ufw for that port i can connect from load balancer(443-1134) too.

can you help me solve this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

If I had to make a guess it maybe because you are opening an SSL connection which is encrypted and then trying to forward it to port 80, which isn’t encrypted by default.

That is perhaps why when you change to a non-default port like 1134 then it works without issue.

You may also want to double check to ensure there aren’t existing firewall rules that could be causing a conflict considering that port 80 is standard port.

Submit an Answer