Install and Configure Captive Portal with FreeRadius on pfSense
How to install & Configure Captive Portal with FreeRadius with Pfsense Firewall
Table of contents
- What is Captive Portal?
- STEP 1:- Install FreeRADIUS3 Package
- STEP 2:- Create Server certificate
- STEP 3:- Configure FreeRadius Server
- STEP 4:- Configure Captive Portal
What is Captive Portal?
Captive portal is use for authenticated users to grant internet access. Firewall automatically captive portal authentication login page which users must use their credentials to enter the portal. User can use Username/Password or a voucher code.
This setup is commonly used throughout the hospitality industries like Airports, Hotels, Restaurants and corporate environments.
The Captive Portal function in Pfsense securing a network by requiring a username and password via portal access web page.
Pfsense built-in user management, LADP, RADIUS can be used as an authentication server.
In this tutorial I’m using FreeRADIUS2 as an authentication server.
STEP 1:- Install FreeRADIUS3 Package
Navigate to System > Package Manager, Available Packages tab
Click at the end of the row for FreeRADIUS3
Confirm the installation
System > Package Manager > Available Packages
[Search Item] = freeradius3
STEP 2:- Create Server certificate
Navigate to System > Cert. Manager
Create a Certificate Authority (CA)
Create a Server Certificate
STEP 3:- Configure FreeRadius Server
Navigate to System > FreeRadius, EAP Tab > “Certificates for TLS” section
Provide CA and server certificate that we have generated at previous step.
Save the changes.
Add a new interface on which the RADIUS server should listen on.
Navigate to System > Services > FreeRADIUS, Interfaces tab
In this case I’m using my LAN interface (192.168.100.1) for RADIUS server to listening on.
Save and exit.
Configure the NAS:
Configure the NAS/client(s) from which the RADIUS server should accept packets.
In this step you need to give the IP address of the device which you want to authenticate from radius server like a firewall, access point, switch and router.
In this step I give my Pfsense box’s IP address because I will use the Pfsense captive portal.
Click “+” button to add the NAS/Clients.
Client IP Address : 192.168.100.1
Client Shortname: captiveportal
Client Shared Secret: 12345
Reset of the settings can be leave default.
STEP 4:- Configure Captive Portal
Navigate to Services > Captive Portal
Click ““ button to add new zone.
STEP 04:- Create FreeRadius Users
Navigate to Services > FreeRadius, Users tab.
All the other settings can be change upon to your requirements.
STEP 05:- Login to Captive Portal User Account
I appreciate you guys taking the time in reading my post. Please check out my YouTube channel and please subscribe for more as it’ll help me loads.