Created on
08-07-2023
11:37 PM
Edited on
03-21-2025
06:58 AM
By
Anthony_E
Description | This article describes to troubleshoot when the captive portal is not getting triggered. |
Scope | FortiGate. |
Solution |
If the user is not getting the captive portal, it means the traffic is not matching the user-based policy. Configure the below settings in the firewall to get the captive portal triggered.
After configuring this policy, the captive portal should trigger. If it is not triggering and can still access the internet, the traffic matches below IP-based policy.
config user setting
Note: It is recommended to make this change during the after-hours as it might affect the internet connection which might cause downtime. When configuring this setting, traffic will match the ser-based policy that has been created on the top and the captive portal should get triggered.
Note:
Open the CLI of the DNS policy and make sure to enable captive-portal-exempt as well:
config firewall policy edit <id> set captive-portal-exempt enable end
In the above policy example, the incoming interface (port2) is the LAN interface and the outgoing interface (port1) is the WAN/public facing interface. |