1
General Discussion / having problem to round-robin with very simple ha-proxy config on opnsense ...
« on: April 28, 2020, 07:33:48 pm »
Good morning Everyone,
I have MS 2016 Server in my LAN, and two CentOS 7, web- servers in the DMZ, both are identically configured, and with very simple, test- web- page showing some identification. Both web- pages are accessible from the LAN's server, and I intentionally, for testing purposes, have configured what is shown on the browser to be different - the one with ip - 192.168.125.200 shows at its end _2, and the one with 192.168.125.204 - _1. The both web- pages accessed by their ip- addresses are showing what is expected.
I did the simplest possible configuration into HA-Proxy in my OPNsense- firewall, and attached the screenshots of it. When I try to access from the LAN, the DMZ- interface on the firewall - 192.168.125.254:8080, it is showing the first web- page, when I refresh, I expect to see the other one (I am using Round-Robin) but it doesn't do it. I tried to configure the "public service" in HA-Proxy with 127.0.0.1:8080, and then with 0.0.0.0:8080 too, and it doesn't show anything on the browser then.
To be sure all is done properly, temporarily I have installed into the DMZ a third web- server, installed, and configured HA-Proxy on it (basically the same settings as with the OPNSense one) and there was no problem to "round-robin" thru the back-end web- servers as expected.
Could you, please help me to resolve the issue into HA- Proxy with the OPNSense ? I feel, that I am maybe doing something wrong with the "public service" setup.
Thanks, and Best,
rickey
I have MS 2016 Server in my LAN, and two CentOS 7, web- servers in the DMZ, both are identically configured, and with very simple, test- web- page showing some identification. Both web- pages are accessible from the LAN's server, and I intentionally, for testing purposes, have configured what is shown on the browser to be different - the one with ip - 192.168.125.200 shows at its end _2, and the one with 192.168.125.204 - _1. The both web- pages accessed by their ip- addresses are showing what is expected.
I did the simplest possible configuration into HA-Proxy in my OPNsense- firewall, and attached the screenshots of it. When I try to access from the LAN, the DMZ- interface on the firewall - 192.168.125.254:8080, it is showing the first web- page, when I refresh, I expect to see the other one (I am using Round-Robin) but it doesn't do it. I tried to configure the "public service" in HA-Proxy with 127.0.0.1:8080, and then with 0.0.0.0:8080 too, and it doesn't show anything on the browser then.
To be sure all is done properly, temporarily I have installed into the DMZ a third web- server, installed, and configured HA-Proxy on it (basically the same settings as with the OPNSense one) and there was no problem to "round-robin" thru the back-end web- servers as expected.
Could you, please help me to resolve the issue into HA- Proxy with the OPNSense ? I feel, that I am maybe doing something wrong with the "public service" setup.
Thanks, and Best,
rickey