1
Tutorials and FAQs / Re: Reverse proxy setup and firewall rules (HAproxy or nginx)
« on: March 30, 2020, 03:45:05 pm »
Hi, That helped, I have a static IP didn't realise I needed to put the public IP in the;
Services>HAProxy>Settings>Virtual Public Service>Listen Addresses (add public IP & Port e.g. 12.3.45.67:80)
seems obvious now, damn.
I've still got something messed up as I'm now getting a 503 Service Unavailable error when I connect externally. The log from HAProxy shows;
2020-03-30T08:09:45 haproxy[]: Proxy ha_ps_example_com started.
2020-03-30T08:09:45 haproxy[]: Proxy ha_bep_example_com started.
2020-03-30T08:10:21 haproxy[]: Connect from *********:50433 to 12.3.45.67:80 (ha_ps_example_com/HTTP)
At this point I guess from the log it should have worked but I get the 503 error, which I figure is returned by HAProxy saying so server is available to handle the request, so I've got a break somewhere within HAProxy to my server on the LAN.
I think the problem is that I've not set some option correctly and so traffic from the WAN connect to HAProxy but HAProxy fails to hand the traffic to the server. Any ideas what I need to try to resolve this?
As always thanks for your help
Services>HAProxy>Settings>Virtual Public Service>Listen Addresses (add public IP & Port e.g. 12.3.45.67:80)
seems obvious now, damn.
I've still got something messed up as I'm now getting a 503 Service Unavailable error when I connect externally. The log from HAProxy shows;
2020-03-30T08:09:45 haproxy[]: Proxy ha_ps_example_com started.
2020-03-30T08:09:45 haproxy[]: Proxy ha_bep_example_com started.
2020-03-30T08:10:21 haproxy[]: Connect from *********:50433 to 12.3.45.67:80 (ha_ps_example_com/HTTP)
At this point I guess from the log it should have worked but I get the 503 error, which I figure is returned by HAProxy saying so server is available to handle the request, so I've got a break somewhere within HAProxy to my server on the LAN.
In this case you only use a local binding to the internal firewall addressI take it I don't need to do this as HAProxy is seeing traffic coming from the WAN as seen by the log.Code: [Select]192.168.0.254:443
and add a nat portforwardCode: [Select]WAN address 443 -> 192.168.0.254:443
I think the problem is that I've not set some option correctly and so traffic from the WAN connect to HAProxy but HAProxy fails to hand the traffic to the server. Any ideas what I need to try to resolve this?
As always thanks for your help