I am having trouble with the following:
I am setting up an HAProxy load balancer on CentOS 7 behind a firewall. The firewall on the HAProxy server as well as the outside firewall are configured so that the necessary ports can be accessed. Everything is working fine on the internal network. By this I mean that typing in the ip of the HAProxy server on another internal server will take you to the correct site.
The problem is that trying to access the site externally is not working. For example, typing in domainname.com first goes through the firewall but is not being correctly redirected by the proxy server.
not working
domainname.com -----> firewall ---->haproxyip----> haproxy -----> site
working (from other server on internal network)
haproxyip ----> haproxy -----> site
This is what the config file for haproxy looks like if interested.
frontend main
bind *:80
bind *:443 ssl crt /cerfilepath/cert.pem
redirect scheme https if !{ ssl_fc }
default backend app
backend app
balance roundrobin
server app1 xxx.xx.xxx.xx:port
server app2 xxx.xx.xxx.xy:port
Through research it appears that most HAProxy setups are not placed behind a firewall. Unfortunately this is not an option in my situation. Any help would be appreciated. Thanks!