By arjunshankar
I am running 2 droplets (LAMP) with service running on port 80.
Basically the setup looks like this…
Digital Ocean Firewall
|
|
|
| +--------------+ +---+----------+
| | Web Server 1 | | Web Server 2 |
| +---+------+---+ +----------+---+
| ^ ^
| | |
| | |
| | |
+---------+ | | |
| Visitor +--+ | | |
+---------+ | +-----------------+----------------+ |
+->+ Load Balancer 1 | | |
+-----------------+---------------------------------+
|
|
|
I want the port 80 on both these web servers to be accessible from the load balancer only. Typically port 443 on the load balancer should forward the request to port 80 of either of these machines. But it seems that the firewall is expecting the internal IP of the load balancer which I am not able to figure out.
Is there something wrong with the setup I am trying to make or any step I am missing ??
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m not sure how you currently have your firewall configured, but what you’ve described should be possible. Your incoming rule should be set to allow HTTP (tcp port 80) and you can specify the name of your load balancer as the source. If you’re not already using Droplet tags I recommend doing so and using the Droplet tag under the section “Apply to Droplets”. That will make it so that the Droplets running your service can only be accessed from the load balancer on port 80.
Just be sure to allow SSH as well for management.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.