squid reverse proxy troubles
bobsuruncle last edited by
I'm having trouble getting the reverse proxy function to work for the squid package. Currently I get the error "Unable to forward this request at this time." when I attempt to navigate to https://sub.domain.com. However the certificate is correct and shown as valid by the browser. The below config is basic and I intend to make it more complex with more servers once I get it working. I'd appreciate any tips on how to get this working.
Squid Config details:
I am running 2.6.0 as a nat firewall at 192.168.0.1 and connected to a residential internet modem. I have a valid ssl certificate via letsencrypt package for sub.domain.com. I have a computer within the LAN running an http daemon at 192.168.0.49 on port 8123. I installed the squid package and enabled it. Then I configured the reverse squid proxy service with the ssl certificate, WAN interface and port 443. I provided the external fqdn as sub.domain.com and enabled https reverse proxy. All other settings are default on the squid general page. On the squid web servers page I created a single entry with IP 192.168.0.49, port 8123, protocol http, alias 'http-HASS' and configured to be 'on'. On the squid mappings page I have 1 URI entry with peer 'http-HASS' selected and a URI of '^https://sub.domain.com/.*$'.
I would highly suggest you use HA proxy and not use Squid for anything.