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

    use FQDN instead of IP

    Captive Portal
    2
    2
    417
    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.
    • M
      moelharrak
      last edited by

      Hi all,
      is there a way to use a FQDN instead of an IP address ?
      when the captive portal pop up i shows an Interface's IP address which I don't want, I prefer to see the a meaningful name.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @moelharrak
        last edited by Gertjan

        @moelharrak said in use FQDN instead of IP:

        is there a way to use a FQDN instead of an IP address ?

        It's even advisable to use FQDN instead of a bare 'IPv4'.

        The "http" access is just for the kick start of the captive portal: a real captive portal should be setup up to a https based portal, and use a trusted certificate so you can (have to !) use FQDN
        Do not use a self generated certificated for obvious reasons.

        Do this :

        1. install the acme.sh package,
        2. understand what it does, what 'Letsencrypt' (certificates or "https") is all about. What registrats are supported.
        3. get (rent !) a domain name with one of them.
        4. keep it simple : ask a wild card certificate for your domain. Like *.whatever.tld - so now you can use a the FQDN "pfense.whatever.tld" to access your pfSense,

        4326294f-5a70-43c7-9230-8f72cec8e469-image.png

        and the FQDN "portal.pfense.whatever.tld" for your portal

        1. Inform your unbound resolver about the host override "portal.pfense.whatever.tld" :

        c0da646a-d8e7-4094-bd34-ec3b6d210c43-image.png
        where 192.168.2.1 is your captive portal interface IP.

        Now, select the https access on your portal :

        21d77874-ffdd-4297-99d5-56bdf16f891b-image.png

        Done.

        edit : see also the official Youtube > Netgate offical captive portal video's.
        Or use one of these.
        This one is recent and looks ok to me.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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