Using pfSense, you can create one or more captive portals (which will be enabled on the interfaces you want) to filter Internet access.
Warning : the pfSense captive portal does not currently support IPv6.
A portal allows you to force users to authenticate (with a username and password or promo code) before being able to access the Internet.
This also makes it possible to accept a user contract for Internet access.
These captive portals are generally used for public Wi-Fi networks (free or paid) in airports, hotels, restaurants, ...
Source : Captive Portal | pfSense Documentation.
To configure a captive portal on pfSense, go to: Services -> Captive Portal.
On the "Captive Portal" page that appears, click on: Add.
In the "Add Captive Portal Zone" section, specify:
Note that you can create multiple zones, as this allows you to create different captive portals per interface.
Although you can also create a single captive portal and link it to multiple interfaces.
On the other hand, an interface can only be linked to a maximum of one captive portal.
Source : Captive Portal Zones | pfSense Documentation.
On the configuration page that appears, start by checking the "Enable Captive Portal" box. Which will display the full configuration form.
Note: as you can see, a warning appears at the bottom of the page. But, we will check this later in this tutorial.
Once the "Enable Captive Portal" box is checked, the complete configuration page appears.
In the "Captive Portal Configuration" section, you can configure the settings:
In our case, we selected the "LAN" interface for this captive portal and we set an inactivity timeout of 30 minutes to prevent sessions from remaining on the captive portal indefinitely.
If the "Use custom captive portal page" option is disabled, which is the case by default, a "Captive Portal Login Page" section will appear and allow you to:
If the "Use custom captive portal page" option is enabled, an "HTML Page Contents" section will appear (instead of the one visible above) and will allow you to:
In the "Authentication" section, you can configure the authentication parameters:
To authenticate users using accounts defined in pfSense, select the "Use an Authentication backend" authentication method, then select "Local Database" as the authentication server.
Next, uncheck the "Allow only users/groups with Captive Portal login privilege set" box at the bottom of this "Authentication" section to allow all pfSense users to authenticate to the captive portal.
Otherwise, you should grant the "Captive Portal login" privilege in the desired user accounts.
Source : Captive Portal - Zone Configuration Options | pfSense Documentation.
At the bottom, pfSense warns you that for the captive portal to work correctly, you must:
Important : leave this page open and DO NOT click "Save" at this time.
Firewall 6/25/2025
Firewall 5/28/2025
Firewall 6/6/2025
Firewall 7/2/2025
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment