External Captive Portals
An external captive portal can be used to configure each FortiGate interface as an independent, external web URL. To configure an interface, go to System > Network > Interfaces and edit the desired interface. Select Captive Portal as the Security Mode, then set Authentication Portal to External and configure the other settings as required.
Once a client has been authenticated by the portal, by default they will be sent to original URL that was requested. The portal can also be configured to send the client to a hard coded URL that contains a replacement message.
Syntax
In the following example, the LAN interface is configured with external captive portal that has a specified URL (http://10.6.2.218/?Auth=Success) to redirect clients to after successful authentication.
config system interface
edit "lan"
set security-mode captive-portal
set security-external-web "http://10.6.2.218/portal"
set security-redirect-url "http://10.6.2.218/?Auth=Success"
set security-groups "rug1"
end
end