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

    Change ip by a name in the browser of my captive portal

    Scheduled Pinned Locked Moved Captive Portal
    2 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.
    • I
      Ivett
      last edited by

      Good, I'm new to pfsense. I have configured a captive portal but I do not know how to give a name to my portal instead of leaving ip …. I was watching opnsense and that option gives me the same page of the captive portal but I want to do it in pfsense since it is more professional. Please some help on how to remove the ip to my captive portal and put a name using http protocol. Thanks in advance.

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

        Hi,

        You are telling nothing about your setup, so I'll explain using mine as an example.

        First of all, it's impossible to get rid of IP's. They will always exists  ;)

        My captive portal lives on OPT1 - I'm using LAN for my own needs.
        I'm using the DNS Resolver.
        On the setup page of the DNS Resolver, I added a Host "Override". My OPT1 interface address is 192.168.2.1/24 (LAN is 192.168.1.1/24).
        I added :
        Host : portal
        Domaine : my-domain.net
        IP 192.168.2.1
        Description : Whatever you want.

        Know that declaring a host for a domain will not force your clients to use the this name … The captive portal is hard coded to use the interface address IP when working with "http mode". https mode will (have to !) change that.

        Now, the funny part : you have to switch to HTTPS login on the captive portal page.
        As a domain name you chose your "portal.my-domain.net".
        And ... you have to chose a certificate that your clients will accept (the Let encrypt acme package can help you here).

        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 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.