Squid reverse proxy stops forwarding on external (dynamic) IP change
-
pfsense 2.1.5-RELEASE (amd64)
Squid3-Dev version 3.3.10 pkg 2.2.8I have a reverse proxy setup internet->pfsense(https)->internal web server (https)
Everything works as it should until my provider forces my public IP change (PPPoE) - so every 24 hours. I have this scheduled so it happens when I want to.
When this happens reverse proxy-ing dies, and the client gets a timeout until I press the "Save" button on the reverse proxy general page. No changes to the configuration are made, just saving the existing configuration.Looking at the logs - this restarts the service:
Dec 28 00:23:28 squid[73522]: Squid Parent: (squid-1) process 73846 exited with status 0
Dec 28 00:23:31 squid[39610]: Squid Parent: will start 1 kids
Dec 28 00:23:31 squid[39610]: Squid Parent: (squid-1) process 39809 startedAfterh this - everything works fine again - until the next external IP change.
Is there a way to make squid do this automatically (do a restart upon external IP change), or just schedule it to do a restart (or simulate pressing of the save button whatever it does) a few seconds after PPPoE?
I guess this could be done using cron, but the only package I have listed is a beta for version 1.2 -
SOLVED!
Bound proxy listenig interface to loopback, port forwarderd 443 from WAN to Loopback.
Works like a charm
-
Thanks m8 for sharing the solution. I also had that problem with reverse proxy + Dynamic IP address.