Digital Ocean Load balancer has trouble accessing hosts behind the firewall

November 2, 2017 166 views
Firewall Load Balancing LAMP Stack Ubuntu 16.04 Ubuntu

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 ??

Be the first one to answer this question.