Chapter 5. Authentication
5.1 Captive Portal
Learning Objectives
- Configure a Captive Portal
Device | IP address | Access |
---|---|---|
WebTerm1 | 192.168.1.2/24 | – |
FortiGate | Port 1: DHCP Client
Port 2: 192.168.1.1/24 Port 3: 192.168.0.1/24 |
ICMP
HTTP HTTPS |
WebTerm (FMC) | 192.168.0.2/24 | – |
- Prerequisites:
- Set the IP addresses in the firewall as above table. The CLI is available as following:
FGVM01TM19008000 # config system interface
FGVM01TM19008000 (interface) # edit port1
FGVM01TM19008000 (port1) # set mode dhcp
FGVM01TM19008000 (port1) # endFGVM01TM19008000 # config system interface
FGVM01TM19008000 (interface) # edit port2
FGVM01TM19008000 (port2) # set ip 192.168.1.1/24
FGVM01TM19008000 (port2) # endFGVM01TM19008000 # config system interface
FGVM01TM19008000 (interface) # edit port3
FGVM01TM19008000 (port3) # set ip 192.168.0.1/24
FGVM01TM19008000 (port3) # set allowaccess http https
FGVM01TM19008000 (port3) # end - Set a static route in the firewall. You should always set the default route in the firewall (0.0.0.0 0.0.0.0 Internet IP).
- Set a Firewall Policy from port2 to port1.
- Set the static IP address in WebTerm1 (192.168.1.2/24).
- Set the IP addresses in the firewall as above table. The CLI is available as following:
- Create a user and group. Go to User & Authentication > User Groups. Create a group name: CaptivePortal.
Go to User & Authentication > User Definition > Create a New User and assign your user in step 4 to A0ID-CaptivePortal Group.
- Go to Network > Interfaces and edit port 2. In the Admission Control section, set:
- Security mode: captive portal
- Authentication Portal: Local
- User Access: Restricted to Group and assign the group you have created in the previous step.
- Now, open the browser in WebTerm1 and type http://talebi.ca.