Troubleshooting Captive Portal Popups and Walled Gardens
· Guest WiFi and Captive Portal
Classifying Captive Portal Failures Before Touching Router Rules
When guests join a Wi-Fi SSID and encounter a blank screen, a timeout, or MikroTik's built-in login page instead of your branded portal, guessing at firewall edits wastes valuable troubleshooting time. Separating symptoms into distinct network layers resolves issues rapidly. You can review symptom mappings in the troubleshooting FAQ and check exact router state targets in the portal provisioning guide.
A systematic inspection covers four layers in sequence: the Walled Garden allowlist governing pre-authentication traffic, DNS resolution on both router and clients, the hotspot profile directory and login files on RouterOS, and the HTTPS certificate chain alongside the encrypted VPN and RADIUS tunnel.
| Observed Symptom | Suspected Layer | First Verification Check |
|---|---|---|
| Blank login page or connection timeout | Walled Garden / DNS | /ip dns print and /ip hotspot walled-garden print |
| Default MikroTik login page appears | Portal Files / Profile | /file print where name~"hotspotly" and html-directory-override |
| File fetch or certificate failure | Root CA / System Clock | ISRG Root X1 fingerprint and /system clock print |
| RADIUS server is not responding | VPN Tunnel / RADIUS | Tunnel ping check and /radius print detail |
Walled Garden Allowlists and Preserving Custom Rules
Until a guest authenticates, RouterOS drops all external traffic except destinations explicitly permitted in the Walled Garden. If your portal origin (displayed on the Link tab of the designer as the portal URL) or domains used by active sign-in methods are absent from /ip hotspot walled-garden print or /ip hotspot walled-garden ip print, the guest's browser stalls with a blank screen or connection timeout.
Hotspotly's provisioning engine handles Walled Garden entries cleanly by managing only rules carrying Hotspotly comment tags and pruning stale automated rules. Any custom Walled Garden entries you added manually without Hotspotly comments are left untouched by design during provisioning updates.
DNS Resolution and allow-remote-requests Verification
Portal popups depend on two DNS paths working simultaneously: the router resolves the portal domain and certificate authorities, and unauthenticated guest devices resolve OS captive-probe domains as well as the portal hostname. When guest DHCP leases advertise the router gateway as their DNS server, remote request handling stays active—a setup condition detailed in the MikroTik hotspot server guide.
/ip dns print
/ip hotspot walled-garden print
/ip hotspot walled-garden ip print
Confirm that /ip dns print displays reachable upstream DNS servers and allow-remote-requests=yes. From a security standpoint, if your router does not rely on MikroTik's default firewall configuration, explicitly drop incoming TCP and UDP port 53 traffic arriving on the WAN interface to prevent the router from acting as an open resolver on the public internet.
Default RouterOS Pages and RouterOS 7 html-directory-override
Seeing MikroTik's default login form means either the Hotspotly login bundle was not downloaded or the hotspot server's profile points to the wrong local folder. Run two read-only commands in Winbox or SSH terminal to inspect local state:
/file print where name~"hotspotly"
/ip hotspot profile print detail
Profile Isolation, Shared Profiles, and Auto-Login Behavior
Healthy provisioning places files under hotspotly/<hotspot-id>/ (or flash/hotspotly/... on flash-equipped boards) and sets the active profile to html-directory=hotspotly/<hotspot-id>, login-by=http-chap, and RADIUS accounting enabled. Every hotspot server uses its own dedicated profile; sharing one profile across two interfaces such as ether2 and bridge-guest halts provisioning with a shared-profile error because a profile holds only one HTML directory. On RouterOS 7, a populated html-directory-override attribute silently overrides html-directory and serves the wrong page—Hotspotly provisioning automatically clears html-directory-override during convergence.
Administrators also see legacy RouterOS cookie, mac, and trial auto-login modes disabled during default provisioning, because Hotspotly configures login-by=http-chap (with optional http-pap and https flags when enabled) so sessions route through RADIUS verification and configured access-logging workflows. Because portal provisioning leaves existing /ip hotspot user accounts untouched, administrators also inspect /ip hotspot user print and remove any default local user left behind by MikroTik's setup wizard so RouterOS does not authenticate devices locally ahead of RADIUS.
ISRG Root X1 Certificate, Clock Accuracy, and Avoiding check-certificate=no
If provisioning halts with a file fetch failure or the RouterOS 7 setup script warns about missing trusted CAs, the router fails to validate Hotspotly's HTTPS certificate. RouterOS does not include a preloaded root certificate store by default, and an inaccurate date or time under /system clock print causes valid TLS certificates to fail validity window checks.
/tool fetch url="https://letsencrypt.org/certs/isrgrootx1.pem" dst-path=isrgrootx1.pem
/certificate import file-name=isrgrootx1.pem passphrase=""
/certificate print detail where name~"isrgrootx1"
/system clock print
Security Impact of check-certificate=no
Verify that the imported ISRG Root X1 certificate matches SHA-256 fingerprint 96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6 and ensure the router clock is accurate (provisioning enables NTP synchronization afterward). Bypassing HTTPS verification with check-certificate=no exposes the router to man-in-the-middle tampering that could inject rogue portal pages or intercept setup credentials.
VPN Tunnel, RADIUS, and CoA (UDP 3799) Health Checks
When the captive page displays "RADIUS server is not responding", the router is unable to reach Hotspotly's RADIUS service across the encrypted tunnel. Following the device troubleshooting checklist, verify WireGuard last-handshake freshness on RouterOS 7 or running L2TP/IPsec status on RouterOS 6.49, then ping the server tunnel IP and inspect /radius print detail. Confirm that service=hotspot,dhcp is present and src-address matches the router's assigned tunnel IP without manual edits.
For instant session termination on checkout or voucher expiry, /radius incoming print shows accept=yes so RADIUS Disconnect (CoA) packets on UDP 3799 succeed inside the tunnel. If CoA goes unanswered, Hotspotly automatically falls back to direct RouterOS API disconnect calls for 20 minutes.
Check Compliance, Apply to Router, and Mobile CNA Behaviour
In the panel's Router portal setup card, Check compliance performs a safe read-only audit against the router and lists configuration drift, issues, and warnings without changing any live setting or badge. Pressing Apply to router pushes only the detected deltas idempotently, bringing Walled Garden rules, profiles, files, and RADIUS back into sync.
Finally, when all router checks pass yet a smartphone fails to pop up the OS Captive Network Assistant (CNA)—or when a mobile mini-sheet blocks OAuth providers—instruct the guest to open Safari or Chrome directly and load any plain http:// URL rather than an https:// site. Unencrypted HTTP requests are cleanly intercepted by the router and redirected straight to your login portal. For persistent edge cases, inspect use-radius=accounting under /ip dhcp-server print detail and capture /log print where topics~"hotspot|radius" while redacting any RADIUS secrets or passwords before sharing diagnostic output.