Captive Portal Not prompting

I have set up a few captive portals but I can't get this one to work for some reason. It will not prompt the user to go to the portal. Please see the event log from the AP.

Sep 04 15:31:53: wifid : Client[E8-E8-B7-7B-35-6D] on ssid PTP Public internal cache based vlan is 0 (apd.c:111)
2019-09-04 15:32:10 22204 log.c:207:start_cns_logging: Send log history (10 lines)
Sep 04 15:31:53: wifid : Client[E8-E8-B7-7B-35-6D] on ssid PTP Public assigned WLAN vlan 981 (apd.c:125)
Sep 04 15:31:53: wifid : client [E8-E8-B7-7B-35-6D] on ssid PTP Public vlan 981 state sync (type:1) sent, len[128] (cache.c:1738)
2019-09-04 15:31:53 22204 wifi.c:1329:set_log_level: syslog severity=7
2019-09-04 15:31:53 22204 wifi.c:1917:event_rx_cb: Trap Data received, send to cnMaestro len=230 data [{"msgType": 699, "eId": "WIFI_CLIENT_CONNECTEDSep 04 15:31:53: wifid : client[E8-E8-B7-7B-35-6D] on vap_id[17] wlan_id[1] created in coplane (stats.c:226)
2019-09-04 15:31:53 22204 wifi.c:1554:Received msg dest[1] from wifid to be sent to controller;state[connected]
2019-09-04 15:31:53 22204 wifi.c:1512:msg_to_controller: JSON Object:[185][{"sessId": 1287963300, "ap_mac": "00:04:56:a6:5e:66", "msgType": 116, "ctrSep 04 15:31:53: wifid : Client[E8-E8-B7-7B-35-6D] hs[(nil)], ci_sess[(nil)], sta[0xb6c4d210], sta_wlan_id[1] (cache.c:277)
Sep 04 15:31:53: scmd : Sep 4 15:31:53 WIFI-6-CLIENT-CONNECTED Client [E8-E8-B7-7B-35-6D] connected to wireless lan [PTP Public] (mai
Sep 04 15:31:53: wifid : Sent ctlr cred cache req for client[E8-E8-B7-7B-35-6D] on ssid[PTP Public] (cache.c:233)
2019-09-04 15:32:10 22204 log.c:207:start_cns_logging: Send log history (10 lines)
Sep 04 15:31:53: snmpd : system trap has been sent (snmpd.c:1382)
Sep 04 15:31:53: wifid : client[E8-E8-B7-7B-35-6D] no hotspot session found (hotspot.c:977)
Sep 04 15:31:53: wifid : Client[E8-E8-B7-7B-35-6D] on ssid PTP Public internal cache based vlan is 0 (apd.c:111)
2019-09-04 15:31:53 22204 device-agent.c:2054:callback_websocket: LWS_CALLBACK_CLIENT_RECEIVE
2019-09-04 15:31:53 22204 device-agent.c:2055:rx 166 [{"msgType":416,"ctrlrPayload":{"msgId":5,"cmac":"E8-E8-B7-7B-35-6D","status":false,"ssid":"","u2019-09-04 15:31:53 22204 device-agent.c:2057:PayLoad remaining is 0
2019-09-04 15:31:53 22204 device-agent.c:1766:handle_cns_msg: Controller response message received
2019-09-04 15:31:53 22204 wifi.c:1454:handle_controller_rsp: JSON Object:[168][{"qUp": 0, "accessType": 0, "msgId": 5, "cmac": "E8-E8-B7-7B-35-6D", "Sep 04 15:31:53: wifid : radio_idx=1, bss_idx=1, APD_NUM_RADIOS=2, APD_NUM_BSS_PER_RADIO=16 (apd.c:523)
2019-09-04 15:31:53 22204 wifi.c:1554:Received msg dest[1] from wifid to be sent to controller;state[connected]
2019-09-04 15:32:10 22204 log.c:207:start_cns_logging: Send log history (10 lines)
2019-09-04 15:31:53 22204 wifi.c:1512:msg_to_controller: JSON Object:[185][{"sessId": 1287963300, "ap_mac": "00:04:56:a6:5e:66", "msgType": 116, "ctrSep 04 15:31:53: wifid : client[E8-E8-B7-7B-35-6D] hostapd vlan=981 and wlan vlan=981 (cache.c:1650)
Sep 04 15:31:53: wifid : client [E8-E8-B7-7B-35-6D] on ssid PTP Public vlan 981 state sync (type:1) sent, len[128] (cache.c:1738)
Sep 04 15:31:53: wifid : client[E8-E8-B7-7B-35-6D] on vap_id[17] wlan_id[1] created in coplane (stats.c:226)
Sep 04 15:31:53: wifid : client[E8-E8-B7-7B-35-6D] ga[0]:ci[0] sta ssid[1][PTP Public]:cache ssid[PTP Public] (cache.c:2521)
Sep 04 15:31:53: wifid : Client[E8-E8-B7-7B-35-6D] hs[(nil)], ci_sess[(nil)], sta[0xb6c4d210], sta_wlan_id[1] (cache.c:277)
Sep 04 15:31:53: wifid : Sent ctlr cred cache req for client[E8-E8-B7-7B-35-6D] on ssid[PTP Public] (cache.c:233)
Sep 04 15:31:53: wifid : client[E8-E8-B7-7B-35-6D] no hotspot session found (hotspot.c:977)
Sep 04 15:31:53: wifid : apd: Client[e8:e8:b7:7b:35:6d] sent 0 PMKID in (Re)association request (log.c:51)
Sep 04 15:31:53: wifid : DA sent[168]: {"qUp": 0, "accessType": 0, "msgId": 5, "cmac": "E8-E8-B7-7B-35-6D", "status": false, "qDown": 0
2019-09-04 15:32:10 22204 log.c:207:start_cns_logging: Send log history (10 lines)
2019-09-04 15:32:10 22204 log.c:207:start_cns_logging: Send log history (10 lines)
Sep 04 15:31:53: wifid : wlan name[] found in the controller cache update msg (cache.c:3022)
Sep 04 15:31:53: wifid : rcvd cache response for client[E8-E8-B7-7B-35-6D] on wlan[] with state[0] (cache.c:3027)
Sep 04 15:31:53: wifid : apd: get vlan: 981 (log.c:51)
Sep 04 15:31:53: wifid : apd: get vlan: 981 (log.c:51)
Sep 04 15:31:54: wifid : Client E8-E8-B7-7B-35-6D moved to data ready state (stats.c:580)
Sep 04 15:31:54: wifid : apd: FT: Deriving and pushing PMK-R1 keys to R1KHs for STA e8:e8:b7:7b:35:6d (log.c:51)
Sep 04 15:31:54: wifid : apd: FT: VLAN-ID 981 (log.c:51)
Sep 04 15:31:54: wifid : apd: FT RRB message sent successfully (log.c:51)
Sep 04 15:31:54: wifid : updating hostname of E8-E8-B7-7B-35-6D from DHCP to [Galaxy-S10e] (cache.c:4204)
Sep 04 15:31:54: wifid : dhcp req-options: 1,3,6,15,26,28,51,58,59,43 (cache.c:4222)
Sep 04 15:32:18: wifid : notify msg type CMB_NOTIFY_MSG_TYPE_ROAM[1] received (cache.c:2759)
2019-09-04 15:32:18 22204 exec-cmd.c:291:send_ts_data_cb: sending g_tsData

Can you send a screenshot showing your VLAN config on both the WLAN (SSID) and the the AP Group/config?

Here you go. If I disable the Captive Portal the WLAN works perfectly as soon as I enable the portal it doesn't prompt if I set it to internal or to cnmaestro.

Try adding VLAN 1 back into your AP Group (Zeroconf should be enabled).

1 Like

OMG!!!! i have spent 2 days on this..... THANK YOU!!! as soon as i added vlan 1 back onto the AP its works perfectly!

1 Like

Glad I was able to help!

by any chance, do you know how to fix this SSL error on the redirect? I do have a valid cert on my cnmaestro server

So it looks like the SSL certificate is working on cnMaestro, it just looks like the browser / device dosn't recognize the certificate authority. Are you using a self signed certificate or possibly even a free SSL certificate?

1 Like

I didn't have the full chain cert installed. as soon as I fixed that it was perfect.