FortiGate External Captive Portal & RADIUS: fgtauth, IPsec, CoA

· Login Methods and Device Guides

Why Deploy an External Captive Portal on FortiGate?

Across corporate offices, hotels, clinics, and multi-branch retail networks, FortiGate firewalls serve as the core boundary for routing and VLAN segmentation. While FortiGate includes a basic onboard splash mechanism, organizations often outgrow local templates when they need centralized branding across branches, multi-step onboarding workflows, versioned privacy consent tracking, or unified guest auditing.

Moving to an external captive portal separates system functions cleanly. The local FortiGate enforces Layer 2 and Layer 3 boundaries, triggers redirection, and guards internal subnets, while the cloud layer renders the guest interface, verifies identities, issues RADIUS policies, and correlates session logs. Keeping the administrative console and the guest login domain on isolated origins also reduces cross-origin exposure. You can inspect device-specific setup details in the FortiGate integration documentation.

External Captive Portal Redirect Flow via fgtauth

When a visitor selects the guest SSID or connects to a guest VLAN controlled by FortiGate, the local DHCP server assigns an internal IP address, subnet mask, gateway, and DNS resolver. As soon as the device runs an operating system Captive Network Assistant (CNA) probe or requests an unauthenticated web page, FortiGate intercepts the connection before letting traffic leave the WAN.

Guest Interface, Portal Domain, and Query Context

With an external portal URL configured on the guest interface or captive policy, FortiGate routes unauthenticated HTTP requests through its internal fgtauth workflow and redirects the browser to the remote portal domain. The redirect appends session context parameters such as the magic token, client IP address, and original destination so the cloud portal can map the session to the exact branch and firewall.

Once the visitor completes the enabled login steps—such as SMS OTP, voucher entry, identity verification, hotel PMS, or social login—the portal returns the browser to the FortiGate fgtauth endpoint with verified credentials. FortiGate then validates the request against the configured RADIUS server and opens internet access for that client session. To review supported third-party workflows, visit the Hotspotly integrations page.

RADIUS Authentication and Accounting Over Encrypted IPsec

Sending plain RADIUS packets across the public internet exposes shared secrets and accounting payloads to interception. In the Hotspotly architecture, each branch FortiGate establishes an encrypted IPsec site-to-site VPN tunnel to the cloud control plane. Only management, authentication, accounting, session disconnect, and syslog traffic traverse this tunnel.

FortiGate IPsec Phases and Split-Tunnel Routing

During Phase 1 and Phase 2 tunnel setup, static routes or policy selectors target only the cloud control-plane subnets inside the tunnel interface. By design, guest browsing traffic is not routed through the VPN; it continues exiting directly via the branch WAN link. That keeps local bandwidth utilization optimal and avoids unnecessary latency on everyday guest sessions.

RADIUS Interim Accounting and Timeout Tuning

Under config user radius in the FortiGate CLI, administrators define the cloud RADIUS server IP inside the tunnel and bind source-ip to the local tunnel interface so return packets route predictably. Standard authentication on UDP 1812 and accounting on UDP 1813 are paired with an acct-interim-interval setting that sends periodic session updates, while per-IP traffic shapers enforce download/upload ceilings and quota limits are evaluated on interim accounting intervals. Binding this RADIUS server inside a FortiGate user group allows firewall policies to enforce user-aware access cleanly.

Component Protocol / Port Traffic Path Operational Role
fgtauth Portal Trigger HTTP / HTTPS (80, 443, 1000/1003) Client - FortiGate - Portal Intercepts unauthenticated requests and activates sessions
IPsec VPN Tunnel IKEv2 / ESP (UDP 500, 4500) FortiGate WAN - Cloud Gateway Encrypts control-plane authentication and logging flows
RADIUS Auth / Accounting UDP 1812 / 1813 (In-Tunnel) FortiGate - Cloud RADIUS Validates guest sessions and tracks usage intervals
RADIUS CoA / Disconnect UDP 3799 (In-Tunnel) Cloud RADIUS - FortiGate Terminates expired or revoked sessions promptly
Syslog Stream UDP / TCP 514 (In-Tunnel) FortiGate - Log Collector Delivers DHCP lease and session logs for correlation

Walled Garden Exemptions and Pre-Auth Policies

Before guests authenticate, their devices still need limited reachability to fetch the login portal, static branding assets, and configured verification endpoints. On FortiGate, administrators configure captive portal exempt rules using explicit FQDN or host objects rather than broad IP ranges. Permitting DNS resolution on UDP and TCP port 53 during pre-auth ensures client devices can resolve the portal hostname before authentication finishes.

Overly permissive wildcard exemptions introduce security gaps by letting unauthenticated devices reach unintended services. Keeping the exemption list aligned with the portal origin and active onboarding endpoints supports reliable CNA rendering while preserving enforcement boundaries.

Dynamic Session Termination and Updates via CoA/Disconnect

Relying purely on passive idle timeouts leaves networks unable to revoke active sessions when vouchers expire, data quotas finish, or an administrator terminates access from the dashboard. FortiGate supports RFC 5176 Change of Authorization (CoA) and Disconnect-Request messages to support timely disconnect control.

To accept incoming disconnect instructions over the IPsec tunnel, administrators enable set radius-coa enable inside the RADIUS profile and verify that tunnel-scoped firewall rules accept UDP 3799 packets from the cloud RADIUS endpoint. When a Disconnect-Request matches the active Acct-Session-Id and client IP, FortiGate drops the authenticated state promptly and redirects subsequent requests back to the portal.

In-Tunnel Syslog, Guest Isolation Policy, and Session Correlation

Effective guest WiFi architecture pairs identity control with explicit east-west network isolation and verifiable audit logs. Within the FortiGate policy table, a dedicated guest network isolation policy sits above internet-allow rules to deny traffic from the guest interface toward corporate LANs, point-of-sale networks, IP cameras, printers, and management VLANs.

Corporate Network Segmentation via Guest Isolation Policy

Because the guest network isolation policy matches destination RFC1918 subnets and internal zones regardless of authentication state, authenticated visitors remain confined by firewall policy to outbound WAN access, blocking lateral traffic toward internal subnets at policy lookup.

On the logging side, FortiGate forwards DHCP lease logs and session telemetry as syslog messages through the IPsec tunnel while synchronizing system time via NTP. Correlating syslog events with five-minute RADIUS interim accounting updates captures verified user identity, internal IP, MAC address, and session timestamps without recording visited destination URLs. Review technical collection workflows in the FortiGate integration guide and general governance concepts on the Hotspotly compliance overview. Session-logging and retention rules vary by country; this FortiGate fgtauth and syslog guide does not constitute legal advice, so consult your own legal counsel and local legal advisor regarding regional policies.

All posts