User Authentication USG Firewall
User Authentication USG Firewall
User Authentication USG Firewall
Contents
14 User Authentication
14.1 Web: Example for Configuring Local Authentication on Internet Access Users
14.2 Web: Example for Configuring Authentication Exemption for Internet Access Users (Bidirectionally Binding Users to IP and MAC Addresses)
14.3 Web: Example for Configuring AD SSO for Internet Access Users (Plug-In Mode)
14.4 Web: Example for Configuring AD SSO for Internet Access Users (No-Plug-In Mode)
14.5 Web: Example for Configuring TSM SSO for Internet Access Users (Users Proactively Access the Controller)
14.6 Web: Example for Configuring TSM SSO for Internet Access Users (Users' HTTP Services Are Redirected to the Controller)
14.7 Web: Example for Configuring RADIUS SSO for Internet Access Users
14.8 Web: Example for Configuring a RADIUS Server to Implement Authentication on Internet Access Users
14.9 Web: Example for Configuring an LDAP Server to Implement Authentication on Internet Access Users
14.10 Web: Example for Online Querying and Referencing the Specified Users/User Groups on the AD Server Using Security Policies
14.11 Web: Example for Configuring Authentication on Users at the Headquarters and Branch Offices Using an AD Server
14.12 CLI: Example for Configuring Local Authentication on Internet Access Users
14.13 CLI: Example for Configuring Authentication Exemption for Internet Access Users (Bidirectionally Binding Users to IP and MAC Addresses)
14.14 CLI: Example for Configuring AD SSO for Internet Access Users (Plug-In Mode)
14.15 CLI: Example for Configuring AD SSO for Internet Access Users (No-Plug-In Mode)
14.16 CLI: Example for Configuring TSM SSO for Internet Access Users (Users Proactively Access the Controller)
14.17 CLI: Example for Configuring TSM SSO for Internet Access Users (Users' HTTP Services Are Redirected to the Controller)
14.18 CLI: Example for Configuring RADIUS SSO for Internet Access Users
14.19 CLI: Example for Configuring a RADIUS Server to Implement Authentication on Internet Access Users
14.20 CLI: Example for Configuring an LDAP Server to Implement Authentication on Internet Access Users
14.21 CLI: Example for Configuring Authentication on Users at the Headquarters and Branch Offices Using an AD Server
14 User Authentication
14.1 Web: Example for Configuring Local Authentication on Internet Access Users
This section describes how to configure local authentication for Internet access users when a FW works as an egress gateway.
14.2 Web: Example for Configuring Authentication Exemption for Internet Access Users (Bidirectionally Binding Users to IP
and MAC Addresses)
This section describes how to configure authentication exemption for high-level executives and implement user-specific permission
management when a FW works as an egress gateway.
14.3 Web: Example for Configuring AD SSO for Internet Access Users (Plug-In Mode)
This section provides an example for configuring AD Single Sign On (SSO) for Internet access users when a FW works as an egress
gateway. In this example, the ADSSO_Setup.exe must be installed on the AD monitor (any computer in the AD domain, including the
AD domain controller) and the login/logout scripts need to be set on the AD domain controller and delivered to PCs.
14.4 Web: Example for Configuring AD SSO for Internet Access Users (No-Plug-In Mode)
This section describes how to configure AD Single Sign On (SSO) for Internet access users when a FW works as an egress gateway. In
this mode, the SSO program is not installed on the AD domain controller.
14.5 Web: Example for Configuring TSM SSO for Internet Access Users (Users Proactively Access the Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a
FW works as an egress gateway. In this scenario, users proactively access the TSM portal authentication page and are authenticated
before accessing services.
14.6 Web: Example for Configuring TSM SSO for Internet Access Users (Users' HTTP Services Are Redirected to the
Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a
FW works as an egress gateway. In this scenario, the FW redirects user HTTP requests to the TSM portal authentication page when an
unauthenticated user attempts to access HTTP services. After successful authentication, users can access services.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 1/92
11/24/2019 User Authentication
14.7 Web: Example for Configuring RADIUS SSO for Internet Access Users
This section describes how to configure RADIUS Single Sign On (SSO) for Internet access users when a FW works as an egress
gateway.
14.8 Web: Example for Configuring a RADIUS Server to Implement Authentication on Internet Access Users
This section describes how to configure RADIUS server authentication for Internet access users when a FW works as an egress gateway.
14.9 Web: Example for Configuring an LDAP Server to Implement Authentication on Internet Access Users
This section describes how to configure a Sun ONE LDAP server to authenticate Internet access users when a FW works as an egress
gateway.
14.10 Web: Example for Online Querying and Referencing the Specified Users/User Groups on the AD Server Using Security
Policies
14.11 Web: Example for Configuring Authentication on Users at the Headquarters and Branch Offices Using an AD Server
This section provides an example for configuring authentication on Internet access users and remote access users when a FW works as
an egress gateway and VPN access gateway.
14.12 CLI: Example for Configuring Local Authentication on Internet Access Users
This section describes how to configure local authentication for Internet access users when a FW works as an egress gateway.
14.13 CLI: Example for Configuring Authentication Exemption for Internet Access Users (Bidirectionally Binding Users to IP
and MAC Addresses)
This section describes how to configure authentication exemption for high-level executives and implement user-specific permission
management when a FW works as an egress gateway.
14.14 CLI: Example for Configuring AD SSO for Internet Access Users (Plug-In Mode)
This section provides an example for configuring AD Single Sign On (SSO) for Internet access users when a FW works as an egress
gateway. In this example, the ADSSO_Setup.exe must be installed on the AD monitor (any computer in the AD domain, including the
AD domain controller) and the login/logout scripts need to be set on the AD domain controller and delivered to PCs.
14.15 CLI: Example for Configuring AD SSO for Internet Access Users (No-Plug-In Mode)
This section describes how to configure AD Single Sign On (SSO) for Internet access users when a FW works as an egress gateway. In
this mode, the SSO program is not installed on the AD domain controller.
14.16 CLI: Example for Configuring TSM SSO for Internet Access Users (Users Proactively Access the Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a
FW works as an egress gateway. In this scenario, users proactively access the TSM portal authentication page and are authenticated
before accessing services.
14.17 CLI: Example for Configuring TSM SSO for Internet Access Users (Users' HTTP Services Are Redirected to the
Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a
FW works as an egress gateway. In this scenario, the FW redirects user HTTP requests to the TSM portal authentication page when an
unauthenticated user attempts to access HTTP services. After successful authentication, users can access services.
14.18 CLI: Example for Configuring RADIUS SSO for Internet Access Users
This section describes how to configure RADIUS Single Sign On (SSO) for Internet access users when a FW works as an egress
gateway.
14.19 CLI: Example for Configuring a RADIUS Server to Implement Authentication on Internet Access Users
This section describes how to configure RADIUS server authentication for Internet access users when a FW works as an egress gateway.
14.20 CLI: Example for Configuring an LDAP Server to Implement Authentication on Internet Access Users
This section describes how to configure a Sun ONE LDAP server to authenticate Internet access users when a FW works as an egress
gateway.
14.21 CLI: Example for Configuring Authentication on Users at the Headquarters and Branch Offices Using an AD Server
This section provides an example for configuring authentication on Internet access users and remote access users when a FW works as
an egress gateway and VPN access gateway.
14.1 Web: Example for Configuring Local Authentication on Internet Access Users
This section describes how to configure local authentication for Internet access users when a FW works as an egress gateway.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-1.
Internet access users include R&D employees, marketing employees, and guests. All of them dynamically obtain IP addresses.
Figure 14-1 Local authentication of Internet access users
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 2/92
11/24/2019 User Authentication
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment. Requirements are as follows:
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must be authenticated by the FW.
Guests must be authenticated by the FW and can only use specified guest accounts to access network resources.
Redirected authentication must be implemented for guests. When an unauthenticated guest uses a browser to access a web page, the
FW redirects the guest to an authentication page. After the guest is authenticated, the browser displays the requested web page.
Configuration Roadmap
The configuration roadmap is as follows:
Data Planning
Item Data Description
Guest Group All guests use the guest account for authentication.
Name: /default
User
Login Name: guest
Parent Group: /default
Password/Confirm Password:
Admin@123
Allow Users to Share This
Account
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 3/92
11/24/2019 User Authentication
Authentication domain Name: default The default authentication domain is used during
Access Control: Online behavior authentication. The user names for R&D employees,
management marketing employees, and guests do not require an
authentication domain.
Procedure
1. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
2. Choose Object > User > Authentication Policy and click Add to create an authentication policy.
3. Choose Object > User > default and configure local authentication.
a. Choose Add Group and create a user group object for an R&D employee.
b. Choose Add a User and create a user object for an R&D employee.
c. Repeat the previous steps to create the user group marketing and user account user_0002 for the marketing department
and a guest account guest.
d. Click Apply.
4. Choose Object > User > Authentication Option and configure the authentication page to redirect to the previously accessed page
after authentication.
In Global Configuration, set Redirection Setting After Successful Authentication as Redirect to the latest Web page and click
Apply.
5. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
Name policy_sec_01
Action Permit
Name policy_sec_02
Action Permit
NOTE:
Enable the DNS service from the Trust zone to the Untrust zone to allow HTTP domain name resolution packets to pass through.
Name policy_sec_03
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 4/92
11/24/2019 User Authentication
Source Zone Trust
Action Permit
6. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Before accessing non-HTTP servers, such as FTP servers, employees and guests must access the authentication page at
https://10.3.0.1:8887 for authentication. The IP address of the authentication page must be that of the interface on the FW and must
be reachable to users.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
user-manage redirect
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
#
domain default
service-type internetaccess
internet-access mode password
#
#
security-policy
rule name policy_sec_01
source-zone trust
source-address 10.3.0.0 24
destination-zone local
service protocol tcp destination-port 8887
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 5/92
11/24/2019 User Authentication
action permit
#
auth-policy
rule name policy_auth_01
source-zone trust
source-address 10.3.0.0 24
action auth
# The following user/group creation configuration is stored in the database, but not in the configuration profile.
user-manage group /default/research
user-manage group /default/marketing
user-manage user user_0001
alias Tom
parent-group /default/research
password *********
undo multi-ip online enable
user-manage user user_0002
alias Jack
parent-group /default/marketing
password *********
undo multi-ip online enable
user-manage user guest
parent-group /default
password *********
14.2 Web: Example for Configuring Authentication Exemption for Internet Access
Users (Bidirectionally Binding Users to IP and MAC Addresses)
This section describes how to configure authentication exemption for high-level executives and implement user-specific permission
management when a FW works as an egress gateway.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-2.
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment.
High-level executives use the fixed IP address 10.3.0.2. To improve efficiency, these executives are exempted from authentication. However,
for security considerations, their accounts must be bound to IP addresses and MAC addresses. This ensures that executives can use only the
specified IP and MAC addresses to access network resources.
Figure 14-2 Authentication exemption for Internet access users
Configuration Roadmap
The configuration roadmap is as follows:
1. Create an authentication policy and configure the matching conditions and authentication action.
2. Set the access control for authentication domain default to Online behavior management.
3. Create a user group and user objects for executives and bidirectionally bind the user objects to IP and MAC addresses.
4. Configure security policies.
Data Planning
Item Data Description
Executive Group Add the executive to the group manager and configure
Name: manager bidirectional binding for the account and the IP and MAC
addresses. No password is required for the executive. A FW
Parent Group: /default
authenticates the executive based on the bound IP and MAC
User addresses.
Login Name: user_0001 You can repeat the operations in this example to configure
Display Name: Supervisor multiple user accounts.
Parent Group: /default/manager
Prohibit Users from Sharing This
Account
IP/MAC Binding: Bidirectional
binding
IP/MAC Address: 10.3.0.2/aaaa-
bbbb-cccc
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 6/92
11/24/2019 User Authentication
Authentication policy Name: policy_auth_01 Executives who meet the matching conditions can access
Source Zone: Trust network resources without being authenticated.
Destination Zone: Any
Source Address/Region:
10.3.0.2/32
Destination Address/Region: Any
Action: Authentication exemption
Procedure
1. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
2. Choose Object > User > Authentication Policy and click Add to configure authentication policies.
NOTE:
If an authentication policy for common employees is required, the authentication policy for subnet 10.3.0.2/32 must be configured prior to that for subnet
10.3.0.2/24. Otherwise, executives cannot match the authentication exemption policy.
3. Choose Object > User > default and configure authentication exemption.
a. Choose Add Group and create a user group object for executives.
As authentication-exempted users do not use passwords, their passwords can be set to any value.
c. Click Apply.
4. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
Name policy_sec_02
Action Permit
Name policy_sec_03
Action Permit
5. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 7/92
11/24/2019 User Authentication
Verification
Verify that the executive A can access network resources without authentication and that other users cannot use the executive user
name to access network resources because their IP addresses are not 10.3.0.2 and their MAC addresses are not aaaa-bbbb-cccc.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
#
domain default
service-type internetaccess
internet-access mode auto-online
#
#
security-policy
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
rule name policy_auth_01
source-zone trust
source-address 10.3.0.2 32
action exempt-auth
#The following user/group creation configuration is stored in the database, but not in the configuration profile.
user-manage group /default/manager
user-manage user user_0001
alias Supervisor
parent-group /default/manager
undo multi-ip online enable
bind mode bidirectional
bind ipv4 10.3.0.2 mac aaaa-bbbb-cccc
14.3 Web: Example for Configuring AD SSO for Internet Access Users (Plug-In Mode)
This section provides an example for configuring AD Single Sign On (SSO) for Internet access users when a FW works as an egress gateway.
In this example, the ADSSO_Setup.exe must be installed on the AD monitor (any computer in the AD domain, including the AD domain
controller) and the login/logout scripts need to be set on the AD domain controller and delivered to PCs.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-3.
The AD identity authentication mechanism is enabled on the intranet, and information about users and user group is saved on an AD
server.
Internet access users on the intranet include R&D employees and marketing employees.
Figure 14-3 AD SSO for Internet access users (the ADSSO_Setup.exe is installed to receive messages from PCs)
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 8/92
11/24/2019 User Authentication
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment. Requirements are as follows:
Information about users and departments is saved on the FW and can be referenced by policies.
R&D employees and marketing employees use domain accounts to log in to AD domains and access network resources. R&D
employees and marketing employees are identified by the user names they use to log in to AD domains.
If the domain accounts of new employees have been created on an AD server but not stored on a FW, the FW automatically imports
their information based on the organizational structure on the AD server after authenticating them.
NOTE:
ADSSO_Setup.exe has two working mode: the mode of receiving messages from PCs and the mode of querying security logs of the AD server. In the mode of querying
security logs of the AD server, only user login messages can be obtained, but user logout messages cannot be obtained. In the mode of receiving messages from PCs, user
logout messages can be obtained, ADSSO_Setup.exe needs to be installed, and login & logout scripts need to be deployed on the AD domain controller, and the login PCs
can only be Windows systems. Set the working mode of ADSSO_Setup.exe as required.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
When AD SSO is enabled, install the AD SSO service program ADSSO_Setup.exe on the AD monitor (any computer in the AD domain, including the AD
domain controller). The service program can obtain the relevant user information upon user login and logout and send the information to the FW. In this
example, a PC in the domain is used as the AD monitor. If the AD monitor is the AD domain controller, install ADSSO_Setup.exe on the AD domain controller
and configure the AD monitor address as the address of the AD domain controller.
In the example, both users and user groups on the AD server are imported to the FW. If there are a large number of users on a live network, you can import only
user groups and control user permissions by user groups.
Data Planning
Item Data Description
AD server Name: auth_server_ad On a FW, set the parameters for communication with an AD
Primary Authentication Server IP: server.
10.3.0.251 The parameter settings on the FW must be consistent with
Port: 88 those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&t… 9/92
11/24/2019 User Authentication
User information import policy Name: policy_import Import users from the AD server to the FW.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import both users
and user groups
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
AD SSO (FW) AD SSO: Enable Set SSO parameters on the FW and configure the FW to
Mode: Installing AD SSO service receive the user login and logout information from the AD
program monitor.
Shared Key: Admin@234
AD SSO service (ADSSO_Setup.exe AD Server Parameter Set the parameters of the AD server on the AD monitor for
program, installed on the AD monitor) AD Server IP: 10.3.0.251 the AD monitor to connect to the AD server for checking
user information after receiving user login/logout messages
Administrator Account:
from the client computer.
cce.com\administrator
Password: Admin@123
Client Communication Parameter The service listening port is an open port of the
Service Listening Port of the AD AD monitor and is used to receive user
SSO service: 12345 login/logout information from client computers.
Anti-Replay Time Window: 1800s The client shared key is the shared key for
(default value) encrypting the communication packets between
Client Shared Key: Admin@123 the client computer and AD monitor and must be
the same as the key configured on the AD domain
controller when login/logout scripts are
configured.
The anti-replay time is the time that the AD
monitor used to check unauthorized client login. If
the interval between the last client login recorded
on the AD domain controller and the last login that
the AD monitor receives from the client exceeds
the anti-replay time, the AD monitor considers the
client login unauthorized and does not send the
client login/logout information to the FW.
AD domain controller (the login and logout IP Address: 10.3.0.254 Run the login and logout scripts on an AD domain
scripts) Listening Port: 12345 controller. If a group policy is used to control the user login
and logout, run the login and logout scripts respectively and
Client Shared Key: Admin@123
send the login and logout information to the AD SSO
service.
The parameters must be the same as those on the
ADSSO_Setup.exe.
Procedure
1. Choose Network > Interface, set IP addresses for interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone trust
IP Address 10.3.0.1/24
2. Choose Policy > Security Policy > Security Policy, click Add to configure security policies.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 10/92
11/24/2019 User Authentication
a. Configure security policies between the Trust (AD server and AD monitor) and Local zone to ensure the communication
among the FW and AD server.
Name local_policy_ad_01
Action Permit
Name local_policy_ad_02
Action Permit
Name policy_sec_02
Action Permit
Name policy_sec_03
Action Permit
3. On a FW, choose Object > Authentication Server > AD, click Add to set the parameters for communication with an AD server.
The parameter settings on the FW must be consistent with those on the AD server.
Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on the AD
server. Click Start Checking to check the connectivity to the AD server.
If you are unfamiliar with the AD server and cannot provide the server name or Base DN values, you can use the AD Explorer
software downloaded from Internet to connect to the AD server to query the attribute values. The mappings between the server
attributes and parameters on the FW are as follows.
4. On a FW, choose Object > User > Authentication Domain, click Add to create an authentication domain.
5. On a FW, choose Object > User > User Import > Server Import, click Add to configure a policy to import user information from
the AD server to the FW.
NOTE:
If the server has many users or user groups, some users or user groups under the basedn may not be imported to the FW because the number of users
or user groups exceeds the FW's specification. Therefore, you are advised to click Select on the right of Server Import Location to select an import
range.
In this example, users and user groups are imported to the FW. The user and user group filtering conditions in this example use the default values
(&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer))) and (|(objectclass=organizationalUnit)(ou=*)).
If you need to import user groups only, set Import Type to Import only user groups and set the new user option in 6 to Consider new users as
temporary users and do not add them to the local user list. Authenticated users use the permissions of their owning groups.
6. Choose Object > User > cce.com, configure AD SSO and click Apply.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h&… 11/92
11/24/2019 User Authentication
Click Configure on the right of Server Import Policy. A dialog box is displayed. Click Import Immediately corresponding to
policy_import. After the import is complete, the user groups and users on the AD server are displayed in User/User
Group/Security Group Management List.
7. Choose Object > User > Authentication Policy, click Add to create an authentication policy.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits the traffic when user
information fails to be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on the users failing the SSO authentication.
If the packets exchanged between the user and the AD server, between the user and the AD monitor, and between the AD monitor and the AD server pass
through the FW, ensure that the authentication policy on the FW does not authenticate these packets and the security policy allows them through. You can
choose Object > User > Authentication Policy to check the authentication policy.
8. Choose Object > User > Authentication Option, set the online user timeout duration to 480 minutes.
9. In the 6 authentication domain window, download the AD SSO program to your PC, decompress the program package, and copy
ADSSO_Setup.exe to the AD monitor.
10. Deploy the AD SSO service on the AD monitor.
You must use an account that belongs to the Administrators group to log in to the AD monitor.
a. Double-click ADSSO_Setup.exe. In the dialog box that is displayed, select English as the installation wizard language
and click OK. The installation wizard is then displayed in English.
i. Configure the parameters for the AD SSO program to receive messages from PCs and the shared key used by
the AD SSO program to communicate with the FW.
NOTE:
When an AD SSO service program monitors login messages of multiple AD servers in a domain forest, set Anti-replay Time to 0
and disable the anti-replay function. The anti-replay function detects the difference between the time at which the AD SSO service
program receives a user login message and the time at which the user actually logs in to the AD server. If the time difference exceeds
the anti-replay time, the user is prohibited from logging in to the FW. In a scenario where multiple AD servers exist, different users
are authenticated by various AD servers. The AD SSO program will connect to multiple AD servers in turn to obtain user login
time.This causes the time difference to exceed Anti-replay Time. Therefore, you shall disable the anti-replay function.
Make sure that the port (port 12345 in this example) you intend to use is not occupied by other services. Choose Start > Run on the
AD domain controller, enter cmd, and run netstat -ano|findstr 12345. If no information is returned, port 12345 is not occupied by
other services. Otherwise, the system displays a message indicating the process ID of the service occupying the port. You are advised
to release this port or specify another idle port for the AD SSO service.
SSO is enabled on all OUs by default. When the AD SSO program is installed on the AD domain controller, filtering by OU is
supported. Click Set FilterGroup and enter the OU for which SSO will be enabled. Four OUs can be configured. You can specify
three levels for each OU. For example, OU1=research,OU2=software indicates that SSO is enabled for /research/software.
NOTE:
When the FWs work in hot standby scenarios, you need to set Device Address to the virtual IP address of the VRRP group where the
interfaces reside, so that the SSO service can send user login messages to the standby device during an active/standby FW switchover.
11. On the AD domain controller, add script ReportLogin.exe to the logon script (Logon.exe) and logoff script (Logoff.exe)
respectively, and set the parameters of the logon and logoff scripts so that the AD SSO service can monitor the logon and logoff
operations of domain users. You can obtain script file ReportLogin.exe from the Script folder in the installation directory of the
AD SSO on the AD monitor.
NOTE:
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 12/92
11/24/2019 User Authentication
You must use an account that belongs to the Administrators group to log in to the AD domain controller. In this example, the Windows Server 2003 and
Windows 2008 Server are used as an AD domain controller.
a. Access the group policy management page and locate logon and logoff scripts. The steps for accessing the group policy
management page and the paths of logon and logoff scripts differ on Windows 2003 Server, Windows 2008 Server and
Windows 2012 Server. Details are as follows:
Windows 2003 Server
i. Choose Start > All Programs > Administrator Tools > Active Directory Users and Computers. Then run
the Active Directory Users and Computers tool, as shown in Figure 14-4.
Figure 14-4 Directory structure on an AD server
ii. Right-click the domain (cce.com as an example) that requires SSO and select ProPerties. In the dialog box that
is displayed, click the Group Policy tab, as shown in Figure 14-5.
Figure 14-5 Domain properties configuration window
iii. Double-click Default Domain Policy to open the domain policy configuration window.
iv. Choose User Configuration > Windows Settings > Scripts(Logon/Logoff), as shown in Figure 14-6.
Figure 14-6 Group policy configuration window
b. Double-click Logon to access the login script configuration window, as shown in Figure 14-9.
Figure 14-9 Login script configuration window
c. In the login script configuration window, click ShowFiles... and copy ReportLogin.exe to the directory that is displayed.
Then close the directory.
d. In the login script configuration window, click Add, add login script ReportLogin.exe, and set the script parameters, as
shown in Figure 14-10. Then click OK.
When adding the user login script, click Browse in Figure 14-10 and select ReportLogin.exe in the directory displayed in
11.c.
Figure 14-10 Adding ReportLogin.exe as the login script
NOTE:
The parameters are separated by spaces.
In the example, the IP address of the AD SSO service is the IP address (10.3.0.254) of the AD monitor.
The service port must the same as the Port value specified in 10 when you install ADSSO_Setup.exe. The port number in this example
is 12345.
The client shared key must the same as the Client Shared Key value specified in 10 when you install ADSSO_Setup.exe. The port
number in this example is Admin@123.
0 indicates a login script. To configure a logout script, set this parameter to 1.
e. Configure the logout script by referring to steps 11.b and 11.d. The login and logout scripts are both ReportLogin.exe but
are saved in different folders.
f. Choose Start > Run, enter cmd to open the CLI, and run gpupdate to apply the policy.
12. After the configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 13/92
11/24/2019 User Authentication
Marketing employees use domain accounts to log in to AD domains and access network resources through the FW. They
can access network resources only after successful logins.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on ad
enable
plug-in shared-key %$%$B2N*$eJ0;'Nn'#ATC]t+Rri`%$%$
#
ad-server template auth_server_ad
ad-server authentication 10.3.0.251 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name ad.cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
security-policy
rule name local_policy_ad_01
source-zone local
destination-zone trust
destination-address 10.3.0.251 32
destination-address 10.3.0.254 32
action permit
rule name local_policy_ad_02
source-zone trust
destination-zone local
source-address 10.3.0.251 32
source-address 10.3.0.254 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
server searchdn ou=marketing,dc=cce,dc=com
server searchdn ou=research,dc=cce,dc=com
destination-group /cce.com
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type user-group
import-override enable
sync-mode incremental schedule interval 120
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 14/92
11/24/2019 User Authentication
#
aaa
domain cce.com
service-type internetaccess
internet-access mode single-sign-on
new-user add-local group /cce.com auto-import policy_import
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test-aaa testname testpassword ad-template auth_server_ad
14.4 Web: Example for Configuring AD SSO for Internet Access Users (No-Plug-In
Mode)
This section describes how to configure AD Single Sign On (SSO) for Internet access users when a FW works as an egress gateway. In this
mode, the SSO program is not installed on the AD domain controller.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-11.
AD identity authentication is enabled on the intranet, and information about users and user group is saved on an AD server.
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must use domain accounts to log in to AD domains and access network resources. R&D
employees and marketing employees must be identified by the user names that they use to log in to AD domains.
If the domain accounts of new employees have been created on an AD server but not stored on a FW, the FW must authenticate them
and automatically import their information based on the organizational structure on the AD server.
For security purposes, no programs can be installed on the AD server.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
Without the plug-in, the FW cannot obtain user logout messages. Users go offline only when their connections time out.
In this example, users and user groups on the AD server are imported to the FW. If there are a large number of users on the network, you can import user groups only and
control user permissions by user groups.
Data Planning
Item Data Description
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 15/92
11/24/2019 User Authentication
AD server Name: auth_server_ad On a FW, set the parameters for communication with an AD
Primary Authentication Server IP: server.
10.3.0.251 The parameter settings on the FW must be consistent with
Port: 88 those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
User information import policy Name: policy_import Import users from the AD server to the FW.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import both users
and user groups
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
AD SSO AD SSO: Enable Set SSO parameters on the FW and configure the FW to
Mode: No Plug-In receive user login information from the AD server.
Interface for Receiving Mirrored
Authentication Packets:
GigabitEthernet 1/0/4
Server IP address/port:
10.3.0.251:88
Procedure
1. Choose Network > Interface, set IP addresses for interfaces, and assign the interfaces to security zones. The following example
describes how to configure interfaces GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4. You can configure other interfaces based on
the networking diagram.
GigabitEthernet 1/0/3
Zone Trust
IP Address 10.3.0.1/24
GigabitEthernet 1/0/4
Zone Trust
Mode Switch
GigabitEthernet 1/0/4 is used to receive mirrored packets from the switch and must work in switching mode.
2. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
a. Configure security policies between the Trust (AD server) and Local zones to ensure that the FW and AD server can
communicate.
Name local_policy_ad_01
Action Permit
Name local_policy_ad_02
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 16/92
11/24/2019 User Authentication
Action Permit
Name policy_sec_02
Action Permit
Name policy_sec_03
Action Permit
3. On a FW, choose Object > Authentication Server > AD and click Add to set the parameters for communication with an AD
server.
The parameter settings on the FW must be consistent with those on the AD server.
Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on the AD
server. Click Start Checking to check the connection to the AD server.
4. On a FW, choose Object > User > Authentication Domain and click Add to create an authentication domain.
5. On a FW, choose Object > User > User Import > Server Import and click Add to configure a policy to import user information
from the AD server to the FW.
NOTE:
To import user groups only, set Import Type to Import only user groups and set the new user option in 6 to Consider new users as temporary
users and do not add them to the local user list. Authenticated users use the permissions of their groups.
The user and user group filtering conditions in this example use the default values (&(|(objectclass=person)(objectclass=organizationalPerson))
(cn=*)(!(objectclass=computer))) and (|(objectclass=organizationalUnit)(ou=*)).
6. Choose Object > User > cce.com, configure AD SSO, and click Apply.
Click Configure on the right of Server Import Policy. In the dialog box that is displayed, click Import Immediately next to
policy_import. After the import is complete, the user groups and users on the AD server are displayed in User/User
Group/Security Group Management List.
NOTE:
Selecting Receive a copy of authentication packets and specifying a mirroring interface on the FW causes the interface to discard all packets except AD
authentication packets. If both authentication packets and service packets are mirrored by the switch to the FW deployed in bypass mode, do not select this
parameter.
7. Choose Object > User > Authentication Policy and click Add to create an authentication policy.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits traffic even when user
information cannot be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on users that fail SSO authentication.
If the AD domain controller is deployed in the DMZ, ensure that the authentication policy on the FW exempts the authentication packets sent by users to the
AD server. You can choose Object > User > Authentication Policy to check the authentication policy.
The security policy must also allow these packets to pass through. Therefore, configure the following security policy on the FW:
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 17/92
11/24/2019 User Authentication
Source Zone: Trust
Destination Zone: DMZ
Destination Address/Region: The IP address of the AD server
Action: Permit
8. Choose Object > User > Authentication Option and set the online user timeout duration to 480 minutes.
9. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
10. Configure the port mirroring function on the switch.
This example describes how to configure the port mirroring function on the Huawei S9700. For information about configuring other
functions, refer to the S9700 product documentation.
Verification
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on ad
mode no-plug-in
no-plug-in interface GigabitEthernet1/0/4
no-plug-in traffic server-ip 10.3.0.251 port 88
enable
#
ad-server template auth_server_ad
ad-server authentication 10.3.0.251 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name ad.cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
security-policy
rule name local_policy_ad_01
source-zone local
destination-zone trust
destination-address 10.3.0.251 32
action permit
rule name local_policy_ad_02
source-zone trust
destination-zone local
source-address 10.3.0.251 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 18/92
11/24/2019 User Authentication
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
interface GigabitEthernet1/0/4
portswitch
port link-type access
#
firewall zone trust
add interface GigabitEthernet1/0/3
add interface GigabitEthernet1/0/4
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type user-group
import-override enable
sync-mode incremental schedule interval 120
#
aaa
domain cce.com
service-type internetaccess
internet-access mode single-sign-on
new-user add-local group /cce.com auto-import policy_import
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test-aaa testname testpassword ad-template auth_server_ad
14.5 Web: Example for Configuring TSM SSO for Internet Access Users (Users
Proactively Access the Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a FW
works as an egress gateway. In this scenario, users proactively access the TSM portal authentication page and are authenticated before
accessing services.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-12.
TSM identity authentication is enabled on the intranet, and information about users and user groups is saved on a TSM server.
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must enter valid TSM accounts and passwords and pass authentication to access network
resources. R&D employees and marketing employees must be identified by the user names they use for TSM authentication.
If the TSM accounts of new employees have been created on a TSM server but not stored on a FW, the FW must consider them
temporary users and assign them the permissions of the specified group.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 19/92
11/24/2019 User Authentication
1. Add the FW on the TSM server and configure the TSM server on the FW so that the FW and TSM server can communicate.
2. Configure a policy to import user information from the TSM server to the FW.
3. Set TSM SSO parameters on the FW.
4. Set the new user authentication option for the default authentication domain. After a new user is authenticated, the user receives the
permissions of the newuser group to access network resources.
5. Set the user online timeout duration to 480 minutes to prevent frequent timeouts during working hours.
6. On the FW, configure an authentication policy for user service traffic and set the action to authentication exemption.
7. Because the FW is deployed between users and the TSM server, authentication packets pass through the FW. Therefore, configure
an authentication policy to prevent the FW from authenticating the authentication requests destined for the TSM server and
configure security policies to ensure that the FW and TSM server can communicate normally.
Data Planning
Item Data Description
TSM server Service Name: auth_server_tsm On a FW, set the parameters for communication with a TSM
TSM Controller IP Address: server.
10.2.0.50 The parameter settings on the FW must be consistent with
Server Port: 8084 those on the TSM server.
Encryption: AES128
Shared Key: Admin@123
User information import policy Name: policy_import Import users from the TSM server to the FW.
Server Type: TSM
Server Name: auth_server_tsm
Import Type: Import both users
and user groups
Target User Group: /default
Automatic Synchronization from
Server: 120 minutes
Overwrite local user records when
the current user exists
Parent group of new users Name: newuser New users are considered temporary and use the
Parent Group: /default permissions of the group newuser.
TSM SSO TSM SSO: Enable Set SSO parameters on the FW and configure the FW to
Internet Access After Identity receive user login and logout information from the TSM
Authentication server.
Procedure
a. Choose System Configuration > Server Configuration > Online Behavior Management Device.
NOTE:
If the FWs work in hot standby mode, add Online Behavior Management Device twice on the TSM server. The IP Address parameters must be
set to the real IP addresses of the active and standby device interfaces connecting to the TSM server.
c. Click OK.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 20/92
11/24/2019 User Authentication
2. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
3. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
a. Configure a security policy between the Trust zone (users) and DMZ (TSM server) for users to be authenticated by the
TSM server.
Name sec_policy_tsm
Action Permit
b. Configure security policies between the DMZ (TSM server) and Local zone for the TSM server and FW to communicate.
Name local_policy_tsm_01
Action Permit
Name local_policy_tsm_02
Action Permit
Name policy_sec_02
Action Permit
4. On a FW, choose Object > Authentication Server > TSM and click Add to set the parameters for communication with a TSM
server.
The parameter settings on the FW must be consistent with those on the TSM server. In most cases, the Policy Center server port is
8080 and the Agile Controller server port is 8084.
Click Detect. In the dialog box that is displayed, click OK to check the connection to the TSM server.
5. On a FW, choose Object > User > User Import > Server Import and click Add to configure a policy to import user information
from the TSM server to the FW.
NOTE:
User information on the TSM server can be imported only to the default authentication domain.
6. Choose Object > User > default, configure TSM SSO, and click Apply.
Click Configure to the right of Server Import Policy. In the dialog box that is displayed, click Import Immediately next to
policy_import. After the import is complete, the user groups and users on the TSM server are displayed in User/User
Group/Security Group Management List.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 21/92
11/24/2019 User Authentication
7. Choose Object > User > Authentication Option and set the online user timeout duration to 480 minutes.
8. Choose Object > User > Authentication Policy and click Add to configure authentication policies. Select none as the action in the
authentication policy for users to access the TSM server so that authentication packets from users can pass through the FW to the
TSM server. Select authentication exemption as the action in the authentication policy for user service traffic so that the FW can
obtain user information through SSO.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits traffic even when user
information cannot be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on users that fail SSO authentication.
9. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Verify that R&D employees can access network resources after successfully logging in with their TSM accounts and passwords.
Verify that marketing employees can access network resources after successfully logging in with their TSM accounts and passwords.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on tsm
enable
#
tsm-server template auth_server_tsm
tsm-server encryption-mode aes128 shared-key %$%$|5<h@/062'gA|%:9CO.2/JA8%$%$
tsm-server ip-address 10.2.0.50
#
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_tsm_01
source-zone local
destination-zone dmz
action permit
rule name local_policy_tsm_02
source-zone dmz
destination-zone local
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
#
auth-policy
rule name auth_policy_tsm
source-zone trust
destination-zone dmz
source-address 10.3.0.0 24
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
user-manage server-sync tsm
sync-address 10.3.0.0 24
enable
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 22/92
11/24/2019 User Authentication
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from tsm
server template auth_server_tsm
server basedn root
destination-group /default
import-type user-group
import-override enable
time-interval 120
#
aaa
domain default
service-type internetaccess
internet-access mode single-sign-on
new-user add-temporary group /default/newuser
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
user-manage group /default/newuser
test tsm-server template auth_server_tsm
14.6 Web: Example for Configuring TSM SSO for Internet Access Users (Users' HTTP
Services Are Redirected to the Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a FW
works as an egress gateway. In this scenario, the FW redirects user HTTP requests to the TSM portal authentication page when an
unauthenticated user attempts to access HTTP services. After successful authentication, users can access services.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-13.
TSM identity authentication is enabled on the intranet, and information about users and user groups is saved on a TSM server.
Internet access users on the intranet include R&D employees and marketing employees.
The HTTP requests of R&D employees and marketing employees must be automatically redirected to the TSM portal authentication
page. These employees are not required to access the TSM portal authentication page proactively.
R&D employees and marketing employees must enter valid TSM accounts and passwords and pass authentication to access network
resources. R&D employees and marketing employees must be identified by the user names they use for TSM authentication.
The FW saves department information, not user information. The permissions of authenticated users are controlled through the
groups to which they belong.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Add the FW on the TSM server and configure the TSM server on the FW so that the FW and TSM server can communicate.
2. Configure a policy to import group information from the TSM server to the FW.
3. Set TSM SSO parameters on the FW.
4. Set the new user authentication option for the authentication domain. New users are considered temporary users after being
authenticated.
5. Set the URL of the TSM portal authentication page as the redirected authentication page for unauthenticated users that directly
access HTTP services.
6. Configure an authentication policy to authenticate users before they access the Internet.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 23/92
11/24/2019 User Authentication
7. Because the FW is deployed between users and the TSM server, authentication packets pass through the FW. Therefore, configure
an authentication policy to prevent the FW from authenticating the authentication requests destined for the TSM server and
configure security policies to ensure that users, the FW and the TSM server can communicate.
Data Planning
Item Data Description
TSM server Service Name: auth_server_tsm On a FW, set the parameters for communication with a TSM
TSM Controller IP Address: server.
10.2.0.50 The parameter settings on the FW must be consistent with
Server Port: 8084 those on the TSM server.
Encryption: AES128
Shared Key: Admin@123
User information import policy Name: policy_import Import groups from the TSM server to the FW.
Server Type: TSM
Server Name: auth_server_tsm
Import Type: Import only user
groups
Target User Group: /default
Automatic Synchronization from
Server: 120 minutes
Overwrite local user records when
the current user exists
Parent group of new users New users preferentially receive the All users passing TSM authentication are new users for the
permissions of their parent groups on the FW.
server. If their parent groups do not exist on
the server, users receive the permission of
the /default group.
TSM authentication portal address http://10.2.0.50:8080/portal This address must be the same as the setting on the TSM
server.
TSM SSO TSM SSO: Enable Set SSO parameters on the FW and configure the FW to
Internet Access After Identity receive the user login and logout information from the TSM
Authentication server.
Procedure
a. Choose System Configuration > Server Configuration > Online Behavior Management Device.
NOTE:
If the FWs work in hot standby mode, add Online Behavior Management Device twice on the TSM server. The IP Address parameters must be
set to the real IP addresses of the active and standby device interfaces connecting to the TSM server.
c. Click OK.
2. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 24/92
11/24/2019 User Authentication
3. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
a. Configure a security policy between the Trust zone (users) and DMZ (TSM server) for users to be authenticated by the
TSM server.
Source Address
Name sec_policy_tsm
Action Permit
NOTE:
If the URL of the authentication page is a domain name and the DNS server for resolving the URL is deployed in the DMZ, enable the DNS
service from the Trust zone to the DMZ.
b. Configure security policies between the DMZ (TSM server) and Local zone for the TSM server and FW to communicate.
Name local_policy_tsm_01
Action Permit
Name local_policy_tsm_02
Action Permit
Name policy_sec_02
Action Permit
NOTE:
Enable the DNS service from the Trust to the Untrust zone to allow HTTP domain name resolution packets to pass through.
4. On a FW, choose Object > Authentication Server > TSM, click Add to set the parameters for communication with a TSM server.
The parameter settings on the FW must be consistent with those on the TSM server. In most cases, the Policy Center server port is
8080 and the Agile Controller server port is 8084.
Click Detect. In the dialog box that is displayed, click OK to check the connection to the TSM server.
5. On a FW, choose Object > User > User Import > Server Import and click Add to configure a policy to import user information
from the TSM server to the FW.
NOTE:
User information on the TSM server can be imported only to the default authentication domain.
6. Choose Object > User > default, configure TSM SSO, and click Apply.
Click Configure to the right of Server Import Policy. In the dialog box that is displayed, click Import Immediately next to
policy_import. After the import is complete, the user groups and users on the TSM server are displayed in User/User
Group/Security Group Management List.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 25/92
11/24/2019 User Authentication
7. Choose Object > User > Authentication Option, select User-Defined Portal Authentication Settings, and set Portal server
URL to TSM portal authentication page.
The portal URL must be consistent with that configured on the Controller.
8. Choose Object > User > Authentication Policy and click Add to configure authentication policies.
a. In the authentication policy for users to access the TSM server, set the action to none so that authentication packets from
users can pass through the FW to the TSM server.
b. In the authentication policy for users to access other services, set the action to portal authentication so that authentication
is triggered by HTTP service access traffic from users.
9. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Access http://www.example.org/ as an R&D employee. Verify that the HTTP request is redirected to the authentication page and
that after entering a TSM account and password, you can access network resources.
Access http://www.example.org/ as a marketing employee. Verify that the HTTP request is redirected to the authentication page and
that after entering a TSM account and password, you can access network resources.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
user-manage single-sign-on tsm
enable
user-manage portal-template portal 0
portal-url push information
portal-url http://10.2.0.50:8080/portal
#
tsm-server template auth_server_tsm
tsm-server encryption-mode aes128 shared-key %$%$|5<h@/062'gA|%:9CO.2/JA8%$%$
tsm-server ip-address 10.2.0.50
#
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 policy_sec_02
source-zone trust
destination-zone untrust
source-address 10.3.0.0 24
action permit
rule name local_policy_tsm_01
source-zone local
destination-zone dmz
action permit
rule name local_policy_tsm_02
source-zone dmz
destination-zone trust
action permit
#
user-manage server-sync tsm
sync-address 10.3.0.0 24
enable
#
auth-policy
rule name auth_policy_tsm
source-zone trust
destination-zone dmz
source-address 10.3.0.0 24
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
destination-zone untrust
source-address 10.3.0.0 24
action auth portal-template portal
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 26/92
11/24/2019 User Authentication
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from tsm
server template auth_server_tsm
server basedn root
destination-group /default
import-type group
import-override enable
time-interval 120
#
aaa
domain default
service-type internetaccess
internet-access mode single-sign-on
new-user add-temporary group /default auto-import policy_import
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test tsm-server template auth_server_tsm
14.7 Web: Example for Configuring RADIUS SSO for Internet Access Users
This section describes how to configure RADIUS Single Sign On (SSO) for Internet access users when a FW works as an egress gateway.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-14.
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must enter valid RADIUS accounts and passwords and pass authentication to access
network resources. R&D employees and marketing employees must be identified by the user names they use for RADIUS
authentication.
If the RADIUS accounts of new employees have been created on a RADIUS server but not stored on a FW, the FW considers them
temporary users and assigns them the permissions of the specified group.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Export user information on the RADIUS server into a CSV file in the specified format and import the CSV file into a FW to create
users and user groups in batches.
2. Set RADIUS SSO parameters on the FW.
3. Set the new user authentication option for the default authentication domain. After a new user is authenticated, the user receives the
permissions of the newuser group to access network resources.
4. Set the online user timeout duration to a larger value than the update interval of RADIUS accounting packets on the FW. This
prevents users from frequently having to log in to and log out of the FW. In the example, the online duration is set to 480 minutes.
5. On the FW, configure an authentication policy for user service traffic and set the action to authentication exemption.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 27/92
11/24/2019 User Authentication
6. Because the FW is deployed between users and the RADIUS server, authentication packets pass through the FW. Therefore,
configure an authentication policy to prevent the FW from authenticating the authentication requests destined for the RADIUS
server and configure security policies to ensure that the FW and RADIUS server can communicate normally.
Data Planning
Item Data Description
Parent group of new users Name: newuser New users are considered temporary and use the
Parent Group: /default permissions of the group newuser.
RADIUS SSO RADIUS SSO: Enable Set SSO parameters on the FW for the FW to analyze the
Working mode: In-line RADIUS accounting packets passing by and obtain from
them the mappings between users and IP addresses.
Receiving Interface:
GigabitEthernet 1/0/3
Traffic to be analyzed by RADIUS
SSO: 10.2.0.50:1813 (IP address of
the RADIUS server: accounting
port)
Procedure
1. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
2. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
a. Configure a security policy between the Trust zone (users and NAS device) and DMZ (RADIUS server) for users to be
authenticated by the RADIUS server.
Name policy_sec_radius
Action Permit
Name policy_sec_02
Action Permit
3. Choose Object > User > User Import > Local Import and import users and user groups from a CSV file.
a. In Import User, click Download CSV Template and download the CSV template to your PC.
b. Enter the user information on the RADIUS server into a CSV file according to the template.
Read the instructions in the CSV template and fill in user information. The following figure shows a completed CSV file.
4. Choose Object > User > default, configure RADIUS SSO, and click Apply.
The user groups and users in the default authentication domain are imported through the CSV file in the previous step. The newuser
user group accommodates new users.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 28/92
11/24/2019 User Authentication
5. Choose Object > User > Authentication Option and set the online user timeout duration to 480 minutes.
6. Choose Object > User > Authentication Policy and click Add to configure authentication policies. In the authentication policy for
users to access the RADIUS server, set the action to none so that authentication packets from users can pass through the FW to the
RADIUS server. In the authentication policy for user service traffic, set the action to authentication exemption so that the FW can
obtain user information through SSO.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits traffic even when user
information cannot be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on users that fail SSO authentication.
7. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Verify that R&D employees can access network resources after successfully logging in to the NAS using RADIUS accounts and
passwords.
Verify that marketing employees can access network resources after successfully logging in to the NAS using RADIUS accounts and
passwords.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on radius
enable
mode in-path
interface GigabitEthernet1/0/3
traffic server-ip 10.2.0.50 port 1813
#
security-policy
rule name sec_policy_radius
source-zone trust
destination-zone dmz
destination-address 10.2.0.0 24
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
#
auth-policy
rule name auth_policy_radius
source-zone trust
destination-zone dmz
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
domain default
service-type internetaccess
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 29/92
11/24/2019 User Authentication
internet-access mode single-sign-on
new-user add-temporary group /default/newuser
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
user-manage user-import demo.csv auto-create-group override
user-manage group /default/newuser
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-15. Details are as
follows:
RADIUS authentication is enabled on the intranet, and information about users and user groups is saved on the RADIUS server.
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
The RADIUS server must authenticate Internet access users.
R&D employees and marketing employees must be authenticated on the FW portal before accessing network resources.
If the accounts of new employees are created on the RADIUS server but not stored on a FW, the FW adds the accounts to a user
group after the new employees are authenticated. You can change the parent groups of the new employees.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Set parameters for the FW to communicate with the RADIUS server. Configure the FW to work as a client of the RADIUS server
and send user names and passwords to the RADIUS server for authentication.
2. Configure an authentication policy to authenticate users before they access the Internet.
3. Configure a net1 authentication domain on the FW that references the RADIUS server and configure the new user authentication
option.
4. Export user information on the RADIUS server into a CSV file in the specified format and import the CSV file into a FW to create
users and user groups in batches.
5. Configure security policies on the FW to allow Internet access users to access authentication web pages for user-initiated
authentication and to allow the FW to communicate with the RADIUS server.
6. Configure the RADIUS server.
Data Planning
Item Data Description
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 30/92
11/24/2019 User Authentication
Parent group of new users Name: newuser Add new users to group newuser.
Parent Group: /net1 New users can access network resources that are accessible
to the group newuser.
RADIUS server Name: auth_server_radius On the FW, set the parameters for communicating with a
Shared Key: secret RADIUS server.
Primary Authentication Server IP: The parameters on the FW must be consistent with those on
10.2.0.50 the RADIUS server.
Port: 1645
Authentication domain Name: net1 The net1 authentication domain is used during
Access Control: Online behavior authentication.
management
Authentication Server:
auth_server_radius
New User Authentication Option:
Add to user group newuser
Authentication policy Name: policy_auth_service R&D employees and marketing employees can access
Source Zone: Trust network resources only after being authenticated by a FW.
Source Address/Region:
10.3.0.0/24
Action: auth
Procedure
1. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
2. Choose Object > Authentication Server > RADIUS and click Add to set the parameters for communication with a RADIUS
server.
Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on the
RADIUS server. Click Start Checking to check the connection to the RADIUS server.
NOTE:
The parameters on the FW must be consistent with those on the RADIUS server.
Include the authentication domain name indicates that the user name sent by the FW to the RADIUS server contains a domain name. If the user name on the
RADIUS server contains an at sign (@), select Include the authentication domain name on the FW.
If the RADIUS server does not support user names in user name@authentication domain name format, do not select Include the authentication domain
name parameter on the FW. Otherwise, authentication will fail.
3. Choose Object > User > Authentication Policy and click Add to configure authentication policies.
4. Choose Object > User > Authentication Domain and click Add to create an authentication domain.
The authentication domain must be the same as the string following the at sign (@) in the user name on the RADIUS server.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 31/92
11/24/2019 User Authentication
5. Choose Object > User > User Import > Local Import and import users and user groups from a CSV file.
a. In Import User, click Download CSV Template and download the CSV template to your PC.
b. Enter the user information on the RADIUS server into a CSV file according to the template.
Read the instructions in the CSV template and fill in user information. The following figure shows a completed CSV file.
NOTE:
The first level of the group path in the CSV file is the authentication domain name. Therefore, the login name does not contain "@domain-name."
In this example, the user name on the RADIUS server is user_0002@net1. Therefore, in the CSV file, the group path is /net1 and the login name
is user_0002.
6. Choose Object > User > net1, configure RADIUS server authentication, and click Apply.
The user groups and users in the net1 authentication domain are imported through the CSV file in the previous step. The newuser
user group accommodates new users.
7. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
Name policy_local_01
Action Permit
b. Configure a security policy to allow the FW to communicate with the RADIUS server.
Name policy_local_02
Action Permit
Name policy_sec_02
Action Permit
NOTE:
Enable the DNS service from the Trust to the Untrust zone to allow HTTP domain name resolution packets to pass through.
Name policy_sec_03
Action Permit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 32/92
11/24/2019 User Authentication
8. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
9. Configure the RADIUS server.
NOTE:
The following uses Shiva Access Manager as an example. To configure your specific RADIUS server, refer to relevant product documentation.
a. Install Shiva Access Manager on the PC. (The installation procedure is omitted here.)
b. Choose Start > Programs > Shiva Access Manager > Shiva Access Manager to start the Shiva Access Manager
program.
c. In the dialog box displayed, enter the user name and password. The default user name is supermanager and the password
is null. See Figure 14-16.
Figure 14-16 Logging in to the Shiva Access Manager server
d. Click Login. In the dialog box displayed, click Start Console Now, as shown in Figure 14-17.
Figure 14-17 Starting the Shiva Access Manager software
e. In the dialog box displayed, enter the user name and password. The default user name is supermanager and the password
is null. See Figure 14-18.
Figure 14-18 Logging in to the Shiva Access Manager console
f. Click Login. The Shiva Access Manager Console interface is displayed, as shown in Figure 14-19.
Figure 14-19 Shiva access manager console
g. Click on the toolbar. In the Encryption Configuration dialog box, enter the NAS address and key, as shown in Figure
14-20. The NAS address is the interface IP address for communication between the FW and the RADIUS server. The key
is the shared key that is set on the FW side.
Figure 14-20 Encryption configuration
h. Click Add. The added NAS address is displayed under NAS List, as shown in Figure 14-21.
Figure 14-21 Encryption configuration
i. Click Exit.
j. Click on the toolbar. In the General Options dialog box, set Authentication UDP Port, as shown in Figure 14-22.
Figure 14-22 Setting the RADIUS server ports
k. Click on the toolbar. In the Manage Users dialog box, click the General Attributes tab, and set the parameters, as
shown in Figure 14-23. Username and Password are the user name and password used for client access. Username is
the user followed by the domain name set on the FW side.
NOTICE:
Do not select Disable Account. Otherwise, the configuration will fail.
Verification
Verify that when an R&D employee accesses www.example.org, the web browser is redirected to an authentication page. The R&D
employee then enters a user name and password for authentication. After the R&D employee is authenticated, the R&D employee can
access network resources.
Verify that when a marketing employee accesses www.example.org, the web browser is redirected to an authentication page. The
marketing employee then enters a user name and password for authentication. After the marketing employee is authenticated, the
marketing employee can access network resources.
Verify that when a new employee accesses www.example.org, the web browser is redirected to an authentication page. The new
employee then enters a user name and password for authentication. After the new employee is authenticated, the new employee can
access network resources.
Before accessing non-HTTP servers, such as FTP servers, employees must access the authentication page at https://10.3.0.1:8887 for
authentication. The IP address of the authentication page must be that of the interface on the FW and must be reachable to users.
On the FW, choose Object > User > Online User to see information about online users.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 33/92
11/24/2019 User Authentication
Configuration Scripts
#
sysname FW
#
radius-server template auth_server_radius
radius-server shared-key cipher %$%$73pu<+^]XV9mn=*qd}_,r3*!%$%$
radius-server authentication 10.2.0.50 1645
radius-server user-name domain-included
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
authentication-scheme radius
authentication-mode radius
#
domain net1
authentication-scheme radius
radius-server auth_server_radius
service-type internetaccess
internet-access mode password
new-user add-local group /net1/newuser
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action auth
#
security-policy
rule name policy_local_01
source-zone trust
destination-zone local
source-address 10.3.0.0 24
service protocol tcp destination-port 8887
action permit
rule name policy_local_02
source-zone local
destination-zone dmz
destination-address 10.2.0.50 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
user-manage user-import demo.csv auto-create-group override
user-manage group /default/newuser
test-aaa testname testpassword radius-template auth_server_radius
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-24. Details are as
follows:
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 34/92
11/24/2019 User Authentication
The intranet has a Sun ONE LDAP server that stores information about users, departments, and groups (named static groups on the
LDAP server).
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
The LDAP server must authenticate Internet access users.
R&D employees and marketing employees must be authenticated on the FW portal before accessing network resources.
If the domain accounts of new employees have been created on an LDAP server but not stored on a FW, the FW authenticates them
and automatically imports their information based on the organizational structure on the LDAP server.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
Information about users, departments, and groups (static groups) on the LDAP server must be imported to the FW. Select the import type as appropriate. For example,
when a large number of users exist on the LDAP server, you can import departments and groups and implement department- and group-specific permission control.
1. Set parameters for the FW to communicate with the LDAP server. Configure the FW to work as a client of the LDAP server and
send user names and passwords to the LDAP server for authentication.
2. Configure an authentication policy to authenticate users before they access the Internet.
3. On the FW, configure an authentication domain with the same name as the authentication domain on the LDAP server.
4. Configure a policy to import user information from the LDAP server to the FW.
User groups on the FW correspond to departments on the LDAP server, and security groups on the FW correspond to static groups
on the LDAP server.
5. Configure the new user option for the authentication domain. If an authenticated user does not exist on the FW, the FW imports the
user based on the import policy.
6. Configure security policies on the FW to allow Internet access users to access authentication web pages for user-initiated
authentication and to allow the FW to communicate with the LDAP server.
Data Planning
Item Data Description
LDAP server Name: auth_server_ldap On a FW, set the parameters for communication with an
Primary Authentication Server IP: LDAP server.
10.2.0.50 The parameter settings on the FW must be consistent with
Port: 389 those on the LDAP server.
Server Type: Sun ONE LDAP
Base DN: dc=cce, dc=com
LDAP Port: 389
Administrator DN: uid=admin_test
Administrator Password:
Admin@123
User information import policy Name: policy_import Import users from the LDAP server to the FW.
Server Type: LDAP
Server Name: auth_server_ldap
Import Type: All
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 35/92
11/24/2019 User Authentication
Authentication domain Name: cce.com The cce.com authentication domain is used during
Access Control: Online behavior authentication.
management
Authentication Server:
auth_server_ldap
New User Authentication Option:
Imports the user based on the
import policy.
Authentication policy Name: policy_auth_service R&D employees and marketing employees can access
Source Zone: Trust network resources only after being authenticated by a FW.
Source Address/Region:
10.3.0.0/24
Action: auth
Procedure
1. Choose Network > Interface. Set IP addresses for the interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone Trust
IP Address 10.3.0.1/24
2. Choose Policy > Security Policy > Security Policy and click Add to configure security policies.
Name policy_local_01
Action Permit
b. Configure a security policy to allow the FW to communicate with the LDAP server.
Name policy_local_02
Action Permit
Name policy_sec_02
Action Permit
NOTE:
Enable the DNS service from the Trust to the Untrust zone to allow HTTP domain name resolution packets to pass through.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 36/92
11/24/2019 User Authentication
Name policy_sec_03
Action Permit
3. Choose Object > Authentication Server > LDAP and click Add to set the parameters for communication with an LDAP server.
The parameters on the FW must be consistent with those on the LDAP server.
Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on the LDAP
server. Click Start Checking to check the connection to the LDAP server.
4. Choose Object > User > Authentication Policy and click Add to configure authentication policies.
5. Choose Object > User > Authentication Domain and click Add to create an authentication domain.
The domain name must be the same as that on the LDAP server.
6. On a FW, choose Object > User > User Import > Server Import and click Add to configure a policy to import user information
from the LDAP server to the FW.
7. Choose Object > User > cce.com, configure LDAP server authentication, and click Apply.
Click Configure to the right of Server Import Policy. In the dialog box that is displayed, click Import Immediately next to
policy_import. After the import is complete, the user groups and users on the LDAP server are displayed in User/User
Group/Security Group Management List.
8. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Verify that when an R&D employee accesses www.example.org, the web browser is redirected to an authentication page. The R&D
employee then enters a user name and password for authentication. After the R&D employee is authenticated, the R&D employee can
access network resources.
Verify that when a marketing employee accesses www.example.org, the web browser is redirected to an authentication page. The
marketing employee then enters a user name and password for authentication. After the marketing employee is authenticated, the
marketing employee can access network resources.
Verify that when a new employee accesses www.example.org, the web browser is redirected to an authentication page. The new
employee then enters a user name and password for authentication. After the new employee is authenticated, the new employee can
access network resources.
Before accessing non-HTTP servers, such as FTP servers, employees must access the authentication page at https://10.3.0.1:8887 for
authentication. The IP address of the authentication page must be that of the interface on the FW and must be reachable to users.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW
#
ldap-server template auth_server_ldap
ldap-server authentication 10.3.0.50 389
ldap-server authentication base-dn dc=cce,dc=com
ldap-server authentication manager uid=admin_test %$%$>884X|-geW:1_*O\(6EI+|sj%$%$ %$%$>884X|-geW:1_*O\(6EI+|sj%$%$
ldap-server group-filter ou
ldap-server user-filter uid
ldap-server server-type sun-one
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 37/92
11/24/2019 User Authentication
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
authentication-scheme ldap
authentication-mode ldap
#
domain cce.com
authentication-scheme ldap
ldap-server auth_server_ldap
service-type internetaccess
internet-access mode password
new-user add-local group /cce.com auto-import policy_import
#
user-manage import-policy policy_import from ldap
server template auth_server_ldap
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute uid
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(uid=*))
group-filter (|(objectclass=organizationalUnit)(ou=*))
security-group-filter (&(objectclass=groupofuniquenames)(!(memberURL=*)))
import-type all
import-override enable
sync-mode incremental schedule interval 120
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action auth
#
security-policy
rule name policy_local_01
source-zone trust
destination-zone local
source-address 10.3.0.0 24
service protocol tcp destination-port 8887
action permit
rule name policy_local_02
source-zone local
destination-zone dmz
destination-address 10.2.0.50 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
user-manage user-import demo.csv auto-create-group override
test-aaa testname testpassword ldap-template auth_server_ldap
14.10 Web: Example for Online Querying and Referencing the Specified Users/User
Groups on the AD Server Using Security Policies
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-25.
The AD identity authentication mechanism is enabled on the intranet, and information about users and user group is saved on an AD
server.
Internet access users on the intranet include R&D employees and marketing employees.
Figure 14-25 Networking diagram for online querying and referencing the specified users/user groups on the AD server using security policies
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment. Requirements are as follows:
R&D and marketing employees can log in to the AD domain using their domain accounts and passwords and access permitted
resources without further authentication. R&D and marketing employees are identified by the user names that they use to log in to the
AD domain.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 38/92
11/24/2019 User Authentication
The AD server has a great number of users and user groups, and only some of them need to be imported to the FW for policies to
reference.
Security policies are configured to allow only marketing employees (user group: marketing) and some R&D employees (such as
users rd_1 and rd_2) to access the Internet.
Configuration Roadmap
NOTE:
This section describes only the operations for online querying, importing, and referencing users from an AD server and configuring authentication domains and server
import policies. For the AD server authentication, AD LDAP server authentication, and AD SSO configuration operations, see the corresponding configuration description
or configuration examples.
Data Planning
Item Data Description
AD server Name: auth_server_ad On a FW, set the parameters for communication with an AD
Primary Authentication Server IP: server.
10.3.0.251 The parameter settings on the FW must be consistent with
Port: 88 those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
User information import policy Name: policy_import Import users from the AD server to the FW.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import both users
and user groups
Target User Group: /cce.com
Overwrite local user records when
the current user exists
Security Policy Name: policy_sec Allow only marketing employees (user group: marketing)
Source Zone: trust and some R&D employees (such as users rd_1 and rd_2) to
access the Internet.
Destination Zone: untrust
Source Address/Region:
10.3.0.0/24
User: /cce.com/marketing,
[email protected], [email protected]
Action: Permit
Procedure
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 39/92
11/24/2019 User Authentication
b. Click Add and set the following parameters.
The parameter settings on the FW must be consistent with those on the AD server.
c. Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on
the AD server. Click Start Checking to check the connectivity to the AD server.
d. Click OK.
3. Configure a policy to import user information from the AD server to the FW.
a. Choose Object > User > User Import > Server Import.
NOTE:
The import type and filtering parameter configured in the server import policy do not take effect in this scenario.
In this scenario, only the specified user, user group, or security group needs to be imported. Therefore, do not select Incremental Synchronization or Full
Synchronization.
NOTE:
The authentication domain must be associated with the configured server import policy. Otherwise, the users, user groups, or security groups on the server
cannot be online queried using the policy.
5. Configure a security policy on the FW, online query and import user group marketing and users rd_1 and rd_2 from the AD
server, and reference them in the security policy to allow the specified users on the intranet to access the Internet.
a. Choose Policy > Security Policy > Security Policy, click Add > Add Security Policy.
b. Click the text box of the User matching condition, select Server Import, enter the specified keywords, and click Server
Import.
c. Separately select user group marketing and users rd_1 and rd_2, click , and click OK to import the selected users or
user group. Then reference the users or user group in the security policy.
NOTE:
When querying users, user groups, or security groups online, you can select the object type in Type to obtain specific query results.
The destination group to which a user or user group is imported is determined by the configuration of the server import policy. In this example, the
user or user group is imported to user group cce.com.
Name policy_sec
Action Permit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 40/92
11/24/2019 User Authentication
Verification
After R&D employees rd_1 and rd_2 use their domain accounts and passwords to log in to the AD domain, they can access the
Internet, while other R&D employees cannot access the Internet.
After marketing employees use their domain accounts and passwords to log in to the AD domain, they can access the Internet.
Configuration Script
#
sysname FW
#
ad-server template auth_server_ad
ad-server authentication 10.3.0.251 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
security-policy
rule name policy_sec
source-zone trust
destination-zone untrust
source-address 10.3.0.0 24
user /cce.com/marketing
user [email protected]
user [email protected]
action permit
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type user-group
import-override enable
#
aaa
domain cce.com
service-type internetaccess
internet-access mode single-sign-on
new-user add-local group /cce.com auto-import policy_import
14.11 Web: Example for Configuring Authentication on Users at the Headquarters and
Branch Offices Using an AD Server
This section provides an example for configuring authentication on Internet access users and remote access users when a FW works as an
egress gateway and VPN access gateway.
Networking Requirements
As shown in Figure 14-26, FWs are deployed at the network borders of the headquarters and branch office of an enterprise. Details are as
follows:
The AD identity authentication mechanism is enabled for the enterprise, and information about users and user groups are saved on an
AD server. The enterprise has top executives, R&D employees, and marketing employees. The R&D and marketing employees work
in the headquarters and branch offices.
The top executives, R&D employees, and marketing employees in the headquarters must be authenticated by FW_A before accessing
network resources.
Top executives use the fixed IP address (10.3.0.2). To improve efficiency, top executives are exempted from authentication,
but for security considerations, the accounts used by top executives must be bound to IP addresses and MAC addresses.
R&D employees and marketing employees use domain accounts to log in to AD domains and access network resources.
An IPSec tunnel is established between the headquarters and a branch office. Employees in the branch office must be authenticated
by FW_A before accessing the resources in the headquarters.
The R&D and marketing employees on the move can connect to FW_A using SSL VPN to access network resources.
Figure 14-26 Authentication on users at the headquarters and branch offices using an AD server
Configuration Roadmap
NOTE:
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 41/92
11/24/2019 User Authentication
This example describes only how to configure user management and authentication.
Data Planning
Item Data Description
AD server Name: auth_server_ad On a FW_A, set the parameters for communication with an
Primary Authentication Server IP: AD server.
10.2.0.50 The parameter settings on the FW_A must be consistent
Port: 88 with those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
Authentication domain Name: cce.com The domain name must be the same as that on the AD
Access Control: SSL VPN Access server.
and Internet behavior management
Authentication Server:
auth_server_ad
Authentication scheme: ad
New User Authentication Item:
New users preferentially use the
permissions of their parent groups
on the server. If their parent groups
do not exist on the server, users use
the permission of the /cce.com
group.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 42/92
11/24/2019 User Authentication
User information import policy Name: policy_import Import users from the AD server to the FW_A.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import user groups
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
AD SSO AD SSO: Enable Set SSO parameters on the FW_A and configure the FW_A
Mode: No-Plug-In to receive the user login information from the AD server.
Server IP address/port:
10.2.0.50:88
Top executive Group Add the top executive to the group manager and configure
Name: manager bidirectional binding for the top executive and the IP and
MAC addresses. No password is required for the top
Parent Group: /cce.com
executive. A FW_A implements authentication on the top
User executive based on the bound IP and MAC addresses.
Login Name: user_0001 You can repeat the operations in this example to configure
Display Name: Top executive A multiple user accounts.
Parent Group: /cce.com/manager
Prohibit Users from Sharing This
Account
IP/MAC Binding: Bidirectional
binding
IP/MAC Address: 10.3.0.2/aaaa-
bbbb-cccc
Authentication policy for top executives Name: policy_auth_01 Authentication is not implemented on the top executive who
Source Zone: trust meets matching conditions. FW_A identifies the top
executive based on the bound IP and MAC addresses.
Destination Zone: any
The top executive can access network resources without
Source Address/Region:
entering any user name and password.
10.3.0.2/32
Destination Address/Region: any
Action: exempt-auth
Authentication policy for branch office Name: policy_auth_02 Employees in the branch office must pass the authentication
Source Zone: untrust before accessing the resources in the headquarters.
Destination Zone: any
Source Address/Region:
10.4.0.0/16
Destination Address/Region: any
Action: auth
Procedure
1. Choose Network > Interface, set IP addresses for interfaces and assign the interfaces to security zones.
The following example describes how to configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the
networking diagram.
Zone trust
IP Address 10.3.0.1/24
2. Choose Policy > Security Policy > Security Policy, click Add to configure security policies.
a. Configure security policies between the DMZ (AD server) and Local zone to ensure the communication among the FW
and AD server.
Name local_policy_ad_01
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 43/92
11/24/2019 User Authentication
Destination Address 10.2.0.50/32
Action Permit
Name local_policy_ad_02
Action Permit
Name policy_sec_02
Action Permit
c. Configure a security policy to allow branch office employees to access the authentication page.
Name policy_sec_03
Action Permit
3. On the FW_A, choose Object > Authentication Server > AD, click Add to set the parameters for communication with an AD
server.
The parameter settings on the FW_A must be consistent with those on the AD server.
Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on the AD
server. Click Start Checking to check the connectivity to the AD server.
4. On the FW_A, choose Object > User > Authentication Domain, click Add to create an authentication domain.
5. On the FW_A, choose Object > User > User Import > Server Import, click Add to configure a policy to import user group
information from the AD server to the FW_A.
NOTE:
The user and user group filtering conditions in this example use the default values (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!
(objectclass=computer))) and (|(objectclass=organizationalUnit)(ou=*)). To change them, run the user-filter and group-filter commands.
6. Choose Object > User > cce.com, configure the authentication parameters and click Apply.
Configure mobile or branch employees to access the HQ for AD server authentication: Set User Location to
Authentication server and select the AD server.
Import user groups from the AD server: Click Configure on the right of Server Import Policy. A dialog box is displayed.
Click Import Immediately corresponding to policy_import. After the import is complete, the user groups on the AD
server are displayed in User/User Group/Security Group Management List.
Configure authentication exemption for senior managers: Create the user account user_0001 and user group manager for
the senior manager; configure bidirectional binding of the user account and IP/MAC address.
Configure AD SSO for HQ employees: Set AD login parameters.
In this example, AD SSO is configured in no-plug-in mode. For configuration in plug-in mode, see CLI: Example for
Configuring AD SSO for Internet Access Users (Install ADSSO_Setup.exe to receive messages from PCs).
Configure new user options: A user logs in as a temporary user after passing AD server authentication if FW_A does not
have the user.
7. Choose Object > User > Authentication Option, set the online user timeout duration to 480 minutes.
8. Choose Object > User > Authentication Policy, click Add to configure authentication policies.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 44/92
11/24/2019 User Authentication
a. Set the authentication policy for the senior manager to authentication exemption.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits the traffic
when user information fails to be obtained during SSO authentication. If the network has high security requirements, set the action of the
authentication policy to portal authentication. Then the FW will implement portal authentication on the users failing the SSO authentication.
c. Set the AD server authentication policy to portal authentication for branch and mobile employees.
9. After the configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user group objects.
Verification
The top executive user_0001 can access network resources without authentication. Other users cannot use the user name of the top
executive to access network resources because their IP addresses are not 10.3.0.2 and their MAC addresses are not aaaa-bbbb-cccc.
Employees in the headquarters can use domain accounts and passwords to log in to the AD domain and access network resources.
An employee in the branch office accesses https://10.3.0.1:8887 and enters the user name and password for authentication. After the
authentication succeeds, the employee can access the network resources in the headquarters.
An employee on the move accesses the authentication page of the SSL VPN virtual gateway and enters the user name and password
for authentication. After the authentication succeeds, the employee can access the network resources in the headquarters.
On the FW, choose Object > User > Online User to see information about online users.
Configuration Scripts
#
sysname FW_A
#
user-manage online-user aging-time 480
user-manage single-sign-on ad
mode no-plug-in
no-plug-in traffic server-ip 10.2.0.50 port 88
enable
#
ad-server template auth_server_ad
ad-server authentication 10.2.0.50 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name ad.cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
set priority 85
add interface GigabitEthernet1/0/3
#
firewall zone untrust
set priority 5
add interface GigabitEthernet1/0/1
#
firewall zone dmz
set priority 50
add interface GigabitEthernet1/0/2
#
security-policy
rule name local_policy_ad_01
source-zone local
destination-zone dmz
destination-address 10.2.0.50 32
action permit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 45/92
11/24/2019 User Authentication
rule name local_policy_ad_02
source-zone dmz
destination-zone local
source-address 10.2.0.50 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
rule name policy_sec_03
destination-zone local
service protocol tcp destination-port 8887
action permit
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type group
import-override enable
sync-mode incremental schedule interval 120
#
aaa
authentication-scheme ad
authentication-mode ad
#
domain cce.com
service-type internetaccess ssl-vpn
internet-access mode single-sign-on auto-online password
authentication-scheme ad
ad-server auth_server_ad
new-user add-temporary group /cce.com auto-import policy_import
#
auth-policy
rule name policy_auth_01
source-zone trust
source-address 10.3.0.2 32
action exempt-auth
rule name auth_policy_ad
source-zone trust
destination-zone dmz
source-address 10.3.0.0 24
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
rule name policy_auth_02
source-zone untrust
source-address 10.4.0.0 16
action auth
# The following user/group creation configuration is stored in the database, but not in the configuration profile.
user-manage group /cce.com/manager
user-manage user user_0001
alias Supervisor
parent-group /cce.com/manager
undo multi-ip online enable
bind mode bidirectional
bind ipv4 10.3.0.2 mac aaaa-bbbb-cccc
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test-aaa testname testpassword ad-template auth_server_ad
14.12 CLI: Example for Configuring Local Authentication on Internet Access Users
This section describes how to configure local authentication for Internet access users when a FW works as an egress gateway.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-27.
Internet access users include R&D employees, marketing employees, and guests. All of them dynamically obtain IP addresses.
Figure 14-27 Local authentication of Internet access users
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment. Requirements are as follows:
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 46/92
11/24/2019 User Authentication
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must be authenticated by the FW.
Guests must be authenticated by the FW and can only use specified guest accounts to access network resources.
Redirected authentication must be implemented for guests. When an unauthenticated guest uses a browser to access a web page, the
FW redirects the guest to an authentication page. After the guest is authenticated, the browser displays the requested web page.
Configuration Roadmap
The configuration roadmap is as follows:
1. Create user groups and users and set passwords for the users.
2. Create authentication policies and configure matching conditions and actions.
3. Configure the default authentication domain.
4. Configure a security policy to allow users to access authentication web pages.
Data Planning
Item Data Description
Guest Group All guests use the guest account for authentication.
Name: /default
User
Login Name: guest
Parent Group: /default
Password/Confirm Password:
Admin@123
Allow Users to Share This
Account
Authentication domain Name: default The default authentication domain is used during
Access Control: Online behavior authentication. The user names for R&D employees,
management marketing employees, and guests do not require an
authentication domain.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 47/92
11/24/2019 User Authentication
Procedure
1. Set IP addresses for the interfaces and assign the interfaces to security zones. The following example describes how to configure
interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
2. Create a user group object and a user object for an R&D employee.
[FW] user-manage group /default/research
[FW-usergroup-/default/research] quit
[FW] user-manage user user_0001
[FW-localuser-user_0001] alias Tom
[FW-localuser-user_0001] parent-group /default/research
[FW-localuser-user_0001] password Admin@123
[FW-localuser-user_0001] undo multi-ip online enable
[FW-localuser-user_0001] quit
3. Create a user group object and a user object for a marketing employee.
[FW] user-manage group /default/marketing
[FW-usergroup-/default/marketing] quit
[FW] user-manage user user_0002
[FW-localuser-user_0002] alias Jack
[FW-localuser-user_0002] parent-group /default/marketing
[FW-localuser-user_0002] password Admin@123
[FW-localuser-user_0002] undo multi-ip online enable
[FW-localuser-user_0002] quit
4. Create a user object for the guest account.
[FW] user-manage user guest
[FW-localuser-user_guest] parent-group /default
[FW-localuser-user_guest] password Admin@123
[FW-localuser-user_guest] quit
5. Configure the authentication page to redirect to the previously accessed page after authentication.
[FW] user-manage redirect
6. Configure an authentication policy.
[FW] auth-policy
[FW-policy-auth] rule name policy_auth_01
[FW-policy-auth-rule-policy_auth_01] source-zone trust
[FW-policy-auth-rule-policy_auth_01] source-address 10.3.0.0 24
[FW-policy-auth-rule-policy_auth_01] action auth
[FW-policy-auth-rule-policy_auth_01] quit
[FW-policy-auth] quit
NOTE:
Enable the DNS service from the Trust zone to the Untrust zone to allow HTTP domain name resolution packets to pass through.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 48/92
11/24/2019 User Authentication
9. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Before accessing non-HTTP servers, such as FTP servers, employees and guests must access the authentication page at
https://10.3.0.1:8887 for authentication. The IP address of the authentication page must be that of the interface on the FW and must
be reachable to users.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 3
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Password (Local)
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0001 Parent User Group: /default/research
IP Address: 10.3.0.5
Login Time: 2015-01-21 14:58:54 Online Time: 00:00:31
State: Active TTL: 00:30:00 Left Time: 00:30:17
Access Type: local
Authentication Mode: Password (Local)
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0002 Parent User Group: /default/marketing
IP Address: 10.3.0.10
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Password (Local)
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: guest Parent User Group: /default
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
user-manage redirect
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 49/92
11/24/2019 User Authentication
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
#
domain default
service-type internetaccess
#
#
security-policy
rule name policy_sec_01
source-zone trust
source-address 10.3.0.0 24
destination-zone local
service protocol tcp destination-port 8887
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
rule name policy_auth_01
source-zone trust
source-address 10.3.0.0 24
action auth
# The following user/group creation configuration is stored in the database, but not in the configuration profile.
user-manage group /default/research
user-manage group /default/marketing
user-manage user user_0001
alias Tom
parent-group /default/research
password *********
undo multi-ip online enable
user-manage user user_0002
alias Jack
parent-group /default/marketing
password *********
undo multi-ip online enable
user-manage user guest
parent-group /default
password *********
14.13 CLI: Example for Configuring Authentication Exemption for Internet Access
Users (Bidirectionally Binding Users to IP and MAC Addresses)
This section describes how to configure authentication exemption for high-level executives and implement user-specific permission
management when a FW works as an egress gateway.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-28.
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment.
High-level executives use the fixed IP address 10.3.0.2. To improve efficiency, these executives are exempted from authentication. However,
for security purposes, their accounts must be bound to IP addresses and MAC addresses. This ensures that executives can use only the
specified IP and MAC addresses to access network resources.
Figure 14-28 Authentication exemption for Internet access users
Configuration Roadmap
The configuration roadmap is as follows:
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 50/92
11/24/2019 User Authentication
1. Create a user group and user objects for executives and bidirectionally bind the user objects to IP and MAC addresses.
2. Create an authentication policy and configure the matching conditions and authentication action.
3. Configure the authentication domain default.
4. Configure security policies.
Data Planning
Item Data Description
Executive Group Add the executive to the group manager and configure
Name: manager bidirectional binding for the account and the IP and MAC
addresses. No password is required for the executive. A FW
Parent Group: /default
authenticates the top executive based on the bound IP and
User MAC addresses.
Login Name: user_0001 You can repeat the operations in this example to configure
Display Name: Supervisor multiple user accounts.
Parent Group: /default/manager
Prohibit Users from Sharing This
Account
IP/MAC Binding: Bidirectional
binding
IP/MAC Address: 10.3.0.2/aaaa-
bbbb-cccc
Authentication policy Name: policy_auth_01 Executives who meet the matching conditions can access
Source Zone: Trust network resources without being authenticated.
Destination Zone: Any
Source Address/Region:
10.3.0.2/32
Destination Address/Region: Any
Action: Authentication exemption
Procedure
1. Set IP addresses for the interfaces and assign the interfaces to security zones. The following example describes how to configure
interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
NOTE:
If an authentication policy for common employees is required, the authentication policy for subnet 10.3.0.2/32 must be configured prior to that for subnet
10.3.0.2/24. Otherwise, executives cannot match the authentication exemption policy.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 51/92
11/24/2019 User Authentication
4. Configure the authentication domain default.
[FW] aaa
[FW-aaa] domain default
[FW-aaa-domain-default] service-type internetaccess
[FW-aaa-domain-default] quit
[FW-aaa] quit
5. Configure security policies.
6. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Verify that the executive A can access network resources without authentication and that other users cannot use the executive user
name to access network resources because their IP addresses are not 10.3.0.2 and their MAC addresses are not aaaa-bbbb-cccc.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-23 14:38:41 Online Time: 00:24:38
State: Active TTL: 00:30:00 Left Time: 00:29:23
Access Type: local
Authentication Mode: Authentication Exemption (IP/MAC Bind User) Bind Mode: Bidirectional
Access Device Type: unknown
<--packets: 12 bytes: 720 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0001 Parent User Group: /default/manager
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
#
domain default
service-type internetaccess
#
#
security-policy
rule name policy_sec_02
source-zone trust
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 52/92
11/24/2019 User Authentication
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
rule name policy_auth_01
source-zone trust
source-address 10.3.0.2 32
action exempt-auth
#The following user/group creation configuration is stored in the database, but not in the configuration profile.
user-manage group /default/manager
user-manage user user_0001
alias Supervisor
parent-group /default/manager
undo multi-ip online enable
bind mode bidirectional
bind ipv4 10.3.0.2 mac aaaa-bbbb-cccc
14.14 CLI: Example for Configuring AD SSO for Internet Access Users (Plug-In Mode)
This section provides an example for configuring AD Single Sign On (SSO) for Internet access users when a FW works as an egress gateway.
In this example, the ADSSO_Setup.exe must be installed on the AD monitor (any computer in the AD domain, including the AD domain
controller) and the login/logout scripts need to be set on the AD domain controller and delivered to PCs.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-29.
The AD identity authentication mechanism is enabled on the intranet, and information about users and user group is saved on an AD
server.
Internet access users on the intranet include R&D employees and marketing employees.
Figure 14-29 AD SSO for Internet access users (the ADSSO_Setup.exe is installed to receive messages from PCs)
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment. Requirements are as follows:
Information about users and departments is saved on the FW and can be referenced by policies.
R&D employees and marketing employees use domain accounts to log in to AD domains and access network resources. R&D
employees and marketing employees are identified by the user names they use to log in to AD domains.
If the domain accounts of new employees have been created on an AD server but not stored on a FW, the FW automatically imports
their information based on the organizational structure on the AD server after authenticating them.
NOTE:
ADSSO_Setup.exe has two working mode: the mode of receiving messages from PCs and the mode of querying security logs of the AD server. In the mode of querying
security logs of the AD server, only user login messages can be obtained, but user logout messages cannot be obtained. In the mode of receiving messages from PCs, user
logout messages can be obtained, ADSSO_Setup.exe needs to be installed, and login & logout scripts need to be deployed on the AD domain controller, and the login PCs
can only be Windows systems. Set the working mode of ADSSO_Setup.exe as required.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
When AD SSO is enabled, install the AD SSO service program ADSSO_Setup.exe on the AD monitor (any computer in the AD domain, including the AD
domain controller). The service program can obtain the relevant user information upon user login and logout and send the information to the FW. In this
example, a PC in the domain is used as the AD monitor. If the AD monitor is the AD domain controller, install ADSSO_Setup.exe on the AD domain controller
and configure the AD monitor address as the address of the AD domain controller.
In the example, both users and user groups on the AD server are imported to the FW. If there are a large number of users on a live network, you can import only
user groups and control user permissions by user groups.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 53/92
11/24/2019 User Authentication
4. Configure the new user option of the authentication domain. If an authenticated user does not exist on the FW, the FW imports the
user based on the import policy.
5. Configure an authentication policy whose action is authentication exemption on the FW.
6. Set SSO parameters for the FW to receive user login and logout messages sent from the AD monitor.
7. To prevent repeated login to the domain for authentication because of frequent timeouts during the working hours (8 hours), you
need to set the user online timeout duration to 480 minutes.
8. Enable the AD SSO service (by installing ADSSO_Setup.exe) on an AD monitor, configure the login and logout scripts on the AD
domain controller, and deliver the scripts using group policies.
Data Planning
Item Data Description
AD server Name: auth_server_ad On a FW, set the parameters for communication with an AD
Primary Authentication Server IP: server.
10.3.0.251 The parameter settings on the FW must be consistent with
Port: 88 those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
User information import policy Name: policy_import Import users from the AD server to the FW.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import both users
and user groups
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
AD SSO (FW) AD SSO: Enable Set SSO parameters on the FW and configure the FW to
Mode: Installing AD SSO program receive the user login and logout information from the AD
monitor.
Shared Key: Admin@234
AD SSO service (ADSSO_Setup.exe AD Server Parameter Set the parameters of the AD server on the AD monitor for
program, installed on the AD monitor) AD Server IP: 10.3.0.251 the AD monitor to connect to the AD server for checking
user information after receiving user login/logout messages
Administrator Account:
from the client computer.
cce.com\administrator
Password: Admin@123
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 54/92
11/24/2019 User Authentication
Client Communication Parameter The service listening port is an open port of the
Service Listening Port of the AD AD monitor and is used to receive user
SSO service: 12345 login/logout information from client computers.
Anti-Replay Time Window: 1800s The client shared key is the shared key for
(default value) encrypting the communication packets between
Client Shared Key: Admin@123 the client computer and AD monitor and must be
the same as the key configured on the AD domain
controller when login/logout scripts are
configured.
The anti-replay time is the time that the AD
monitor used to check unauthorized client login. If
the interval between the last client login recorded
on the AD domain controller and the last login that
the AD monitor receives from the client exceeds
the anti-replay time, the AD monitor considers the
client login unauthorized and does not send the
client login/logout information to the FW.
AD domain controller (the login and logout IP Address: 10.3.0.254 Run the login and logout scripts on an AD domain
scripts) Listening Port: 12345 controller. If a group policy is used to control the user login
and logout, run the login and logout scripts respectively and
Client Shared Key: Admin@123
send the login and logout information to the AD SSO
service.
The parameters must be the same as those on the
ADSSO_Setup.exe.
Procedure
1. Set IP addresses for interfaces and assign the interfaces to security zones. The following example describes how to configure
interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
2. Configure security policies.
a. Configure security policies between the trust (AD server and AD monitor) and local zone to ensure the communication
among the FW and AD server.
[FW] security-policy
[FW-policy-security] rule name local_policy_ad_01
[FW-policy-security-rule-local_policy_ad_01] source-zone local
[FW-policy-security-rule-local_policy_ad_01] destination-zone trust
[FW-policy-security-rule-local_policy_ad_01] destination-address 10.3.0.251 32
[FW-policy-security-rule-local_policy_ad_01] destination-address 10.3.0.254 32
[FW-policy-security-rule-local_policy_ad_01] action permit
[FW-policy-security-rule-local_policy_ad_01] quit
[FW-policy-security] rule name local_policy_ad_02
[FW-policy-security-rule-local_policy_ad_02] source-zone trust
[FW-policy-security-rule-local_policy_ad_02] destination-zone local
[FW-policy-security-rule-local_policy_ad_02] source-address 10.3.0.251 32
[FW-policy-security-rule-local_policy_ad_02] source-address 10.3.0.254 32
[FW-policy-security-rule-local_policy_ad_02] action permit
[FW-policy-security-rule-local_policy_ad_02] quit
Use the user name and password that are configured on the AD server to check the connectivity to the AD server.
[FW-ad-auth_server_ad] test-aaa testname testpassword ad-template auth_server_ad
[FW-ad-auth_server_ad] quit
5. Configure a policy to import user information from the AD server to the FW.
[FW] user-manage import-policy policy_import from ad
[FW-import-policy_import] server template auth_server_ad
[FW-import-policy_import] server basedn dc=cce,dc=com
[FW-import-policy_import] server searchdn ou=marketing,dc=cce,dc=com
[FW-import-policy_import] server searchdn ou=research,dc=cce,dc=com
[FW-import-policy_import] destination-group /cce.com
[FW-import-policy_import] import-type user-group
[FW-import-policy_import] import-override enable
[FW-import-policy_import] sync-mode incremental schedule interval 120
[FW-import-policy_import] quit
NOTE:
If the server has many users or user groups, some users or user groups under the basedn may not be imported to the FW because the number of users
or user groups exceeds the FW's specification. Therefore, you are advised to run the command server searchdn to select an import range.
In this example, users and user groups are imported to the FW. The user and user group filtering conditions in this example use the default values
(&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer))) and (|(objectclass=organizationalUnit)(ou=*)).
To change them, run the user-filter and group-filter commands.
If you need to import user groups only, set import-type to group and set the new user option in 7 to new-user add-temporary group /cce.com
auto-importpolicy_import. Authenticated users use the permissions of their owning groups.
7. Set the new user option for the authentication domain on the FW.
[FW] aaa
[FW-aaa] domain cce.com
[FW-aaa-domain-cce.com] new-user add-local group /cce.com auto-import policy_import
[FW-aaa-domain-cce.com] quit
[FW-aaa] quit
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits the traffic when user
information fails to be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on the users failing the SSO authentication.
If the packets exchanged between the user and the AD server, between the user and the AD monitor, and between the AD monitor and the AD server pass
through the FW, ensure that the authentication policy on the FW does not authenticate these packets and the security policy allows them through. You can run
the display auth-policy command to check the authentication policy.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 56/92
11/24/2019 User Authentication
[FW] user-manage single-sign-on ad
[FW-sso-ad] plug-in shared-key Admin@234
[FW-sso-ad] mode plug-in
[FW-sso-ad] enable
[FW-sso-ad] quit
10. Set the online user timeout duration to 480 minutes.
[FW] user-manage online-user aging-time 480
11. On the FW Web UI, choose Object > User > cce.com, set Internet access authentication mode to SSO Authentication. On the
SSO configuration page, download the AD SSO program to your PC, decompress the program package, and copy
ADSSO_Setup.exe to the AD monitor.
12. Deploy the AD SSO service on the AD monitor.
You must use an account that belongs to the Administrators group to log in to the AD monitor.
a. Double-click ADSSO_Setup.exe. In the dialog box that is displayed, select English as the installation wizard language
and click OK. The installation wizard is then displayed in English.
i. Configure the parameters for the AD SSO program to receive messages from PCs and the shared key used by
the AD SSO program to communicate with the FW.
NOTE:
When an AD SSO service program monitors login messages of multiple AD servers , set Anti-replay Time to 0 and disable the anti-
replay function. The anti-replay function detects the difference between the time at which the AD SSO service program receives a
user login message and the time at which the user actually logs in to the AD server. If the time difference exceeds the anti-replay
time, the user is prohibited from logging in to the FW. In a scenario where multiple AD servers exist, different users are authenticated
by various AD servers. The AD SSO program will connect to multiple AD servers in turn to obtain user login time. This causes the
time difference to exceed Anti-replay Time. Therefore, you shall disable the anti-replay function.
Make sure that the port (port 12345 in this example) you intend to use is not occupied by other services. Choose Start > Run on the
AD domain controller, enter cmd, and run netstat -ano|findstr 12345. If no information is returned, port 12345 is not occupied by
other services. Otherwise, the system displays a message indicating the process ID of the service occupying the port. You are advised
to release this port or specify another idle port for the AD SSO service.
SSO is enabled on all OUs by default. When the AD SSO program is installed on the AD domain controller, filtering by OU is
supported. Click Set FilterGroup and enter the OU for which SSO will be enabled. Four OUs can be configured. You can specify
three levels for each OU. For example, OU1=research,OU2=software indicates that SSO is enabled for /research/software.
NOTE:
When the FWs work in hot standby scenarios, you need to set Device Address to the virtual IP address of the VRRP group where the
interfaces reside, so that the SSO service can send user login messages to the standby device during an active/standby FW switchover.
13. On the AD domain controller, add script ReportLogin.exe to the logon script (Logon.exe) and logoff script (Logoff.exe)
respectively, and set the parameters of the logon and logoff scripts so that the AD SSO service can monitor the logon and logoff
operations of domain users. You can obtain script file ReportLogin.exe from the Script folder in the installation directory of the
AD SSO on the AD monitor.
NOTE:
You must use an account that belongs to the Administrators group to log in to the AD domain controller. In this example, the Windows Server 2003 and
Windows 2008 Server are used as an AD domain controller.
a. Access the group policy management page and locate logon and logoff scripts. The steps for accessing the group policy
management page and the paths of logon and logoff scripts differ on Windows 2003 Server, Windows 2008 Server and
Windows 2012 Server. Details are as follows:
Windows 2003 Server
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 57/92
11/24/2019 User Authentication
i. Choose Start > All Programs > Administrator Tools > Active Directory Users and Computers. Then run
the Active Directory Users and Computers tool, as shown in Figure 14-30.
Figure 14-30 Directory structure on an AD server
ii. Right-click the domain (cce.com as an example) that requires SSO and select ProPerties. In the dialog box that
is displayed, click the Group Policy tab, as shown in Figure 14-31.
Figure 14-31 Domain properties configuration window
iii. Double-click Default Domain Policy to open the domain policy configuration window.
iv. Choose User Configuration > Windows Settings > Scripts(Logon/Logoff), as shown in Figure 14-32.
Figure 14-32 Group policy configuration window
b. Double-click Logon to access the login script configuration window, as shown in Figure 14-35.
Figure 14-35 Login script configuration window
c. In the login script configuration window, click ShowFiles... and copy ReportLogin.exe to the directory that is displayed.
Then close the directory.
d. In the login script configuration window, click Add, add login script ReportLogin.exe, and set the script parameters, as
shown in Figure 14-36. Then click OK.
When adding the user login script, click Browse in Figure 14-36 and select ReportLogin.exe in the directory displayed in
13.c.
Figure 14-36 Adding ReportLogin.exe as the login script
NOTE:
The parameters are separated by spaces.
In the example, the IP address of the AD SSO service is the IP address (10.3.0.254) of the AD monitor.
The service port must the same as the Service Listening Port value specified in 12 when you install ADSSO_Setup.exe. The port
number in this example is 12345.
The client shared key must the same as the Client Shared Key value specified in 12 when you install ADSSO_Setup.exe. The port
number in this example is Admin@123.
0 indicates a login script. To configure a logout script, set this parameter to 1.
e. Configure the logout script by referring to steps 13.b and 13.d. The login and logout scripts are both ReportLogin.exe but
are saved in different folders.
f. Choose Start > Run, enter cmd to open the CLI, and run gpupdate to apply the policy.
14. After the configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Verify that the following conditions are true:
R&D employees use domain accounts to log in to AD domains and access network resources through the FW. They can
access network resources only after successful logins.
Marketing employees use domain accounts to log in to AD domains and access network resources through the FW. They
can access network resources only after successful logins.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 58/92
11/24/2019 User Authentication
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Single Sign-on
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: [email protected] Parent User Group: /cce.com/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on ad
enable
plug-in shared-key %$%$B2N*$eJ0;'Nn'#ATC]t+Rri`%$%$
#
ad-server template auth_server_ad
ad-server authentication 10.3.0.251 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name ad.cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
security-policy
rule name local_policy_ad_01
source-zone local
destination-zone trust
destination-address 10.3.0.251 32
destination-address 10.3.0.254 32
action permit
rule name local_policy_ad_02
source-zone trust
destination-zone local
source-address 10.3.0.251 32
source-address 10.3.0.254 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
server searchdn ou=marketing,dc=cce,dc=com
server searchdn ou=research,dc=cce,dc=com
destination-group /cce.com
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 59/92
11/24/2019 User Authentication
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type user-group
import-override enable
sync-mode incremental schedule interval 120
#
aaa
domain cce.com
service-type internetaccess
new-user add-local group /cce.com auto-import policy_import
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test-aaa testname testpassword ad-template auth_server_ad
14.15 CLI: Example for Configuring AD SSO for Internet Access Users (No-Plug-In
Mode)
This section describes how to configure AD Single Sign On (SSO) for Internet access users when a FW works as an egress gateway. In this
mode, the SSO program is not installed on the AD domain controller.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-37.
AD identity authentication is enabled on the intranet, and information about users and user groups is saved on an AD server.
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must use domain accounts to log in to AD domains and access network resources. R&D
employees and marketing employees must be identified by the user names that they use to log in to AD domains.
If the domain accounts of new employees have been created on an AD server but not stored on a FW, the FW must authenticate them
and automatically import their information based on the organizational structure on the AD server.
For security purposes, no programs can be installed on the AD server.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
Without the plug-in, the FW cannot obtain user logout messages. Users go offline only when their connections time out.
In this example, users and user groups on the AD server are imported to the FW. If there are a large number of users on the network, you can import user groups only and
control user permissions by user groups.
Data Planning
Item Data Description
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 60/92
11/24/2019 User Authentication
AD server Name: auth_server_ad On a FW, set the parameters for communication with an AD
Primary Authentication Server IP: server.
10.3.0.251 The parameter settings on the FW must be consistent with
Port: 88 those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
User information import policy Name: policy_import Import users from the AD server to the FW.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import both users
and user groups
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
AD SSO AD SSO: Enable Set SSO parameters on the FW and configure the FW to
Mode: No Plug-In receive user login information from the AD server.
Interface for Receiving Mirrored
Authentication Packets:
GigabitEthernet 1/0/4
Server IP Address/Port:
10.3.0.251:88
Procedure
1. Set IP addresses for the interfaces and assign the interfaces to security zones. The following example describes how to configure
interfaces GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] interface GigabitEthernet 1/0/4
[FW-GigabitEthernet1/0/4] portswitch
[FW-GigabitEthernet1/0/4] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] add interface GigabitEthernet 1/0/4
[FW-zone-trust] quit
GigabitEthernet 1/0/4 is used to receive mirrored packets from the switch and must work in switching mode.
2. Configure security policies.
a. Configure security policies between the Trust (AD server) and Local zones to ensure that the FWand AD server can
communicate.
[FW] security-policy
[FW-policy-security] rule name local_policy_ad_01
[FW-policy-security-rule-local_policy_ad_01] source-zone local
[FW-policy-security-rule-local_policy_ad_01] destination-zone trust
[FW-policy-security-rule-local_policy_ad_01] destination-address 10.3.0.251 32
[FW-policy-security-rule-local_policy_ad_01] action permit
[FW-policy-security-rule-local_policy_ad_01] quit
[FW-policy-security] rule name local_policy_ad_02
[FW-policy-security-rule-local_policy_ad_02] source-zone trust
[FW-policy-security-rule-local_policy_ad_02] destination-zone local
[FW-policy-security-rule-local_policy_ad_02] source-address 10.3.0.251 32
[FW-policy-security-rule-local_policy_ad_02] action permit
[FW-policy-security-rule-local_policy_ad_02] quit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 61/92
11/24/2019 User Authentication
[FW-policy-security] rule name policy_sec_02
[FW-policy-security-rule-policy_sec_02] source-zone trust
[FW-policy-security-rule-policy_sec_02] source-address 10.3.0.0 24
[FW-policy-security-rule-policy_sec_02] destination-zone untrust
[FW-policy-security-rule-policy_sec_02] action permit
[FW-policy-security-rule-policy_sec_02] quit
NOTE:
To import user groups only, set import-type to group and set the new user option in 7 to new-user add-temporary group /cce.com auto-
importpolicy_import. Authenticated users use the permissions of their groups.
The user and user group filtering conditions in this example use the default values (&(|(objectclass=person)(objectclass=organizationalPerson))
(cn=*)(!(objectclass=computer))) and (|(objectclass=organizationalUnit)(ou=*)). To change them, run the user-filter and group-filter
commands.
7. Set the new user option for the authentication domain on the FW.
[FW] aaa
[FW-aaa] domain cce.com
[FW-aaa-domain-cce.com] new-user add-local group /cce.com auto-import policy_import
[FW-aaa-domain-cce.com] quit
[FW-aaa] quit
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits traffic even when user
information cannot be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on users that fail SSO authentication.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 62/92
11/24/2019 User Authentication
If the AD domain controller is deployed in the DMZ, ensure that the authentication policy on the FW exempts the authentication packets sent by users to the
AD server. You can run the display auth-policy command to check the authentication policy.
The security policy must also allow these packets to pass through. Therefore, configure the following security policy on the FW:
Source Zone: Trust
Destination Zone: DMZ
Destination Address/Region: The IP address of the AD server
Action: Permit
NOTE:
Running the command no-plug-in interface on the FW causes the interface to discard all packets except AD authentication packets. If both authentication
packets and service packets are mirrored by the switch to the FW deployed in bypass mode, do not run this command.
11. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
12. Configure the port mirroring function on the switch.
This example describes how to configure the port mirroring function on the Huawei S9700. For information about configuring other
functions, refer to the S9700 product documentation.
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Verify that the following conditions are true:
R&D employees can use domain accounts to log in to AD domains and access network resources through the FW. They can
access network resources only after logging in successfully.
Marketing employees can use domain accounts to log in to AD domains and access network resources through the FW.
They can access network resources only after logging in successfully.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Single Sign-on
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: [email protected] Parent User Group: /cce.com/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on ad
mode no-plug-in
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 63/92
11/24/2019 User Authentication
no-plug-in interface GigabitEthernet1/0/4
no-plug-in traffic server-ip 10.3.0.251 port 88
enable
#
ad-server template auth_server_ad
ad-server authentication 10.3.0.251 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name ad.cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
security-policy
rule name local_policy_ad_01
source-zone local
destination-zone trust
destination-address 10.3.0.251 32
action permit
rule name local_policy_ad_02
source-zone trust
destination-zone local
source-address 10.3.0.251 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
interface GigabitEthernet1/0/4
portswitch
port link-type access
#
firewall zone trust
add interface GigabitEthernet1/0/3
add interface GigabitEthernet1/0/4
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type user-group
import-override enable
sync-mode incremental schedule interval 120
#
aaa
domain cce.com
service-type internetaccess
new-user add-local group /cce.com auto-import policy_import
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test-aaa testname testpassword ad-template auth_server_ad
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 64/92
11/24/2019 User Authentication
14.16 CLI: Example for Configuring TSM SSO for Internet Access Users (Users
Proactively Access the Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a FW
works as an egress gateway. In this scenario, users proactively access the TSM portal authentication page and are authenticated before
accessing services.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-38.
TSM identity authentication is enabled on the intranet, and information about users and user groups is saved on a TSM server.
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must enter valid TSM accounts and passwords and pass authentication to access network
resources. R&D employees and marketing employees must be identified by the user names they use for TSM authentication.
If the TSM accounts of new employees have been created on a TSM server but not stored on a FW, the FW must consider them
temporary users and assign them the permissions of the specified group.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Add the FW on the TSM server and configure the TSM server on the FW so that the FW and TSM server can communicate.
2. Configure a policy to import user information from the TSM server to the FW.
3. Set TSM SSO parameters on the FW.
4. Set the new user authentication option for the default authentication domain. After a new user is authenticated, the user receives the
permissions of the newuser group to access network resources.
5. Set the user online timeout duration to 480 minutes to prevent frequent timeouts during working hours.
6. On the FW, configure an authentication policy for user service traffic and set the action to authentication exemption.
7. Because the FW is deployed between users and the TSM server, authentication packets pass through the FW. Therefore, configure
an authentication policy to prevent the FW from authenticating the authentication requests destined for the TSM server and
configure security policies to ensure that the FW and TSM server can communicate normally.
Data Planning
Item Data Description
TSM server Service Name: auth_server_tsm On a FW, set the parameters for communication with a TSM
TSM Controller IP Address: server.
10.2.0.50 The parameter settings on the FW must be consistent with
Server Port: 8084 those on the TSM server.
Encryption: AES128
Shared Key: Admin@123
User information import policy Name: policy_import Import users from the TSM server to the FW.
Server Type: TSM
Server Name: auth_server_tsm
Import Type: Import both users
and user groups
Target User Group: /default
Automatic Synchronization from
Server: 120 minutes
Overwrite local user records when
the current user exists
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 65/92
11/24/2019 User Authentication
Parent group of new users Name: newuser New users are considered temporary and receive the
Parent Group: /default permissions of the group newuser.
TSM SSO TSM SSO: Enable Set SSO parameters on the FW and configure the FW to
Internet Access After Identity receive user login and logout information from the TSM
Authentication server.
Procedure
a. Choose System Configuration > Server Configuration > Online Behavior Management Device.
NOTE:
If the FWs work in hot standby mode, add Online Behavior Management Device twice on the TSM server. The IP Address parameters must be
set to the real IP addresses of the active and standby device interfaces connecting to the TSM server.
c. Click OK.
2. Set IP addresses for the interfaces and assign the interfaces to security zones on the FW. The following example describes how to
configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
3. Configure security policies so that users, the TSM server, and the FW can communicate.
a. Configure a security policy between the Trust zone (users) and DMZ (TSM server) for users to be authenticated by the
TSM server.
[FW] security-policy
[FW-policy-security] rule name sec_policy_tsm
[FW-policy-security-rule-sec_policy_tsm] source-zone trust
[FW-policy-security-rule-sec_policy_tsm] source-address 10.3.0.0 24
[FW-policy-security-rule-sec_policy_tsm] destination-zone dmz
[FW-policy-security-rule-sec_policy_tsm] destination-address 10.2.0.0 24
[FW-policy-security-rule-sec_policy_tsm] action permit
[FW-policy-security-rule-sec_policy_tsm] quit
b. Configure security policies between the DMZ (TSM server) and Local zone for the TSM server and FW to communicate.
[FW-policy-security] rule name local_policy_tsm_01
[FW-policy-security-rule-local_policy_tsm_01] source-zone local
[FW-policy-security-rule-local_policy_tsm_01] destination-zone dmz
[FW-policy-security-rule-local_policy_tsm_01] action permit
[FW-policy-security-rule-local_policy_tsm_01] quit
[FW-policy-security] rule name local_policy_tsm_02
[FW-policy-security-rule-local_policy_tsm_02] source-zone dmz
[FW-policy-security-rule-local_policy_tsm_02] destination-zone local
[FW-policy-security-rule-local_policy_tsm_02] action permit
[FW-policy-security-rule-local_policy_tsm_02] quit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 66/92
11/24/2019 User Authentication
[FW-policy-security-rule-policy_sec_02] quit
[FW-policy-security] quit
NOTE:
User information on the TSM server can be imported only to the default authentication domain.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits traffic even when user
information cannot be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on users that fail SSO authentication.
12. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 67/92
11/24/2019 User Authentication
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Verify that R&D employees can access network resources after successfully logging in with their TSM accounts and passwords.
Verify that marketing employees can access network resources after successfully logging in with their TSM accounts and passwords.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Single Sign-on
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0001 Parent User Group: /default/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on tsm
enable
#
tsm-server template auth_server_tsm
tsm-server encryption-mode aes128 shared-key %$%$|5<h@/062'gA|%:9CO.2/JA8%$%$
tsm-server ip-address 10.2.0.50
#
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_tsm_01
source-zone local
destination-zone dmz
action permit
rule name local_policy_tsm_02
source-zone dmz
destination-zone local
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
#
auth-policy
rule name auth_policy_tsm
source-zone trust
destination-zone dmz
source-address 10.3.0.0 24
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
user-manage server-sync tsm
sync-address 10.3.0.0 24
enable
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 68/92
11/24/2019 User Authentication
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from tsm
server template auth_server_tsm
server basedn root
destination-group /default
import-type user-group
import-override enable
time-interval 120
#
aaa
domain default
service-type internetaccess
new-user add-temporary group /default/newuser
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
user-manage group /default/newuser
test tsm-server template auth_server_tsm
14.17 CLI: Example for Configuring TSM SSO for Internet Access Users (Users' HTTP
Services Are Redirected to the Controller)
This section describes how to configure TSM (Policy Center or Agile Controller) Single Sign On (SSO) for Internet access users when a FW
works as an egress gateway. In this scenario, the FW redirects user HTTP requests to the TSM portal authentication page when an
unauthenticated user attempts to access HTTP services. After successful authentication, users can access services.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-39.
TSM identity authentication is enabled on the intranet, and information about users and user groups is saved on a TSM server.
Internet access users on the intranet include R&D employees and marketing employees.
The HTTP requests of R&D employees and marketing employees must be automatically redirected to the TSM portal authentication
page. These employees are not required to access the TSM portal authentication page proactively.
R&D employees and marketing employees must enter valid TSM accounts and passwords and pass authentication to access network
resources. R&D employees and marketing employees must be identified by the user names they use for TSM authentication.
The FW saves department information, not user information. The permissions of authenticated users are controlled through the
groups to which they belong.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Add the FW on the TSM server and configure the TSM server on the FW so that the FW and TSM server can communicate.
2. Configure a policy to import group information from the TSM server to the FW.
3. Set TSM SSO parameters on the FW.
4. Set the new user authentication item for the authentication domain. New users are considered temporary users after being
authenticated.
5. Set the URL of the TSM portal authentication page as the redirected authentication page for unauthenticated users that directly
access HTTP services.
6. Configure an authentication policy to authenticate users before they access the Internet.
7. Because the FW is deployed between users and the TSM server, authentication packets pass through the FW. Therefore, configure
an authentication policy to prevent the FW from authenticating the authentication requests destined for the TSM server and
configure security policies to ensure that users, the FW, and the TSM server can communicate normally.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 69/92
11/24/2019 User Authentication
Data Planning
Item Data Description
TSM server Service Name: auth_server_tsm On a FW, set the parameters for communication with a TSM
TSM Controller IP Address: server.
10.2.0.50 The parameter settings on the FW must be consistent with
Server Port: 8084 those on the TSM server.
Encryption: AES128
Shared Key: Admin@123
User information import policy Name: policy_import Import groups from the TSM server to the FW.
Server Type: TSM
Server Name: auth_server_tsm
Import Type: Import only user
groups
Target User Group: /default
Automatic Synchronization from
Server: 120 minutes
Overwrite local user records when
the current user exists
Parent group of new users New users preferentially receive the All users passing TSM authentication are new users for the
permissions of their parent groups on the FW.
server. If their parent groups do not exist on
the server, users receive the permissions of
the /default group.
TSM authentication portal address http://10.2.0.50:8080/portal This address must be the same as the setting on the TSM
server.
TSM SSO TSM SSO: Enable Set SSO parameters on the FW and configure the FW to
Internet Access After Identity receive user login and logout information from the TSM
Authentication server.
Procedure
a. Choose System Configuration > Server Configuration > Online Behavior Management Device.
NOTE:
If the FWs work in hot standby mode, add Online Behavior Management Device twice on the TSM server. The IP Address parameters must be
set to the real IP addresses of the active and standby device interfaces connecting to the TSM server.
c. Click OK.
2. Set IP addresses for the interfaces and assign the interfaces to security zones on the FW. The following example describes how to
configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
3. Configure security policies so that users, the TSM server, and the FW can communicate.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 70/92
11/24/2019 User Authentication
a. Configure a security policy between the Trust zone (users) and DMZ (TSM server) for users to be authenticated by the
TSM server.
[FW] security-policy
[FW-policy-security] rule name sec_policy_tsm
[FW-policy-security-rule-sec_policy_tsm] source-zone trust
[FW-policy-security-rule-sec_policy_tsm] source-address 10.3.0.0 24
[FW-policy-security-rule-sec_policy_tsm] destination-zone dmz
[FW-policy-security-rule-sec_policy_tsm] destination-address 10.2.0.0 24
[FW-policy-security-rule-sec_policy_tsm] action permit
[FW-policy-security-rule-sec_policy_tsm] quit
NOTE:
If the URL of the authentication page is a domain name and the DNS server for resolving the URL is deployed in the DMZ, enable the DNS
service from the Trust zone to the DMZ.
b. Configure security policies between the DMZ (TSM server) and Local zone for the TSM server and FW to communicate.
[FW-policy-security] rule name local_policy_tsm_01
[FW-policy-security-rule-local_policy_tsm_01] source-zone local
[FW-policy-security-rule-local_policy_tsm_01] destination-zone dmz
[FW-policy-security-rule-local_policy_tsm_01] action permit
[FW-policy-security-rule-local_policy_tsm_01] quit
[FW-policy-security] rule name local_policy_tsm_02
[FW-policy-security-rule-local_policy_tsm_02] source-zone dmz
[FW-policy-security-rule-local_policy_tsm_02] destination-zone local
[FW-policy-security-rule-local_policy_tsm_02] action permit
[FW-policy-security-rule-local_policy_tsm_02] quit
NOTE:
Enable the DNS service from the Trust to the Untrust zone to allow HTTP domain name resolution packets to pass through.
5. Configure a policy to import user information from the TSM server to the FW.
[FW-tsm-auth_server_tsm] user-manage import-policy policy_import from tsm
[FW-import-policy_import] server template auth_server_tsm
[FW-import-policy_import] server basedn root
[FW-import-policy_import] destination-group /default
[FW-import-policy_import] import-type group
[FW-import-policy_import] import-override enable
[FW-import-policy_import] time-interval 120
NOTE:
User information on the TSM server can be imported only to the default authentication domain.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 71/92
11/24/2019 User Authentication
[FW] aaa
[FW-aaa] domain default
[FW-aaa-domain-default] service-type internetaccess
[FW-aaa-domain-default] new-user add-temporary group /default auto-import policy_import
[FW-aaa-domain-default] quit
[FW-aaa] quit
9. Configure the portal authentication page.
[FW] user-manage portal-template portal
[FW-portal-template-portal] portal-url push information
[FW-portal-template-portal] portal-url http://10.2.0.50:8080/portal
The portal URL must be consistent with that configured on the Controller.
10. In the authentication policy for users to access the TSM server, set the action to none so that authentication packets from users can
pass through the FW to the TSM server. In the authentication policy for users to access other services, set the action to portal
authentication so that authentication is triggered by HTTP service access traffic from users.
[FW] auth-policy
[FW-policy-auth] rule name auth_policy_tsm
[FW-policy-auth-rule-auth_policy_tsm] source-zone trust
[FW-policy-auth-rule-auth_policy_tsm] destination-zone dmz
[FW-policy-auth-rule-auth_policy_tsm] source-address 10.3.0.0 24
[FW-policy-auth-rule-auth_policy_tsm] destination-address 10.2.0.50 32
[FW-policy-auth-rule-auth_policy_tsm] action none
[FW-policy-auth-rule-auth_policy_tsm] quit
[FW-policy-auth] rule name auth_policy_service
[FW-policy-auth-rule-auth_policy_service] source-zone trust
[FW-policy-auth-rule-auth_policy_service] destination-zone untrust
[FW-policy-auth-rule-auth_policy_service] source-address 10.3.0.0 24
[FW-policy-auth-rule-auth_policy_service] action auth portal-template portal
11. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Access http://www.example.org/ as an R&D employee. Verify that the HTTP request is redirected to the authentication page and
that after entering a TSM account and password, you can access network resources.
Access http://www.example.org/ as a marketing employee. Verify that the HTTP request is redirected to the authentication page and
that after entering a TSM account and password, you can access network resources.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Single Sign-on
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0001 Parent User Group: /default/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
user-manage single-sign-on tsm
enable
user-manage portal-template portal 0
portal-url push information
portal-url http://10.2.0.50:8080/portal
#
tsm-server template auth_server_tsm
tsm-server encryption-mode aes128 shared-key %$%$|5<h@/062'gA|%:9CO.2/JA8%$%$
tsm-server ip-address 10.2.0.50
#
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
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 72/92
11/24/2019 User Authentication
rule name policy_sec_02
source-zone trust
destination-zone untrust
source-address 10.3.0.0 24
action permit
rule name local_policy_tsm_01
source-zone local
destination-zone dmz
action permit
rule name local_policy_tsm_02
source-zone dmz
destination-zone trust
action permit
#
auth-policy
rule name auth_policy_tsm
source-zone trust
destination-zone dmz
source-address 10.3.0.0 24
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
destination-zone untrust
source-address 10.3.0.0 24
action auth portal-template portal
#
user-manage server-sync tsm
sync-address 10.3.0.0 24
enable
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
user-manage import-policy policy_import from tsm
server template auth_server_tsm
server basedn root
destination-group /default
import-type group
import-override enable
time-interval 120
#
aaa
domain default
service-type internetaccess
new-user add-temporary group /default auto-import policy_import
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test tsm-server template auth_server_tsm
14.18 CLI: Example for Configuring RADIUS SSO for Internet Access Users
This section describes how to configure RADIUS Single Sign On (SSO) for Internet access users when a FW works as an egress gateway.
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-40.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 73/92
11/24/2019 User Authentication
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific
behavior control and permission assignment. Requirements are as follows:
Information about users and departments must be saved on the FW and must be referenceable by policies.
R&D employees and marketing employees must enter valid RADIUS accounts and passwords and pass authentication to access
network resources. R&D employees and marketing employees must be identified by the user names they use for RADIUS
authentication.
If the RADIUS accounts of new employees have been created on a RADIUS server but not stored on a FW, the FW considers them
temporary users and assigns them the permissions of the specified group.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Export user information on the RADIUS server into a CSV file in the specified format and import the CSV file into a FW to create
users and user groups in batches.
2. Set RADIUS SSO parameters on the FW.
3. Set the new user authentication option for the default authentication domain. After a new user is authenticated, the user receives the
permissions of the newuser group to access network resources.
4. Set the online user timeout duration to a larger value than the update interval of RADIUS accounting packets on the FW. This
prevents users from frequently having to log in to and log out of the FW. In the example, the timeout interval is set to 480 minutes.
5. On the FW, configure an authentication policy for user service traffic and set the action to authentication exemption.
6. Because the FW is deployed between users and the RADIUS server, authentication packets pass through the FW. Therefore,
configure an authentication policy to prevent the FW from authenticating the authentication requests destined for the RADIUS
server and configure security policies to ensure that the FW and RADIUS server can communicate normally.
Data Planning
Item Data Description
Parent group of new users Name: newuser New users are considered temporary and use the
Parent Group: /default permissions of the group newuser.
RADIUS SSO RADIUS SSO: Enable Set SSO parameters on the FW for the FW to analyze the
Working mode: In-line RADIUS accounting packets passing by and obtain from
them the mappings between users and IP addresses.
Receiving Interface:
GigabitEthernet 1/0/3
Traffic to be analyzed by RADIUS
SSO: 10.2.0.50:1813 (IP address of
the RADIUS server: accounting
port)
Procedure
1. Set IP addresses for the interfaces and assign the interfaces to security zones. The following example describes how to configure
interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
a. Configure a security policy between the Trust zone (users and NAS device) and DMZ (RADIUS server) for users to be
authenticated by the RADIUS server.
[FW] security-policy
[FW-policy-security] rule name policy_sec_radius
[FW-policy-security-rule-policy_sec_radius] source-zone trust
[FW-policy-security-rule-policy_sec_radius] destination-zone dmz
[FW-policy-security-rule-policy_sec_radius] destination-address 10.2.0.0 24
[FW-policy-security-rule-policy_sec_radius] action permit
[FW-policy-security-rule-policy_sec_radius] quit
3. Import users and user groups from a CSV file on the FW.
a. Choose Object > User > User Import > Local Import.
b. In User Import, click CSV Template Download and download the CSV template to your PC.
c. Enter the user information on the RADIUS server into a CSV file according to the template.
Read the instructions in the CSV template and fill in user information. The following figure shows a completed CSV file.
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits traffic even when user
information cannot be obtained during SSO authentication. If the network has high security requirements, set the action of the authentication policy to portal
authentication. Then the FW will implement portal authentication on users that fail SSO authentication.
9. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Verify that R&D employees can access network resources after successfully logging in to the NAS using RADIUS accounts and
passwords.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 75/92
11/24/2019 User Authentication
Verify that marketing employees can access network resources after successful logging in to the NAS using RADIUS accounts and
passwords.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-21 14:58:36 Online Time: 00:00:49
State: Active TTL: 00:30:00 Left Time: 00:29:59
Access Type: local
Authentication Mode: Single Sign-on
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0002 Parent User Group: /default/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
user-manage online-user aging-time 480
user-manage single-sign-on radius
enable
mode in-path
interface GigabitEthernet1/0/3
traffic server-ip 10.2.0.50 port 1813
#
security-policy
rule name sec_policy_radius
source-zone trust
destination-zone dmz
destination-address 10.2.0.0 24
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
#
auth-policy
rule name auth_policy_radius
source-zone trust
destination-zone dmz
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
domain default
service-type internetaccess
new-user add-temporary group /default/newuser
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
user-manage user-import demo.csv auto-create-group override
user-manage group /default/newuser
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-41. Details are as
follows:
RADIUS authentication is enabled on the intranet, and information about users and user groups is saved on the RADIUS server.
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
The RADIUS server must authenticate Internet access users.
R&D employees and marketing employees must be authenticated on the FW portal to access network resources.
If the accounts of new employees have been created on a RADIUS server but not stored on a FW, the FW adds the accounts to a user
group after the new employees are authenticated. You can change the parent groups of the new employees.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
1. Set parameters for the FW to communicate with the RADIUS server. Configure the FW to work as a client of the RADIUS server
and send user names and passwords to the RADIUS server for authentication.
2. Configure an authentication scheme and set the authentication mode to RADIUS.
3. Configure a net1 authentication domain on the FW that references the RADIUS server and authentication scheme. Then configure
the new user authentication option.
4. Export user information on the RADIUS server into a CSV file in the specified format and import the CSV file into a FW to create
users and user groups in batches.
5. Configure an authentication policy to authenticate users before they access the Internet.
6. Configure security policies on the FW to allow Internet access users to access authentication web pages for user-initiated
authentication and to allow the FW to communicate with the RADIUS server.
7. Configure the RADIUS server.
Data Planning
Item Data Description
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 77/92
11/24/2019 User Authentication
Parent group of new users Name: newuser Add new users to group newuser.
Parent Group: /net1 New users can access network resources that are accessible
to the group newuser.
RADIUS server Name: auth_server_radius On the FW, set the parameters for communicating with a
Shared Key: secret RADIUS server.
Primary Authentication Server IP: The parameters on the FW must be consistent with those on
10.2.0.50 the RADIUS server.
Port: 1645
Authentication domain Name: net1 The net1 authentication domain is used during
Authentication Scheme: radius authentication.
Access Control: Online behavior
management
Authentication Server:
auth_server_radius
New User Authentication Item:
Add to user group newuser
Authentication policy Name: policy_auth_service R&D employees and marketing employees can access
Source Zone: Trust network resources only after being authenticated by a FW.
Source Address/Region:
10.3.0.0/24
Action: auth
Procedure
1. Set IP addresses for the interfaces and assign the interfaces to security zones on the FW. The following example describes how to
configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
NOTE:
The parameters on the FW must be consistent with those on the RADIUS server.
radius-server user-name domain-included indicates that the user name sent by the FW to the RADIUS server contains a domain name.
If the user name on the RADIUS server contains an at sign (@), run the radius-server user-name domain-included command on the FW.
If the user name on the RADIUS server does not contain an at sign (@), do not run this command.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 78/92
11/24/2019 User Authentication
If the RADIUS server does not support user names in user name@authentication domain name format, do not run the radius-server user-name domain-
included command on the FW. Otherwise, authentication will fail.
a. Choose Object > User > Import User > Local Import.
b. In Import User, click Download CSV Template and download the CSV template to your PC.
c. Enter the user information on the RADIUS server into a CSV file according to the template.
Read the instructions in the CSV template and fill in user information. The following figure shows a completed CSV file.
NOTE:
The first level of the group path in the CSV file is the authentication domain name. Therefore, the login name does not contain "@domain-name."
In this example, the user name on the RADIUS server is user_0002@net1. Therefore, in the CSV file, the group path is /net1 and the login name
is user_0002.
b. Configure a security policy to allow the FW to communicate with the RADIUS server.
[FW-policy-security] rule name policy_local_02
[FW-policy-security-rule-policy_local_02] source-zone local
[FW-policy-security-rule-policy_local_02] destination-zone dmz
[FW-policy-security-rule-policy_local_02] destination-address 10.2.0.50 32
[FW-policy-security-rule-policy_local_02] action permit
[FW-policy-security-rule-policy_local_02] quit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 79/92
11/24/2019 User Authentication
c. Configure a security policy to allow users to access the Internet.
[FW-policy-security] rule name policy_sec_02
[FW-policy-security-rule-policy_sec_02] source-zone trust
[FW-policy-security-rule-policy_sec_02] source-address 10.3.0.0 24
[FW-policy-security-rule-policy_sec_02] destination-zone untrust
[FW-policy-security-rule-policy_sec_02] action permit
[FW-policy-security-rule-policy_sec_02] quit
NOTE:
Enable the DNS service from the Trust zone to the Untrust zone to allow HTTP domain name resolution packets to pass through.
10. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
11. Configure the RADIUS server.
NOTE:
The following uses Shiva Access Manager as an example. To configure your specific RADIUS server, refer to relevant product documentation.
a. Install Shiva Access Manager on the PC. (The installation procedure is omitted here.)
b. Choose Start > Programs > Shiva Access Manager > Shiva Access Manager to start the Shiva Access Manager
program.
c. In the dialog box displayed, enter the user name and password. The default user name is supermanager and the password
is null. See Figure 14-42.
Figure 14-42 Logging in to the Shiva Access Manager server
d. Click Login. In the dialog box displayed, click Start Console Now, as shown in Figure 14-43.
Figure 14-43 Starting the Shiva Access Manager software
e. In the dialog box displayed, enter the user name and password. The default user name is supermanager and the password
is null. See Figure 14-44.
Figure 14-44 Logging in to the Shiva Access Manager console
f. Click Login. The Shiva Access Manager Console interface is displayed, as shown in Figure 14-45.
Figure 14-45 Shiva access manager console
g. Click on the toolbar. In the Encryption Configuration dialog box, enter the NAS address and key, as shown in Figure
14-46. The NAS address is the interface IP address for communication between the FW and the RADIUS server. The key
is the shared key that is set on the FW side.
Figure 14-46 Encryption configuration
h. Click Add. The added NAS address is displayed under NAS List, as shown in Figure 14-47.
Figure 14-47 Encryption configuration
i. Click Exit.
j. Click on the toolbar. In the General Options dialog box, set Authentication UDP Port, as shown in Figure 14-48.
Figure 14-48 Setting the RADIUS server ports
k. Click on the toolbar. In the Manage Users dialog box, click the General Attributes tab and set the parameters, as shown
in Figure 14-49. Username and Password are the user name and password used for client access. Username is the user
followed by the domain name set on the FW side.
NOTICE:
Do not select Disable Account. Otherwise, the configuration will fail.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 80/92
11/24/2019 User Authentication
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Verify that when an R&D employee accesses www.example.org, the web browser is redirected to an authentication page. The R&D
employee then enters a user name and password for authentication. After the R&D employee is authenticated, the R&D employee can
access network resources.
Verify that when a marketing employee accesses www.example.org, the web browser is redirected to an authentication page. The
marketing employee then enters a user name and password for authentication. After the marketing employee is authenticated, the
marketing employee can access network resources.
Verify that when a new employee accesses www.example.org, the web browser is redirected to an authentication page. The new
employee then enters a user name and password for authentication. After the new employee is authenticated, the new employee can
access network resources.
Before accessing non-HTTP servers, such as FTP servers, employees must access the authentication page at https://10.3.0.1:8887 for
authentication. The IP address of the authentication page must be that of the interface on the FW and must be reachable to users.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-30 17:24:16 Online Time: 00:01:58
State: Active TTL: 00:30:00 Left Time: 00:30:00
Access Type: local
Authentication Mode: Password (RADIUS)
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0002@net1 Parent User Group: /net1/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
radius-server template auth_server_radius
radius-server shared-key cipher %$%$73pu<+^]XV9mn=*qd}_,r3*!%$%$
radius-server authentication 10.2.0.50 1645
radius-server user-name domain-included
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
authentication-scheme radius
authentication-mode radius
#
domain net1
authentication-scheme radius
radius-server auth_server_radius
service-type internetaccess
new-user add-local group /net1/newuser
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action auth
#
security-policy
rule name policy_local_01
source-zone trust
destination-zone local
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 81/92
11/24/2019 User Authentication
source-address 10.3.0.0 24
service protocol tcp destination-port 8887
action permit
rule name policy_local_02
source-zone local
destination-zone dmz
destination-address 10.2.0.50 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
user-manage user-import demo.csv auto-create-group override
user-manage group /default/newuser
test-aaa testname testpassword radius-template auth_server_radius
Networking Requirements
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 14-50. Details are as
follows:
The intranet has a Sun ONE LDAP server that stores information about users, departments, and groups (named static groups on the
LDAP server).
Internet access users on the intranet include R&D employees and marketing employees.
Information about users and departments must be saved on the FW and must be referenceable by policies.
The LDAP server must authenticate Internet access users.
R&D employees and marketing employees must be authenticated on the FW portal to access network resources.
If the domain accounts of new employees have been created on an LDAP server but not stored on a FW, the FW authenticates them
and automatically imports their information based on the organizational structure on the LDAP server.
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
Information about users, departments, and groups (static groups) on the LDAP server must be imported to the FW. Select the import type as appropriate. For example,
when a large number of users exist on the LDAP server, you can import departments and groups and implement department- and group-specific permission control.
1. Set parameters for the FW to communicate with the LDAP server. Configure the FW to work as a client of the LDAP server and
send user names and passwords to the LDAP server for authentication.
2. Configure an authentication scheme and set the authentication mode to LDAP.
3. On the FW, configure an authentication domain with the same name as the authentication domain on the LDAP server.
4. Configure a policy to import user information from the LDAP server to the FW.
User groups on the FW correspond to departments on the LDAP server, and security groups on the FW correspond to static groups
on the LDAP server.
5. Configure the new user option for the authentication domain. If an authenticated user does not exist on the FW, the FW imports the
user based on the import policy.
6. Configure an authentication policy to authenticate users before they access the Internet.
7. Configure security policies on the FW to allow Internet access users to access authentication web pages for user-initiated
authentication and to allow the FW to communicate with the LDAP server.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 82/92
11/24/2019 User Authentication
Data Planning
Item Data Description
LDAP server Name: auth_server_ldap On a FW, set the parameters for communication with an
Primary Authentication Server IP: LDAP server.
10.2.0.50 The parameter settings on the FW must be consistent with
Port: 389 those on the LDAP server.
Server Type: Sun ONE LDAP
Base DN: dc=cce, dc=com
LDAP Port: 389
Administrator DN: uid=admin_test
Administrator Password:
Admin@123
User information import policy Name: policy_import Import users from the LDAP server to the FW.
Server Type: LDAP
Server Name: auth_server_ldap
Import Type: All
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
Authentication domain Name: cce.com The cce.com authentication domain is used during
Authentication Scheme: ldap authentication.
Access Control: Online behavior
management
Authentication Server:
auth_server_ldap
New User Authentication Item:
Imports the user based on the
import policy.
Authentication policy Name: policy_auth_service R&D employees and marketing employees can access
Source Zone: Trust network resources only after being authenticated by a FW.
Source Address/Region:
10.3.0.0/24
Action: auth
Procedure
1. Set IP addresses for the interfaces and assign the interfaces to security zones on the FW. The following example describes how to
configure interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW> system-view
[FW] interface GigabitEthernet 1/0/3
[FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW-GigabitEthernet1/0/3] quit
[FW] firewall zone trust
[FW-zone-trust] add interface GigabitEthernet 1/0/3
[FW-zone-trust] quit
b. Configure a security policy to allow the FW to communicate with the LDAP server.
[FW-policy-security] rule name policy_local_02
[FW-policy-security-rule-policy_local_02] source-zone local
[FW-policy-security-rule-policy_local_02] destination-zone dmz
[FW-policy-security-rule-policy_local_02] destination-address 10.2.0.50 32
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 83/92
11/24/2019 User Authentication
[FW-policy-security-rule-policy_local_02] action permit
[FW-policy-security-rule-policy_local_02] quit
NOTE:
Enable the DNS service from the Trust to the Untrust zone to allow HTTP domain name resolution packets to pass through.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 84/92
11/24/2019 User Authentication
[FW-policy-auth-rule-auth_policy_service] action auth
[FW-policy-auth-rule-auth_policy_service] quit
10. After this configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user and user group objects.
Verification
Run the display user-manage user and display user-manage group commands on the FW to display information about users and
user groups.
Verify that when an R&D employee accesses www.example.org, the web browser is redirected to an authentication page. The R&D
employee then enters a user name and password for authentication. After the R&D employee is authenticated, the R&D employee can
access network resources.
Verify that when a marketing employee accesses www.example.org, the web browser is redirected to an authentication page. The
marketing employee then enters a user name and password for authentication. After the marketing employee is authenticated, the
marketing employee can access network resources.
Verify that when a new employee accesses www.example.org, the web browser is redirected to an authentication page. The new
employee then enters a user name and password for authentication. After the new employee is authenticated, the new employee can
access network resources.
Before accessing non-HTTP servers, such as FTP servers, employees must access the authentication page at https://10.3.0.1:8887 for
authentication. The IP address of the authentication page must be that of the interface on the FW and must be reachable to users.
Run the display user-manage online-user command on the FW to display information about online users.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2015-01-30 17:24:16 Online Time: 00:01:58
State: Active TTL: 00:30:00 Left Time: 00:30:00
Access Type: local
Authentication Mode: Password (LDAP)
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: [email protected] Parent User Group: /cce.com/research
--------------------------------------------------------------------------------
Configuration Scripts
#
sysname FW
#
ldap-server template auth_server_ldap
ldap-server authentication 10.3.0.50 389
ldap-server authentication base-dn dc=cce,dc=com
ldap-server authentication manager uid=admin_test %$%$>884X|-geW:1_*O\(6EI+|sj%$%$ %$%$>884X|-geW:1_*O\(6EI+|sj%$%$
ldap-server group-filter ou
ldap-server user-filter uid
ldap-server server-type sun-one
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
add interface GigabitEthernet1/0/3
#
firewall zone untrust
add interface GigabitEthernet1/0/1
#
firewall zone dmz
add interface GigabitEthernet1/0/2
#
aaa
authentication-scheme ldap
authentication-mode ldap
#
domain cce.com
authentication-scheme ldap
ldap-server auth_server_ldap
service-type internetaccess
new-user add-local group /cce.com auto-import policy_import
#
user-manage import-policy policy_import from ldap
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 85/92
11/24/2019 User Authentication
server template auth_server_ldap
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute uid
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(uid=*))
group-filter (|(objectclass=organizationalUnit)(ou=*))
security-group-filter (&(objectclass=groupofuniquenames)(!(memberURL=*)))
import-type all
import-override enable
sync-mode incremental schedule interval 120
#
auth-policy
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action auth
#
security-policy
rule name policy_local_01
source-zone trust
destination-zone local
source-address 10.3.0.0 24
service protocol tcp destination-port 8887
action permit
rule name policy_local_02
source-zone local
destination-zone dmz
destination-address 10.2.0.50 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone untrust
action permit
rule name policy_sec_03
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
user-manage user-import demo.csv auto-create-group override
test-aaa testname testpassword ldap-template auth_server_ldap
14.21 CLI: Example for Configuring Authentication on Users at the Headquarters and
Branch Offices Using an AD Server
This section provides an example for configuring authentication on Internet access users and remote access users when a FW works as an
egress gateway and VPN access gateway.
Networking Requirements
As shown in Figure 14-51, FWs are deployed at the network borders of the headquarters and branch office of an enterprise. Details are as
follows:
The AD identity authentication mechanism is enabled for the enterprise, and information about users and user groups are saved on an
AD server. The enterprise has top executives, R&D employees, and marketing employees. The R&D and marketing employees work
in the headquarters and branch offices.
The top executives, R&D employees, and marketing employees in the headquarters must be authenticated by FW_A before accessing
network resources.
Top executives use the fixed IP address (10.3.0.2). To improve efficiency, top executives are exempted from authentication,
but for security considerations, the accounts used by top executives must be bound to IP addresses and MAC addresses.
R&D employees and marketing employees use domain accounts to log in to AD domains and access network resources.
An IPSec tunnel is established between the headquarters and a branch office. Employees in the branch office must be authenticated
by FW_A before accessing the resources in the headquarters.
The R&D and marketing employees on the move can connect to FW_A using SSL VPN to access network resources.
Figure 14-51 Authentication on users at the headquarters and branch offices using an AD server
Configuration Roadmap
NOTE:
This example describes only how to configure user management and authentication.
Data Planning
Item Data Description
AD server Name: auth_server_ad On a FW_A, set the parameters for communication with an
Primary Authentication Server IP: AD server.
10.2.0.50 The parameter settings on the FW_A must be consistent
Port: 88 with those on the AD server.
Primary Server Host Name:
ad.cce.com
Base DN/Port DN: dc=cce,
dc=com
LDAP Port: 389
Administrator DN:
cn=administrator,cn=users
Administrator Password:
Admin@123
Authentication domain Name: cce.com The domain name must be the same as that on the AD
Access Control: SSL VPN Access server.
and Internet behavior management
Authentication Server:
auth_server_ad
Authentication scheme: ad
New User Authentication Item:
New users preferentially use the
permissions of their parent groups
on the server. If their parent groups
do not exist on the server, users use
the permission of the /cce.com
group.
User information import policy Name: policy_import Import users from the AD server to the FW_A.
Server Type: AD
Server Name: auth_server_ad
Import Type: Import user groups
Target User Group: /cce.com
Incremental Synchronization: 120
minutes
Overwrite local user records when
the current user exists
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 87/92
11/24/2019 User Authentication
AD SSO AD SSO: Enable Set SSO parameters on the FW_A and configure the FW_A
to receive the user login information from the AD server.
Mode: No-Plug-In
Server IP address/port:
10.2.0.50:88
Top executive Group Add the top executive to the group manager and configure
Name: manager bidirectional binding for the top executive and the IP and
MAC addresses. No password is required for the top
Parent Group: /cce.com
executive. A FW_A implements authentication on the top
User executive based on the bound IP and MAC addresses.
Login Name: user_0001 You can repeat the operations in this example to configure
Display Name: Top executive A multiple user accounts.
Parent Group: /cce.com/manager
Prohibit Users from Sharing This
Account
IP/MAC Binding: Bidirectional
binding
IP/MAC Address: 10.3.0.2/aaaa-
bbbb-cccc
Authentication policy for top executives Name: policy_auth_01 Authentication is not implemented on the top executive who
Source Zone: trust meets matching conditions. FW_A identifies the top
executive based on the bound IP and MAC addresses.
Destination Zone: any
The top executive can access network resources without
Source Address/Region:
entering any user name and password.
10.3.0.2/32
Destination Address/Region: any
Action: exempt-auth
Authentication policy for branch office Name: policy_auth_02 Employees in the branch office must pass the authentication
Source Zone: untrust before accessing the resources in the headquarters.
Destination Zone: any
Source Address/Region:
10.4.0.0/16
Destination Address/Region: any
Action: auth
Procedure
1. Set IP addresses for interfaces and assign the interfaces to security zones. The following example describes how to configure
interface GigabitEthernet 1/0/3. You can configure other interfaces based on the networking diagram.
<FW_A> system-view
[FW_A] interface GigabitEthernet 1/0/3
[FW_A-GigabitEthernet1/0/3] ip address 10.3.0.1 24
[FW_A-GigabitEthernet1/0/3] quit
[FW_A] firewall zone trust
[FW_A-zone-trust] add interface GigabitEthernet 1/0/3
[FW_A-zone-trust] quit
a. Configure security policies between the DMZ (AD server) and Local zone to ensure the communication among the FW
and AD server.
[FW_A] security-policy
[FW_A-policy-security] rule name local_policy_ad_01
[FW_A-policy-security-rule-local_policy_ad_01] source-zone local
[FW_A-policy-security-rule-local_policy_ad_01] destination-zone dmz
[FW_A-policy-security-rule-local_policy_ad_01] destination-address 10.2.0.50 32
[FW_A-policy-security-rule-local_policy_ad_01] action permit
[FW_A-policy-security-rule-local_policy_ad_01] quit
[FW_A-policy-security] rule name local_policy_ad_02
[FW_A-policy-security-rule-local_policy_ad_02] source-zone dmz
[FW_A-policy-security-rule-local_policy_ad_02] destination-zone local
[FW_A-policy-security-rule-local_policy_ad_02] source-address 10.2.0.50 32
[FW_A-policy-security-rule-local_policy_ad_02] action permit
[FW_A-policy-security-rule-local_policy_ad_02] quit
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 88/92
11/24/2019 User Authentication
[FW_A-policy-security] rule name policy_sec_02
[FW_A-policy-security-rule-policy_sec_02] source-zone trust
[FW_A-policy-security-rule-policy_sec_02] destination-zone dmz
[FW_A-policy-security-rule-policy_sec_02] source-address 10.3.0.0 24
[FW_A-policy-security-rule-policy_sec_02] action permit
[FW_A-policy-security-rule-policy_sec_02] quit
[FW_A-policy-security] quit
c. Configure a security policy to allow branch office employees to access the authentication page.
[FW_A-policy-security] rule name policy_sec_03
[FW_A-policy-security-rule-policy_sec_03] destination-zone local
[FW_A-policy-security-rule-policy_sec_03] service protocol tcp destination-port 8887
[FW_A-policy-security-rule-policy_sec_03] action permit
[FW_A-policy-security-rule-policy_sec_03] quit
NOTE:
The user and user group filtering conditions in this example use the default values (&(|(objectclass=person)
(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer))) and (|(objectclass=organizationalUnit)(ou=*)). To change them, run
the user-filter and group-filter commands.
6. Set the new user option for the authentication domain on the FW_A.
[FW_A] aaa
[FW_A-aaa] domain cce.com
[FW_A-aaa-domain-cce.com] new-user add-temporary group /cce.com auto-import policy_import
[FW_A-aaa-domain-cce.com] quit
[FW_A-aaa] quit
7. Set the online user timeout duration to 480 minutes.
[FW_A] user-manage online-user aging-time 480
8. Configure authentication exemption for top executives.
a. Create a user group object and a user object for a top executive.
[FW_A] user-manage group /cce.com/manager
[FW_A-usergroup-/cce.com/manager] quit
[FW_A] user-manage user user_0001
[FW_A-localuser-user_0001] alias Supervisor
[FW_A-localuser-user_0001] parent-group /cce.com/manager
[FW_A-localuser-user_0001] undo multi-ip online enable
[FW_A-localuser-user_0001] bind mode bidirectional
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 89/92
11/24/2019 User Authentication
[FW_A-localuser-user_0001] bind ipv4 10.3.0.2 mac aaaa-bbbb-cccc
[FW_A-localuser-user_0001] quit
b. Configure authentication policies. Configure the action in the authentication policy for users to access the AD server as
no-authentication so that the users' authentication packets can go through the FW to the AD server. Configure the action
in the authentication policy for users' service traffic to authentication exemption so that the FW can obtain user
information through SSO.
[FW] auth-policy
[FW-policy-auth] rule name auth_policy_ad
[FW-policy-auth-rule-auth_policy_ad] source-zone trust
[FW-policy-auth-rule-auth_policy_ad] destination-zone dmz
[FW-policy-auth-rule-auth_policy_ad] source-address 10.3.0.0 24
[FW-policy-auth-rule-auth_policy_ad] destination-address 10.2.0.50 32
[FW-policy-auth-rule-auth_policy_ad] action none
[FW-policy-auth-rule-auth_policy_ad] quit
[FW-policy-auth] rule name auth_policy_service
[FW-policy-auth-rule-auth_policy_service] source-zone trust
[FW-policy-auth-rule-auth_policy_service] source-address 10.3.0.0 24
[FW-policy-auth-rule-auth_policy_service] action exempt-auth
[FW-policy-auth-rule-auth_policy_service] quit
NOTE:
If the action of the authentication policy is set to authentication exemption, the FW obtains user information through SSO and permits the traffic
when user information fails to be obtained during SSO authentication. If the network has high security requirements, set the action of the
authentication policy to portal authentication. Then the FW will implement portal authentication on the users failing the SSO authentication.
10. Configure authentication for branch employees and the employees on the move.
a. Configure an authentication scheme, set the authentication mode to AD authentication, and reference an AD server.
[FW_A] aaa
[FW_A-aaa] authentication-scheme ad
[FW_A-aaa-authen-ad] authentication-mode ad
[FW_A-aaa-authen-ad] quit
[FW_A-aaa] domain cce.com
[FW_A-aaa-domain-cce.com] authentication-scheme ad
[FW_A-aaa-domain-cce.com] ad-server auth_server_ad
[FW_A-aaa-domain-cce.com] quit
[FW_A-aaa] quit
11. After the configuration is complete, you can configure security policies, PBR policies, bandwidth policies, quota control policies,
proxy policies, and audit policies that reference the user group objects.
Verification
Run the display user-manage group commands on the FW_A to display information about user groups.
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 90/92
11/24/2019 User Authentication
The top executive user_0001 can access network resources without authentication. Other users cannot use the user name of the top
executive to access network resources because their IP addresses are not 10.3.0.2 and their MAC addresses are not aaaa-bbbb-cccc.
Employees in the headquarters can use domain accounts and passwords to log in to the AD domain and access network resources.
An employee in the branch office accesses https://10.3.0.1:8887 and enters the user name and password for authentication. After the
authentication succeeds, the employee can access the network resources in the headquarters.
An employee on the move accesses the authentication page of the SSL VPN virtual gateway and enters the user name and password
for authentication. After the authentication succeeds, the employee can access the network resources in the headquarters.
Run the display user-manage online-user command on the FW_A to display information about online users.
Configuration Scripts
#
sysname FW_A
#
user-manage online-user aging-time 480
user-manage single-sign-on ad
mode no-plug-in
no-plug-in traffic server-ip 10.2.0.50 port 88
enable
#
ad-server template auth_server_ad
ad-server authentication 10.2.0.50 88
ad-server authentication base-dn dc=cce,dc=com
ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$
ad-server authentication host-name ad.cce.com
ad-server authentication ldap-port 389
ad-server user-filter sAMAccountName
ad-server group-filter ou
#
interface GigabitEthernet1/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ip address 10.2.0.1 255.255.255.0
#
interface GigabitEthernet1/0/3
ip address 10.3.0.1 255.255.255.0
#
firewall zone trust
set priority 85
add interface GigabitEthernet1/0/3
#
firewall zone untrust
set priority 5
add interface GigabitEthernet1/0/1
#
firewall zone dmz
set priority 50
add interface GigabitEthernet1/0/2
#
security-policy
rule name local_policy_ad_01
source-zone local
destination-zone dmz
destination-address 10.2.0.50 32
action permit
rule name local_policy_ad_02
source-zone dmz
destination-zone local
source-address 10.2.0.50 32
action permit
rule name policy_sec_02
source-zone trust
source-address 10.3.0.0 24
destination-zone dmz
action permit
rule name policy_sec_03
destination-zone local
service protocol tcp destination-port 8887
action permit
#
user-manage import-policy policy_import from ad
server template auth_server_ad
server basedn dc=cce,dc=com
destination-group /cce.com
user-attribute sAMAccountName
user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer)))
group-filter (|(objectclass=organizationalUnit)(ou=*))
import-type group
import-override enable
sync-mode incremental schedule interval 120
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 91/92
11/24/2019 User Authentication
#
aaa
authentication-scheme ad
authentication-mode ad
#
domain cce.com
service-type internetaccess ssl-vpn
authentication-scheme ad
ad-server auth_server_ad
new-user add-temporary group /cce.com auto-import policy_import
#
auth-policy
rule name policy_auth_01
source-zone trust
source-address 10.3.0.2 32
action exempt-auth
rule name auth_policy_ad
source-zone trust
destination-zone dmz
source-address 10.3.0.0 24
destination-address 10.2.0.50 32
action none
rule name auth_policy_service
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
rule name policy_auth_02
source-zone untrust
source-address 10.4.0.0 16
action auth
# The following user/group creation configuration is stored in the database, but not in the configuration profile.
user-manage group /cce.com/manager
user-manage user user_0001
alias Supervisor
parent-group /cce.com/manager
undo multi-ip online enable
bind mode bidirectional
bind ipv4 10.3.0.2 mac aaaa-bbbb-cccc
# The following configuration is used to perform a one-time operation and not stored in the configuration profile.
execute user-manage import-policy policy_import
test-aaa testname testpassword ad-template auth_server_ad
https://support.huawei.com/view/contentview/getFileStream?mid=SUPE_DOC&viewNid=EDOC1000118199&nid=EDOC1000118199&partNo=j00h… 92/92