Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Reverse proxy with Squid package

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 1 Posters 897 Views 1 Watching
    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.
    • S
      sizeur
      last edited by sizeur

      Hello,

      I have several web servers which i would like to access by using subdomaine, like web.mydomain.com and blog.mydomain.com

      From what i understood i need to use reverse proxy, i have installed the package squid. In my DNS configuration i have set up this:

      mydomain.com. A x.x.x.x(The public IP of my pfsense, mydomain is an example)

      When i ping mydomain.com i get the Public IP of my pfsense.

      Then i have installed squid package on my pfsense and configure it like this:
      0_1532973555280_6a81232a-8298-4919-be4e-9b52c93e6a61-image.png

      Then i have added a rule to allow the port 80:
      0_1532973649387_3b25ec76-9ee1-4087-9d49-93ea2d5d8555-image.png

      Then i have added my web server:
      0_1532973728014_887e2f5f-8c3b-4916-a898-95f31782d5d9-image.png

      And the Mapping:
      0_1532974275407_21c8a257-8ffd-4c18-a4a1-b74a95594553-image.png

      But i cant get to my web server. If i am not mistaken i should not but this in my dns configuration:
      web.mydomain.com. A x.x.x.x(The public IP of my pfsense)
      Because the resolution domainname->ip adress will be done on my dns server.

      Maybe i made a mistake on my dns server configuration, am i supposed to enter anything else ? Or in the pfsense configuration, did i well entered well the "external FQDN" as requested ?

      I am using the version 0.4.43_1 of squid

      1 Reply Last reply
      Reply Quote 1
      • S
        sizeur
        last edited by

        I solved the problem myself.

        All my configuration was correct, there is a bug with the squid addon: you can not start the squid service from the web interface, when you click on "start the service" in the image below nothing happens, the service doesn't start and you don't have any error message:
        0_1533074663644_squid screenshot.png

        I had to connect to the pfsense terminal and run a "ps aux |grep squid" to see that th service was not running (i didn't have any error message in /var/log/squid).

        A simple "squid start" solves the problem, does someont knows where can i report this bug ?

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy