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

    Reverse proxy with Squid package

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 1 Posters 631 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 Offline
      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 Offline
        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.