< Home

Web: Example for Configuring Portal Authentication for Internet Access Users (the FW Participates in User Authentication)

This section provides an example for configuring the FW that serves as an egress gateway to complete user authentication with the Agile Controller. Users can directly access HTTP services. The FW redirects HTTP requests to the Portal authentication page of the Agile Controller. The Agile Controller sends authentication requests to the FW. The user can access desired services after the authentication succeeds.

Networking Requirements

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.

  • The intranet Portal server (a component of the Agile Controller) provides a Portal authentication page. The FW redirects users' HTTP requests to the authentication page of the Portal server.
  • The intranet RADIUS server (a component of the Agile Controller) stores user information and completes user authentication.
  • Intranet users include R&D employees and marketing employees.
Figure 1 Configuring Portal authentication for Internet access users (the FW participates in user authentication)

The enterprise network administrator wants to use the user management mechanism provided by the FW to identify intranet IP addresses as users to control users' network behavior and assign network permissions.

  • R&D employees and marketing employees can access HTTP services without proactively accessing the portal authentication page of the Portal server, because their HTTP requests will be automatically redirected to the portal authentication page.
  • R&D employees and marketing employees can access network resources only after being authenticated by the RADIUS server.
  • The FW saves security group information, not user information. The permissions of authenticated users are controlled on the basis of the groups they belong to.

Configuration Roadmap

This example describes how to configure only users and user authentication.

  1. Configure user information, authorization information, Portal server information, and RADIUS server information on the Agile Controller so that the Agile Controller can interwork with the FW.
  2. Configure interfaces and security policies on the FW.
  3. Configure the RADIUS server.
  4. Configure authentication, authorization, and accounting information on the RADIUS server.
  5. Configure an authentication domain.
  6. Configure the security group to which the Internet access user belongs.
  7. Configure Portal2.0 authentication.
  8. Configure an authentication policy.

Data Planning

Item

Data

Description

Agile Controller

R&D user information:
  • Account: user_0001
  • Password: Admin@123
  • Role: role1
  • Security group: research
Marketing user information:
  • Account: user_0002
  • Password: Admin@123
  • Role: role2
  • Security group: marketing

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:
  • Authentication and accounting key: Admin@123
  • Authorization key: Admin@123

The RADIUS parameters configured on the Agile Controller must be consistent with those on the FW.

Portal authentication parameters:
  • Port: 2000
  • Portal key: Admin@123
  • Access device IP address list: 10.3.0.0/24
  • Portal protocol: Huawei Portal protocol
  • Enable heartbeat detection between the access device and Portal server
  • Portal server IP address: 10.2.0.50

The Portal parameters configured on the Agile Controller must be consistent with those on the FW.

FW

RADIUS server:
  • Authentication/Accounting/Authorization server IP address: 10.2.0.50
  • Authentication port: 1812
  • Accounting port: 1813
  • Authentication and accounting key: Admin@123
  • Authorization key: Admin@123

The RADIUS server parameters configured on the FW must be consistent with those on the Agile Controller.

Portal server:
  • IP address: 10.2.0.50
  • Port: 50100
  • Portal key: Admin@123
  • Probe interval and probe retry count: 100s and 5
  • User synchronization period and synchronization count: 300s and 5
  • Portal authentication page: http://10.2.0.50:8080/portal

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.

Procedure

  1. Configure user information, authorization information, Portal server information, and RADIUS server information on the Agile Controller.
    1. Choose Resource > User > Role Management to create a role.

    2. Choose Resource > User > User Management to create a user and associate the user with the role.

    3. Choose Policy > Permission Control > Authentication & Authorization > Authorization Result to configure the authorization result. The attribute value research is the security group of the user and must the same as that on the 6.

    4. Choose Policy > Permission Control > Authentication & Authorization > Authorization Rule to configure an authorization rule. Reference the authorization result and role in the rule and associate the authorization result and role.

      The process for configuring marketing user information and authorization information is similar to the process for configuring R&D user and authorization information.

    5. Choose Resource > Device > Device Management to add a device and configure the Portal server and RADIUS server.

      Parameter

      Description

      IP address

      The interface on the FW must be able to communicate with the Agile Controller.

      RADIUS parameters

      Authentication and accounting key

      The key must be the same as the shared key (configured in 4) used by the FW to communicate with the authentication server and accounting server.

      Authorization key

      The key must be the same as the shared key (configured in 4) used by the FW to communicate with the authorization server.

      Realtime account period

      This parameter is optional.

      Device series

      Use the default value.

      Portal authentication parameters:

      Port

      The port must be the same as the listening port configured in 7.

      Portal key

      The key must be the shared key configured in 7.



  2. Choose Network > Interface. Specify interface IP addresses and assign the interfaces to security zones.

    The following example describes how to configure GigabitEthernet 0/0/3. You can configure other interfaces based on the networking diagram.

    Security zone

    trust

    IP address

    10.3.0.1/24

  3. Choose Policy > Security Policy > Security Policy. Click Add to configure a security policy.
    1. Configure a security policy for the Trust (intranet users) -> DMZ (Portal server) for users to access the Portal authentication page of the Portal server.

      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

      If the URL of the authentication page is a domain name and a DNS server for resolving the URL is deployed in the DMZ, you need to enable the DNS server from the Trust zone to DMZ.

    2. Configure a security policy between the DMZ (where the Portal and RADIUS servers reside) and Local zone to allow the Portal and RADIUS servers communicate with the FW.

      Name

      local_policy_01

      Source zone

      local

      Destination zone

      dmz

      Action

      Permit

      Name

      local_policy_02

      Source zone

      dmz

      Destination zone

      local

      Action

      Permit

  4. Configure authentication, authorization, and accounting information on the RADIUS server.
    1. Choose Object > Authentication Server > RADIUS. Click Add to configure the RADIUS server.

      Configure IP addresses and ports for the RADIUS authentication and accounting servers and the shared key used by the FW to communicate with the authentication and accounting servers. The parameters must be consistent with those on the RADIUS server.

    2. Click Test and then OK in the dialog box that is displayed. Then enter the account name and password obtained from the RADIUS server. Then click Start Checking to check the connectivity to the RADIUS server. If the connectivity check succeeds, click Cancel.
    3. Click OK.
    4. # Configure an IP address for the RADIUS authorization server and the shared key used by the FW to communicate with the authorization server.

      [FW] radius-server authorization 10.2.0.50 shared-key cipher Admin@123

  5. Configure an authentication domain.
    1. Choose Object > User > default.
    2. Set required parameters.

  6. Configure the security group to which the Internet access user belongs.
    1. Choose Object > User > default.
    2. In User/User Group/Security Group Management List, select Add > Add Security Group.

      Name

      research and marketing

      Security group type

      Static

  7. Configure Portal2.0 authentication.
    1. Choose Object > User > Authentication Options > User-Defined Portal.
    2. Set required parameters.

  8. Choose Object > User > Authentication Policy. Click Add to configure an authentication policy.
    1. Configure the action in the authentication policy for users to access the Portal server to no-authentication so that the users' authentication packets can go through the FW to the Portal server.

      Name

      auth_policy_tsm

      Source Zone

      Trust

      Destination Zone

      dmz

      Source Address/Region

      10.3.0.0/24

      Destination Address/Region

      10.2.0.50/32

      Action

      No authentication

    2. Set the action in the authentication policy for users to access other services to Portal authentication.

      Name

      auth_policy_service

      Source Zone

      Trust

      Destination Zone

      untrust

      Source Address/Region

      10.3.0.0/24

      Action

      Portal authentication

      Template Name

      portal

  9. After completing the preceding configurations, reference the security group when configuring a security policy, PBR, proxy policy, audit policy and quota control policy.

Verification

  • Access extranet resources as an R&D employee. The HTTP request is redirected to the authentication page. After entering the Agile Controller account and password, you can continue to access network resources.
  • Access extranet resources as a marketing employee. The HTTP request is redirected to the authentication page. After entering the Agile Controller account and password, you can continue to access network resources.
  • On the FW, choose Object > User > Online User to view online user information.

Configuration Scripts

sysname FW
#
authentication-profile name portal_authen_default
 portal-access-profile default               
#                                            
 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                                                        
#                                                                               
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 GigabitEthernet0/0/3           
 undo shutdown                                                                  
 ip address 10.3.0.1 255.255.255.0                                              
#
interface LoopBack0                                                             
 authentication-profile portal_authen_default                                   
#                                                                               
firewall zone trust                                                             
 set priority 85                                                                
 add interface GigabitEthernet0/0/3      
#                                                                               
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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >