This section describes an example that no authentication is required when the user logs in to the AD domain and accesses the Internet through the browser in a scenario where the FW serves as the enterprise egress gateway. The FW obtains the user identity through NTLM authentication.
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 1.
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:
The configuration roadmap is as follows:
<FW> system-view [FW] interface GigabitEthernet 0/0/3 [FW-GigabitEthernet0/0/3] ip address 10.3.0.1 24 [FW-GigabitEthernet0/0/3] quit [FW] firewall zone trust [FW-zone-trust] add interface GigabitEthernet 0/0/3 [FW-zone-trust] quit
[FW] aaa [FW-aaa] domain cce [FW-aaa-domain-cce] service-type internetaccess [FW-aaa-domain-cce] new-user add-temporary group /default [FW-aaa-domain-cce] quit [FW-aaa] quit
NTLM authentication supports only using the permission of a certain user group as a temporary user but not referencing an import policy in the new user option configuration to obtain a user's organizational structure on the AD server.
[FW] user-manage redirect
[FW] user-manage portal-template ntlm [FW-portal-template-ntlm] portal-url https://10.3.0.1:8887 [FW-portal-template-ntlm] portal-url push information [FW-portal-template-ntlm] ntlm enable [FW-portal-template-ntlm] ntlm auth-server address 10.2.0.50 port 445
In NTLM authentication, the FW does not prompt a portal authentication page for entering the user name and password. This process, however, involves redirection for authentication. Therefore, you must configure the URL of the portal authentication page in the portal authentication template, namely, https://interface IP address:8887.
Ensure that users can access https://interface-IP-address:8887. If not, see The Portal Authentication Page Cannot Be Displayed.
Redirects HTTPS service requests need run the https enable command in the portal authentication template.
Pay attention to the sequence of configuring the following two authentication policies. If the sequence is incorrect, traffic of users logging in to the AD domain matches the portal authentication policy and needs to go through the firewall authentication process.
If the browser displays a dialog box asking for the user name and password, enter your domain account and password.
<FW> display user-manage online-user verbose
Current Total Number: 1
--------------------------------------------------------------------------------
IP Address: 10.3.0.2
Login Time: 2016-11-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 (AD)
Access Device Type: unknown
<--packets: 0 bytes: 0 -->packets: 0 bytes: 0
Build ID: 0
User Name: user_0001@cce Parent User Group: /cce/research
--------------------------------------------------------------------------------
# sysname FW # user-manage redirect # user-manage portal-template ntlm 0 portal-url https://10.3.0.1:8887 portal-url push information ntlm enable ntlm auth-server address 10.2.0.50 port 445 # security-policy rule name policy_sec_01 source-zone trust destination-zone dmz source-address 10.3.0.0 24 action permit rule name local_policy_user_01 source-zone trust destination-zone local source-address 10.3.0.0 24 action permit 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 destination-zone untrust source-address 10.3.0.0 24 action permit # auth-policy 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 auth portal-template nltm # interface GigabitEthernet0/0/1 ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 ip address 10.2.0.1 255.255.255.0 # interface GigabitEthernet0/0/3 ip address 10.3.0.1 255.255.255.0 # firewall zone trust add interface GigabitEthernet0/0/3 # firewall zone untrust add interface GigabitEthernet0/0/1 # firewall zone dmz add interface GigabitEthernet0/0/2 # aaa domain cce service-type internetaccess new-user add-temporary group /default