[USG FLEX H] How to setup Captive Portal for redirect wireless clients connecting to managed APs?

Options
Zyxel_Bella
Zyxel_Bella Posts: 605
Zyxel Certified Network Engineer Level 2 - Switch Zyxel Certified Network Engineer Level 1 - Switch Zyxel Certified Network Administrator - Switch 50 Answers
image  Zyxel Employee

Scenario

When using a USG FLEX H Series firewall to manage wireless APs, you can configure a captive portal for wireless clients through the firewall's built-in Web Authentication feature.

Unlike an AP-based captive portal, this method uses the firewall to redirect wireless clients to an authentication page before granting network access.

Note: Wireless client traffic must pass through the USG FLEX H Series firewall for the captive portal authentication to work properly. This means that the IP addresses obtained by clients are assigned by the USG FLEX H, or the SSID must be configured for tunnel mode.

Configuration Steps

Step 1: Create Local User

This account will be used when the captive portal requires users to sign in with credentials.

Navigate to User & Authentication > User/Group > User.

image.png
  1. Add a new user account.
  2. Enter the username and password (e.g., guest1).
  3. Configure the authentication timeout settings if necessary.

Step 2: Create an Address Object

Navigate to Object > Address > Address.

image.png
  1. Create a new address object (e.g., Guest_WiFi).
  2. Set Address Type to SUBNET.
  3. Enter the subnet used by wireless clients (e.g., 192.168.10.0/24).

Step 3: Create a Service Group

Navigate to Object > Service > Service Group.

image.png
  1. Create a new service group (e.g., Guest_WiFi_Access).
  2. Add the following services:
    • HTTP
    • HTTPS
    • DNS

Step 4: Configure the Captive Portal Authentication Policy

Navigate to Captive Portal > Authentication Policy.

image.png
  1. Enable the authentication policy and enter a name (e.g., Guest_WiFi).
  2. Configure the following criteria:
    • Incoming: Select the interface used by wireless clients (e.g., ap_test).
    • Source Address: Guest_WiFi
    • Destination Address: any
  3. Select the preferred Sign-in Method:
image.png
  • Click-to-continue: Users must view and accept the captive portal page before accessing the network.
  • Sign-on With (Local): Users must enter their local username and password to access the network.

4. Select the Portal Type:

  • Internal: Use the firewall's built-in captive portal page.
  • External: Specify the URL of an external captive portal page.

5. Save the policy and ensure it is enabled.

image.png

Step 5: Configure the Security Policy

Navigate to Security Policy > Policy Control.

Create a new security policy with the following settings:

image.png

Verification

  1. Connect a wireless client to the SSID broadcast by the controller-managed AP.
  2. Open a browser and access an HTTP website to trigger the captive portal redirection.
  3. Verify that the firewall's captive portal page appears.
  4. Complete the click-to-continue process or enter the configured user credentials.
  5. Confirm that the client can access the network after successful authentication.
image.png