FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
csnyee
Staff
Staff
Article Id 192801

Description

 
This article explains how to redirect all computers within the network to a specific URL upon starting internet browsers.
For example, a guest walks into the meeting room with a laptop and connects to the 'Unprotected WiFi' which is the gateway controlled by the FortiGate. When the guest tries to enter 'www.google.com', they will be redirected to "www.fortinet.com" for the first session.

 

Scope

 

FortiGate, FortiProxy.


Solution

 
This redirection can be obtained by first enabling the disclaimer in the firewall policy so that the firewall will interrupt traffic and redirect it to a specific URL.

Create or edit the desired firewall policy (from LAN to WAN) and then use the following commands:
 
 
config firewall policy
    edit 0
        set disclaimer enable
        set redirect-url "http://www.fortinet.com"
end
 
To configure the Captive portal in the GUI.
 
  1. From FortiGate GUI, go to Network -> Interface then select the interface to which the users are connected. The interface must be a LAN or Undefined.
  2. Enable the security mode.
 
setup captive portal from GUI.png

 

Note:

Since the firewall does not modify the encrypted traffic passing through the device, deep-inspection is required for HTTPS sites.

Related article:

Technical Tip: How to create FortiGate captive portal using policy