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

    Redirecting captive portal logging ?

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 2.7k 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.
    • R
      rikouest
      last edited by

      Hi,

      I just started using Pfsense and really appreciate the great job.

      Instead of using the built-in captive portal, I'd like to redirect all requests to a remote captive portal connected with my radius server (Radius Manager), http://www.xxx.xxx for example : is this possible and how ?

      I tried to add a login.html file to my pfsense, with this inside :

      header("Location: http://xx.xx.xx.xx/radiusmanager");
      exit();
      ?>

      but of course, it doesn't work, since my php is very limited :-)))

      1 Reply Last reply Reply Quote 0
      • O
        OldNick
        last edited by

        Hi,

        we redirect here to our own hand rolled captive portal and have simpy edited the portal html page.

        It display the text redirecting with a small animated gif and after 2 seconds rediects throuh a refresh.

        The landing page basically has a link to T&C's with an accept check box, accepting the the T&C's then allows you to connect to the internet which depending on what mode you are running in either logs them in automatically to radius with a set of credentials returned to the landing page through a curl proxied ajax call or takes them to a login page.

        The landing page and login page are all held on pfsense.

        Please ask if you need any other information.

        Regards

        Nick

        1 Reply Last reply Reply Quote 0
        • R
          rikouest
          last edited by

          I'm late answering, sorry :-)

          I tried to add some code to my captured html page, called index.html, but it didn't work. Have you any example of an html file I could use as example ?

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