Gateway & AP – Set-Up Guide
Configuring FortiGate 60E-POE Gateway

This chapter describes how to configure FortiGate 60E-POE.
Before proceeding further with the configuration, you need to configure HSNM with a domain and a gateway as described in Adding a New Gateway.

Prerequisites

The prerequisites required for configuration are:

  • HSNM gateway configured with FortiGate hardware type
  1. Now inside HSNM, select your Gateway, click the dropdown menu, choose Edit.
  2. Expand the General Data session.
  3. In the Hardware Type field, choose Fortinet.

Configuring the AP Interface

Step 1

Log in to your FortiGate interface.

Step 2

Click the Network menu on the leftto expand it.

Step 3

Scroll down to the Interfaces menu.

Step 4

Click the + Create New button.

Step 5

Add an available interface as a member and configure the parameters (based on your network and need) as shown in the example below.

Step 6

Click OK to save the entries.

Configuring the WAN Interface

Step 1

Click the Network menu on the left to expand it.

Step 2

Select the Interfaces menu and then select the WAN1 Interface.

Step 3

Click the Edit button.

Step 4

Complete the configuration (based on your network and needs) as shown in the image below.

Step 5

Once completed, click OK.

Configuring a Static Route

Step 1

From the Network menu on the left, select Static Routes.

Step 2

Click the + Create New button.

Step 3

Edit the revelavant details according to your network configuration.

Step 4

Click OK to save the entry.

Configuring a Radius Server

Step 1

Click the User & Device menu on the left to expand it.

Step 2

Scroll down to RADIUS Servers.

Step 3

Click the + Create New button.

Step 4

Edit the parameters as shown in the image below.

The IP of the primary Radius server is the IP address of your HSNM while the secret is the one you set in your HSNM configuration.

Step 5

Click OK to save the entries.

Configuring the User Groups

Step 1

From the Users & Devices menu on the left, select User Groups.

Step 2

From the right window, click the + Create New button.

Step 3

Edit the parameters as shown in the image below.

Step 4

In the Remote Groups section, select the Radius server you have just created in Configuring a Radius Server.

Step 5

Click OK to save the entries.

Configuring SSID for the Hotspot WiFi Network

Step 1

Expand the Users & Devices menu on the left.

Step 2

Select WiFi & Switch Controller and then scroll down to SSID.

Step 3

From the right window, click the + Create New button.

Step 4

Edit the parameters as shown in the image below.

Step 5

In the Authentication Portal field, tick External.

Step 6

Now you need to edit the URL where users are redirected in order to reach the HSNM welcome portal. The URL is: HSNM_DOMAIN_OR_IP/portal/index.php?hotspotname=GATEWAY_NAME_SET_IN_HSNM

Warning! Do not edit any HTTP (http://) or HTTPS (https://) protocol before the FQDN.

Step 6

Click OK to save.

Configuring Policy and Walled Garden

Step 1

Expand the Policy & Objects menu on the left.

Step 2

Scroll down to Addresses.

Step 3

From the right window, click the + Create New button.

Step 4

Enter the relevant information:
add entries for the IP of the WiFi network created in the Configuring SSID for the Hotspot WiFi Network paragraph, IP address and FQDN, if you have one, for your HSNM as shown in the image below

Step 5

Expand the Policy & Objects menu on the left.

Step 6

Scroll down to IPv4 Policy.

Step 7

Click the + Create New button.

Step 8

Create a Policy for your DNS as shown in the image below.

Step 9

Then, create a Policy to authenticate users.

Step 10

Then the Policy (if any) for social login.

Step 11

Lastly, configure an outbound rule to let the customers surf the web after the login.

Step 12

Once completed, click the OK button.

Authorizing an AP Connected to the FortiGate AP Interface

This session describes how to authorize an AP configured in the Configuring the AP Interface paragraph

Step 1

Expand the WiFi & Switch Controller menu on the left.

Step 2

Scroll down to Managed FortiAPs.

Step 3

A list of managed or unmanaged FortiAPs will appear. Select your AP and click the Authorize button at the top to allow FortiGate to manage it.

Step 4

From the WiFi & Switch Controller menu on the left, click FortiAP Profiles.

Step 5

Select the default profile available in the list.

Step 6

Click the View button.

Step 7

In the Radio1 section, tick Access Point.

Step 8

In the SSIDs field, add the SSID previously created in “Configuring SSID for the Hotspot WiFi Network”.

In this way, connected AP, will take the configuration profile just created in the FortiGate.

At this point, the configurations are almost completed. Yet, before users are able to connect and reach the HSNM Welcome Portal, you need to enter some commands from the FortiGate CLI.

Step 10

Open the FortiGate CLI from the top right corner of your FortiGate Web GUI.

To configure Radius accounting server, type this command:

  1. To configure Radius accounting server, type this command:
    (a) config user radius
    (b) edit Radius (use the same name you’ve used for Radius configuration)
    (c) config accounting-server
    (d) edit 0
    (e) set status enable
    (f) set secret “your Radius Secret”
    (g) set server “HSNM IP”
    (h) set port {1813} (this command may generate an error that you can ignore)
    (i) end
  2. To disable secure HTTP authentication, type this command:
    (a) config user setting
    (b) set auth-secure-HTTP disable
    (c) end
  3. To enable the bypass of the captive portal so that the user can make the initial contact with the external server, type this command:
    (a) config firewall policy
    (b) edit <policy_id>
    (c) set captive-portal-exempt enable
    (d) end

    The policy ID can be found from the ID column of the policy list. The policy ID to choose is the one you created for Unauthenticated user.

  4. To remove the group “Any” from the ExternalRadius group, type this command:
    (a) config user group
    (b) edit ExternalRadius
    (c) config match
    (d) delete 1
    (e) end
    (f) end

Now, the configuration for your FortiGate and FortiAP is completed. Therefore, users are able to connect to the Hotspot network and reach the HSNM Welcome Portal in order to sign in and be authenticated for surfing.