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

    Squid reverse proxy / domaine question

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.1k 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.
    • B
      BlazeStar
      last edited by

      Using 2.1.5-RELEASE (amd64)

      Hi guys,

      I have a domain name EXAMPLE.COM

      EXAMPLE.COM has custom nameserver pointing to an external hosting

      I was wondering the following:

      If I make a CNAME PFSENSE.EXAMPLE.COM pointing to the IP of my pfSense server

      And then configure pfsense.example.com as a host, configure mappings, etc.

      Would this work ?

      Because right now it does not, and I'm wondering why.

      I'm starting to wonder if host EXAMPLE's DNS have to point to pfSense.

      But then I would loose the website and email hosting !

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        If you control DNS for example.com, then you should be able to create an A record for pfsense.example.com with your pfsense WAN IP address:

        pfsense    IN  A    your.pfsense.WAN.IP

        A CNAME is just an alias to an existing A record.

        1 Reply Last reply Reply Quote 0
        • B
          BlazeStar
          last edited by

          The reason for the CNAME is because I'm pointing  PFSENSE.EXAMPLE.COM to a dynamic NO-IP host…

          Sorry I should have mentioned that !

          But basically it's the same end result.

          I'm pointing PFSENSE.EXAMPLE.COM to my pfSense server IP.

          Then configured the reverse proxy as described above.

          And it does not work.

          Any idea why?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            I assume you've made an error somewhere.  However, without ANY information other than what you've provided, I have no idea what you've done.  What domain are we talking about here?  PM it to me if you don't want it made public.

            1 Reply Last reply Reply Quote 0
            • B
              BlazeStar
              last edited by

              I did PM KOM and for what he said, my config should be good.

              I did a lot of messing around and finally was able to make it partially work.

              In my cPanel configuration I made tree DNS ZONES

              for example :

              a.MyDomain.com
              b.MyDomain.com
              c.MyDomain.com

              All of them are A RECORDS with the IP of my pfSense server.

              For some reason, only a.MyDomain.com will work.

              The two others won't.

              The a.MyDomain.com points to an HTTPS port. The two others to a HTTP port.
              Of course both protocols have been enabled in the Reverse Proxy general configuration.

              In the "Real Time" tabs, I do see when I type in from an external network the requests for a.MyDomain.com

              But i don't see anything when it is for b.MyDomain.com or c.MyDomain.com

              So my guess is: when someone types it in a browser, it doesn't even get to pfSense.

              But I don't understand why because all three DNS ZONES are perfectly identical!!!

              Any idea?

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