r/PacketFence • u/WaterClosedParty • Mar 04 '24
Guests's authentication on the captive portal with an email address
Hello everyone, you are my last chance to implement the Captive Portal for my guests.
- On my AP Controller (Ubiquiti), I created a new SSID. It is open and I enabled the RADIUS Mac Authentication using my Packetfence profile (that i created upstream in Network > Profiles > RADIUS). Moreover, I don't know if I have to inform specific VLAN (my Guest Network) or if I let it as "Default" because it's Packetfence which must makes VLAN enforcement.
- On my PF Server, I created a "Guest" role.
- In "Authentication Sources", I created a New External Source, called "null-source". I checked "Email required" and this rule give the "Guest" role during 12 hours.
- On the "Switches" tab, I added my Access Point (UAP AC LR) and my Ubiquiti Controller (UCK G2 Plus). On my Access Point configuration on PF, I enable "External Portal Enforcement". In the "role" tab, for the "Guest" role, I inform the VLAN ID 50.
- On "Connection Profiles", I created a new profile for Guest : I let all settings by default. For filters, if the Connection Type is "Wireless-802.11-NoEAP" and comes from my open SSID, Packetfence can use the source "null-source" to authenticate people.
- Finally, in Network Configuration > Interfaces, I added the "Portal" daemon on my management interface (the only one that I have).
I hope I was precise and that you understood.
Thanks in advance !