Only allow traffic to Droplets through Load Balancer

July 1, 2019 719 views
CentOS DigitalOcean Firewall Load Balancing

I have two droplets, a firewall and a load balancer.

I can access HTTP on droplets & load balancer address.

If I change the Firewall Inbound rule from
HTTP TCP 80 All IPv4 All IPv6
To
HTTP TCP 80 {IP of Load balancer]

The Load balancer health checks then report both Droplets down. Health checks are performed on
http://0.0.0.0:80/

I get HTTP response:
503 Service Unavailable
No server is available to handle this request.

1 Answer

Found the answer: add the name of the load balancer to the firewall rule rather than it’s public IP address

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!