Thirdy Party Captive Portal (External Captive Portal)
-
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?
-
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.
-
@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...