This example describes how to configure the FW that serves as the egress gateway of an enterprise to work with the Agile Controller to perform portal authentication and MAC address-prioritized portal authentication on users.
As shown in Figure 1, an enterprise has deployed the FW as the egress gateway at the network border to connect the intranet and Internet.

An enterprise network administrator hopes to use the user management and authentication mechanism provided by the FW to identify IP addresses on the enterprise network as users. Specific requirements are as follows:
This example describes only the user configuration related to authentication.
Item |
Data |
Description |
|---|---|---|
Agile Controller |
R&D user information:
Marketing user information:
|
When a user is redirected to the portal authentication page of the portal server, the user needs to enter the account and password for authentication. |
RADIUS parameters:
|
The RADIUS parameters configured on the Agile Controller must be consistent with those on the FW. |
|
Portal authentication parameters:
|
The Portal parameters configured on the Agile Controller must be consistent with those on the FW. |
|
|
The MAC address validity period is 60 minutes, indicating that the Agile Controller can authenticate a user's MAC address in the 60 minutes since it receives the user's MAC address. |
|
FW |
RADIUS server:
|
The RADIUS server parameters configured on the FW must be consistent with those on the Agile Controller. |
Portal server:
|
The portal server parameters configured on the FW must be consistent with those on the Agile Controller. |
|
FW listening port: 2000 |
The port must be set on both the Agile Controller and FW. The port is the one for Portal authentication on the Agile Controller. |
|
MAC address-prioritized portal authentication:
|
To use MAC address-prioritized portal authentication, you need to enable online user MAC address check. If the FW detects that the mapping between the IP address and MAC address changes, it forces the user out and re-initiates MAC address-prioritized portal authentication. |
After completing the preceding configurations on the Agile Controller, perform the following configurations on the FW.



sysname FW # vlan batch 20 # authentication-profile name portal_authen_default portal-access-profile default authentication-profile name portal_authen_mac mac-access-profile mac_access_profile # user-manage portal-template portal portal-url push information portal-url http://10.2.0.50:8080/portal server-detect web-auth-server default # security-policy rule name sec_policy_tsm source-zone trust destination-zone dmz source-address 10.3.0.0 24 destination-address 10.2.0.0 24 action permit rule name local_policy_01 source-zone local destination-zone dmz action permit rule name local_policy_02 source-zone dmz destination-zone local action permit # radius-server template auth_server_radius radius-server shared-key cipher %^%#H**3(i3_k%ugc;,fvZG!,-:|*=(A5(y4Q_2t'3P%^% # radius-server authentication 10.2.0.50 1812 weight 80 radius-server accounting 10.2.0.50 1813 weight 80 radius-server group-filter class radius-server authorization 10.2.0.50 shared-key cipher %^%#K}(^&0opP~Q%fMUr3k*( 59%N:,+H$*!(Vs%%^%# # web-auth-server default server-ip 10.2.0.50 port 50100 shared-key cipher %^%#/.6y+B[H{Q'wPG"lpVK,bx*Yg9C*5VEC;'-K7~Z%^%# server-detect interval 100 max-times 5 action log user-sync max-times 5 # portal-access-profile name default web-auth-server default # mac-access-profile name mac_access_profile # user-manage mac-access enable user-manage mac-access aging-time 1 user-manage mac-access no-ack-time 2 # user-manage online-user mac-address check enable # aaa authentication-scheme radius authentication-mode radius authorization-scheme radius authorization-mode radius accounting-scheme radius accounting-mode radius domain default authentication-scheme radius accounting-scheme radius authorization-scheme radius radius-server auth_server_radius service-type internetaccess internet-access mode password # interface Vlanif20 ip address 10.3.0.1 255.255.255.0 # interface GigabitEthernet0/0/3 portswitch port link-type access port default vlan 20 authentication-profile portal_authen_mac interface GigabitEthernet0/0/2 undo shutdown ip address 10.2.0.1 24 # interface LoopBack0 authentication-profile portal_authen_default # firewall zone trust set priority 85 add interface Vlanif20 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # auth-policy rule name auth_policy_tsm source-zone trust destination-zone dmz source-address 10.3.0.0 mask 255.255.255.0 destination-address 10.2.0.50 mask 255.255.255.255 action none rule name auth_policy_service source-zone trust destination-zone untrust source-address 10.3.0.0 mask 255.255.255.0 action auth portal-template portal # return