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.
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
Click button
In this case I’m using my LAN interface (192.168.100.1) for RADIUS server to listening on.
Click button
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 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.
NOTE:
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
Little Request:
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.
Comments
Post a Comment