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

    Accessing servers behind firewall

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 3.0k 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.
    • O Offline
      outsidre
      last edited by

      I am using dyndns.org to keep track of my dynamic IP address (of my home modem) and update a domain name mydomain.dyndns.org

      What I would like to do is set something up so that I could access my servers not by port number (as in prt forwarding), but by domain names.

      So  serverA.mysite.dyndns.org points to server A on my LAN
      and serverB.mysite.dyndns.org points to server B on my LAN.

      How do I set this up?

      1 Reply Last reply Reply Quote 0
      • K Offline
        ktims
        last edited by

        For some protocols (eg HTTP) you can do this with a proxy. For other protocols it's not possible.

        1 Reply Last reply Reply Quote 0
        • Cry HavokC Offline
          Cry Havok
          last edited by

          You're aware that wildcard support in DynDNS now requires the (paid for) DynDNS Pro?

          Otherwise, as ktims said, you need an application protocol for which the client passes the hostname it is connecting to, and then use a proxy.

          1 Reply Last reply Reply Quote 0
          • O Offline
            outsidre
            last edited by

            @Cry:

            You're aware that wildcard support in DynDNS now requires the (paid for) DynDNS Pro?

            I do have a Pro account.

            How does that help me?

            1 Reply Last reply Reply Quote 0
            • Cry HavokC Offline
              Cry Havok
              last edited by

              It doesn't, beyond allowing you to use wildcards.

              1 Reply Last reply Reply Quote 0
              • O Offline
                outsidre
                last edited by

                Is this a limitation of pfsense, or the fact that I don't have a DNS server running?
                Would setting up a DNS server on my LAN allow me to get the results I am looking for?

                1 Reply Last reply Reply Quote 0
                • Cry HavokC Offline
                  Cry Havok
                  last edited by

                  @ktims:

                  For some protocols (eg HTTP) you can do this with a proxy. For other protocols it's not possible.

                  How you resolve the hostnames is unimportant.  If you have a single IP then you can only do (as has already been said multiple times) it with a protocol that supports it.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bern
                    last edited by

                    With a standard pfSense you won't be able to do it.

                    If both websites are on the same physical server, running under the control of a single web server (eg. Apache), then virtual host configuration will be able to handle it.

                    If you have physically different servers (eg. 192.168.1.2 and 192.168.1.3), then you will have to set up some kind of proxying facility. You can use a third box (ugh), or install something like ffproxy, varnish, or mod_proxy on Apache on one of the servers.

                    If you go for the second option (recommended) then you'll forward all incoming HTTP requests to this box and the proxy will have to analyse the "Host" header on the incoming HTTP requests and route it to the relevant web server.

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