Troubleshooting Tip: How to troubleshoot if captive portal not getting triggered in the firewall
| Description | This article describes how 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
Debugging: To verify if FortiGate sends the captive portal page and keepalive page (if keepalive is enabled) to a user.
diagnose debug application authd 255 diagnose debug console timestamp enable diagnose debug enable
A sample output of debugging: In the sample below, the user's IP address is 10.177.2.21, the FortiGate IP address for the captive portal is 10.177.1.181, the username is user1, and the related firewall policy is ID 1.
[authd_http_read_http_message:496]: called ... authd_fnbam_auth_user: process#=0, policy_id=1 ... [authd_http_prepare_keepalive:4193]: src 10.177.2.21 flag 30018000
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 user-based policy that has been created at the top, and the captive portal should get triggered.
Make sure to create IP IP-based DNS policy on top of the user-based policies, as shown below, to pass DNS traffic.
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. diagnose debug flow filter addr x.x.x.x---> x.x.x.x is the source ip diagnose debug console timestamp enable diagnose debug enable
config system session helper delete 14 Related articles: |


