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

    Thirdy Party Captive Portal (External Captive Portal)

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 970 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.
    • A
      alex_farias
      last edited by alex_farias

      Hello everybody..
      I'm new to the forum and we have a customer wanting to use our hotspot solutions in his company, however our hotspot is all in the cloud (On Amazon) and Captive portal is also there. The point is that I've searched a lot and I haven't found any way to make PFSense "call" this authentication screen as it happens in many other equipment that we've already approved; Cisco, Fortigate, Aruba, extremecloud,mikrotik, among many others. PFSense left us in a delicate situation as we need the MAC and IP information of the client to proceed with the authentication. Our url looks like this on ALL equipment that we have already approved:
      https://captiveportal.mydomain.com/acesso?called=6C:3B:6B:83:9C:AE&mac=$(mac)&ip=$(ip)&uamip=[…]r-name=$(server-name )&link-orig=$(link-orig)&error=$(error)

      The most I got on PFSense was this:
      https://captiveportal.mydomain.com:8003/index.php?zone=portal_zw&redirurl=http://fc.com/

      Is there any way we can make PFSense make the option to trigger an external captive portal primary? or Is there any shortcut via functional code to solve this?

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

        @alex_farias

        If it's just a matter of authentication, have a look at /usr/local/captiveportal/index.php.
        This is the page that collects the IP and MAC of the client, and eventually calls the

        	$auth_result = captiveportal_authenticate_user($user, $passwd, $clientmac, $clientip, $pipeno, $context);
        

        (line 221)

        Up to you to write your some code that contacts your authorization server, which might be off-site.

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

        A 1 Reply Last reply Reply Quote 1
        • A
          alex_farias @Gertjan
          last edited by

          @gertjan thank u man, for your reply...i'll see with dev team if we can work on it beacause i´m just the infra guy and maybe i´m doing the wrong questions...🤣

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