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

    Short login page Url

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 868 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
      Iahmad
      last edited by

      Hi all,
      My login page us is
      Https://172.16.1.1:8002/? zone=xxxx
      I want to short it so user can easily type if needed

      Thanks

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

        @iahmad

        Why would a user want to type in that URL ?
        The (a) captive portal is detected by every OS these days.

        I use the captive portal for a hotel, and I do not publish any URL, an certainly not an IP based URL. Still, everybody can login without any assistance from me, or some printed help.
        I use https://portal.hotel.tld as the URL that points to the IPv4 of my captive portal interface.
        I have to own (rent actually) the domain hotel.tld so I can get a certificate that is trusted by every browser and every device.

        All OSs these days do a hidden http (not https) request to a know URL that should return a page that says "Succes". If it doesn't, it kicks of the default browser with the same URL again. The web request gets intercepted a second time, and the result will be the default login page. The user can interact with that page : he/she can login.

        For all this to work :
        You use https : you need a certificate signed by a trusted source (ie Letensrypt). Otherwise most browsers, if not all, will just don't want to load the page.
        DNS on the captive portal interface should work.
        On the Services > DNS Resolver > General Settings page I declared a Host Override :
        Host : portal
        Domain : hotel.tld
        IP : the IP of the captive portal

        Nothings stops you from declaring something like :
        Host a
        Domain b.c

        So know the user can type in https://a.b.d:800x/index.php?zone=yourzone
        The "index.php?zone=cpzone1" part can't be "shortcut".

        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.