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

Assign specific names to local hosts in pfSense?

Scheduled Pinned Locked Moved General pfSense Questions
11 Posts 4 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.
  • C
    chudak
    last edited by Dec 29, 2018, 5:10 PM

    Wonder if there is a simple way to assign specific names to hosts on local network in pfSense.

    For example:

    <plex_host>.localdomain.lan:32400 => plex.localdomain.lan
    <emby_host>.localdomain.lan:8096 => emby.localdomain.lan
    etc

    So ports are hidden.

    Thx

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz Dec 29, 2018, 5:18 PM Dec 29, 2018, 5:14 PM

      What does it matter.. Once you go there once in your browser just save it..

      DNS has zero to do with ports.. You would have to run a webserver with a redirect, etc.. Kind of pointless.. For plex if you just hit.

      https://app.plex.tv/desktop

      You will be redirect to your local plex install..

      If I want to hit mine local I just hit
      https://nas.local.lan:32400/web/index.html

      Since the fqdn of where my plex is running.

      But with plex there is little reason to have to hit via the local name unless there is something really wrong.

      if you have problem getting to your plex UI via the above link, did you set unbound to private the direct domain?

      server:
      private-domain: "plex.direct"

      If you want to hit them by just fqdn and have them redirect you.. .Just run a webserver on the boxes to listen to default port 80/443 and redirect you to the fqdn:port

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      C 1 Reply Last reply Dec 29, 2018, 5:20 PM Reply Quote 0
      • C
        chudak @johnpoz
        last edited by Dec 29, 2018, 5:20 PM

        @johnpoz

        I agree with your points and used emby plex as examples only.
        Was wondering from technical standpoint only if that's possible.

        "if you have problem getting to your plex UI via the above link, did you set unbound to private the direct domain?

        server:
        private-domain: "plex.direct""

        I am not sure what you mean here, pls elaborate...

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Dec 29, 2018, 5:49 PM

          Are you using resolver - default out of the box in pfsense.. or are you in forwarder mode, or using forwarder? Did you turn off rebind protection.

          Without telling unbound is a plex.direct is private its going to come back as rebind and pfsense will not give you the local IP, etc.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          C 1 Reply Last reply Dec 29, 2018, 6:00 PM Reply Quote 0
          • C
            chudak @johnpoz
            last edited by Dec 29, 2018, 6:00 PM

            @johnpoz

            I am using resolver

            "turn off rebind protection" i am guessing is in Reserved Networks "Block private networks and loopback addresses" option ?

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Dec 29, 2018, 6:31 PM

              Why would you have turned off rebind? Vs just putting in a setting to set that one domain as private?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • M
                marvosa
                last edited by Dec 31, 2018, 5:22 PM

                @chudak said in Assign specific names to local hosts in pfSense?:

                Wonder if there is a simple way to assign specific names to hosts on local network in pfSense.
                For example:
                <plex_host>.localdomain.lan:32400 => plex.localdomain.lan
                <emby_host>.localdomain.lan:8096 => emby.localdomain.lan
                etc
                So ports are hidden.

                You should be able to do this by creating an SRV record. Although, I'm not sure how "simple" it's going to be.

                C 1 Reply Last reply Dec 31, 2018, 5:26 PM Reply Quote 0
                • C
                  chudak @marvosa
                  last edited by Dec 31, 2018, 5:26 PM

                  @marvosa said in Assign specific names to local hosts in pfSense?:

                  creating an SRV record

                  I wish I knew what "an SRV record" is :)

                  Happy New Year !

                  M 1 Reply Last reply Dec 31, 2018, 5:58 PM Reply Quote 0
                  • M
                    marvosa @chudak
                    last edited by marvosa Dec 31, 2018, 6:04 PM Dec 31, 2018, 5:58 PM

                    @chudak An SRV (Service) record is a custom DNS record where you can define the protocol, port, etc. Unfortunately, I only have very high-level info, so Google is your friend if you're looking for something more detailed.

                    Creating an SRV record should satisfy your request. I once helped a friend create one on Godaddy so he could host multiple Minecraft servers behind a single IP by hostname only instead of the clients having to define the port on the frontend.

                    So, I know it can be done, but you'll have to research the syntax for creating an SRV record in the resolver (unbound).

                    C N 2 Replies Last reply Dec 31, 2018, 7:23 PM Reply Quote 0
                    • C
                      chudak @marvosa
                      last edited by Dec 31, 2018, 7:23 PM

                      @marvosa

                      Yeah sounds complicated.

                      There is one solution https://github.com/cristianoliveira/ergo
                      I was not able to make it work unfortunately

                      1 Reply Last reply Reply Quote 0
                      • N
                        Napsterbater @marvosa
                        last edited by Dec 31, 2018, 8:49 PM

                        @marvosa the problem with using a SRV record is the client trying to use whatever service must use or ask for the SRV record or know to ask for it. Web browsers for example do not do this because of an old RFC.

                        1 Reply Last reply Reply Quote 0
                        11 out of 11
                        • First post
                          11/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received