Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid reverse proxy stops forwarding on external (dynamic) IP change

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      diretore
      last edited by

      pfsense 2.1.5-RELEASE (amd64)
      Squid3-Dev version 3.3.10 pkg 2.2.8

      I 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 started

      Afterh 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

      1 Reply Last reply Reply Quote 0
      • D
        diretore
        last edited by

        SOLVED!

        Bound proxy listenig interface to loopback, port forwarderd 443 from WAN to Loopback.

        Works like a charm

        1 Reply Last reply Reply Quote 0
        • T
          tormenta
          last edited by

          Thanks m8 for sharing the solution. I also had that problem with reverse proxy + Dynamic IP address.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.