This section describes how to configure user-defined portal authentication.
By default, the FW uses port 8887 to provide the built-in local portal authentication page. Users can proactively access the page (https://interface IP address:8887) for local portal authentication, or the HTTP requests of users are redirected to the page for local portal authentication.
When an enterprise deploys an external portal server for user authentication, user-defined portal authentication needs to be configured.
Except Emergency Channel, all portal authentication template-related configurations take effect for the two types of user-defined portal authentication.
user-manage portal-template template-name [ template-id ]
A maximum of five portal authentication templates can be set.
portal-url url-address
By default, the function is enabled.
If the portal server needs to interwork with the FW to exchange data, enable the FW to push information to the portal server. After the function of pushing information to the portal server is enabled, the FW automatically adds the default parameters in the portal server URL before pushing the URL to the portal server for portal authentication. The portal server extracts information from the URL.
For example, the portal server URL is https://example.com. When the FW adds the default parameters, the portal server URL is changed to https://example.com?fwname=TH-FW1&fwip=0.0.0.0&pagetype=login&esn=21023595120123456789&url=http://www.example0.com/&userip=1.1.1.1. The FW pushes the modified URL to the portal server.
The default parameter in the URL is described as follows (the value of each parameter is automatically filled in by the FW):
portal-url parameter { receive-interface receive-interface | esn esn | user-ip user-ip | user-mac user-mac | redirect-url redirect-url } *
By default, the portal server URL carries default parameters.
If the portal server can interwork with the FW in case of default parameters in the portal server URL, you do not need to perform the step. Otherwise, set parameters in the portal server URL for the portal server to interwork with the FW.
If the specified URL of the portal server carries a user MAC address, run the portal-url parameter mac-address format command to set the format of the MAC address in the portal server URL.
As long as one or more parameters are set in the command, the FW adds configured parameters in the portal server URL, but no default parameter. For example, if the ESN is configured, the portal server URL carries only the ESN.
ntlm auth-server address ipv4-address port port-number
Usually, the AD server uses TCP port 445. Therefore, set the port value to 445.
In an AD domain authentication environment where NTLM authentication is enabled, if a user that already logs in to the AD domain accesses the Internet through the browser, the user no longer needs to enter the user name or password. FW serves as the NTLM authentication proxy, triggers NTLM authentication between the browser and AD server, transfers NTLM authentication messages, and obtains the user ID in the authentication process.
In NTLM authentication, the FW does not prompt a portal authentication page for entering the user name and password. This process, however, involves redirection for authentication. Therefore, you must run the portal-url url-address command in the portal authentication template view to configure the URL of the portal authentication page, namely, https://interface IP address:8887.
In a scenario where the user accesses the Internet through a proxy server, the FW does not support NTLM authentication.
NTLM authentication applies only to HTTP (port 80) traffic.
A prerequisite of NTLM authentication is that the browser must support NTLM authentication. Otherwise, the browser cannot automatically provide user login information. At present, IE and Chrome support NTLM authentication. However, you must enable automatic logon in Internet Options.
https { enable | disable action { bypass | block } }
By default, the FW redirects HTTP service requests destined for port 80 to the portal authentication page and permits HTTPS service requests destined for port 443 without authentication. To redirect HTTPS service requests, run the https enable command.
server-detect { haca-template haca-template | web-auth-server web-auth-server }
With the emergency channel function, the FW does not push the user-defined portal authentication page to users when it detects that the portal server is Down. To be specific, the FW does not authenticate users, and users can directly access network resources.
The parameter takes effect for user-defined portal authentication for user authentication that the FW participates in.
Before setting Emergency Channel, set Portal Server Probe.
The step takes effect for method 2: user-defined Portal authentication for user authentication that the FW participates in.
web-auth-server server-name
server-ip server-ip-address
By default, no IP address towards the Portal server is set.
source-ip ip-address
By default, the source IP address is not set.
port port-number [ all ]
By default, the FW uses destination port 50100 to send packets to the portal server.
shared-key cipher key-string
By default, the key is not configured.
web-auth-server listening-port port-number
The default port number is 2000.
By default, the function is enabled.
server-detect [ interval interval-period | max-times times | action log ] *
By default, the function is disabled.
If the communication between the FW and portal server is interrupted due to a network fault or a fault in the portal server, users cannot go online.
The server probe function enables the FW to report faults through logs in case of a network fault or portal server failure.
When enabling the function, you are advised to set Emergency Channel so that users can properly access network resources even when the portal server is Down.
user-sync [ interval interval-period | max-times times ] *
By default, the function is disabled.
If the communication between the FW and portal server is interrupted due to a network fault or a fault in the portal server, online users on the FW cannot log out properly, causing user information on the FW to be inconsistent with that on the portal server.
The user information synchronization function ensures that the user information on the FW is consistent with that on the portal server.
During user information synchronization, if the FW detects that the portal server does not have information on a user but the FW has the information on the user, the FW does not immediately force the user to go offline. Instead, the FW forces the user to go offline only when the portal server does not have the information on the user even after Synchronization Counts after the number of times that the FW fails to synchronize user information reaches the maximum value.
portal-access-profile name access-profile-name
The device uses the Portal access template to manage the configurations of the access from users who use portal authentication.
web-auth-server server-name
By default, the portal access template does not reference any portal server template.
authentication-profile name authentication-profile-name
portal-access-profile access-profile-name
By default, the authentication template is not bound with any portal access template.
authentication-profile authentication-profile-name
By default, no authentication template is applied to Loopback 0. Currently, the authentication template can be applied only to Loopback 0.
You need to perform this step only when you use Method 2: The FW participates in user-defined portal authentication combined with MAC address-prioritized portal authentication.
By default, the MAC address-prioritized portal authentication function is disabled.
user-manage mac-access aging-time aging-time
The default MAC entry aging time is 1 minute.
user-manage mac-access no-ack-time no-ack-time
The default MAC authentication response failure time is 2 seconds.
mac-access-profile name access-profile-name
authentication-profile name authentication-profile-name
mac-access-profile access-profile-name
authentication-profile authentication-profile-name