In this tutorial we will setup a pfsense captive portal making use of a LDAP connection to an Active Directory and the built-in captive portal feature.
We are going to work on the following architecture
Basically we want the network clients that are on the LAN side of our pfsense virtualized (or physical) router to login through our captive portal.
Follow this tutorial to setup pfsense on virt-manager, if you want you can also install pfsense on proxmox like i did, these are fundamentally the same concepts, now looking from a client's POV, setup Windows Server 2019 with DNS + AD, check out this guide if you didn't do it already here. Once the WS2019 is properly setup with DNS + AD, we will need to add our AD user to the pfsense admin group:
create a bind user:
Donate XMR: 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8
Contact: nihilist@contact.nowhere.moe (PGP)