This section provides an example for configuring a Sun ONE LDAP server to implement authentication on Internet access users when a FW works as an egress gateway.
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 1. Details are as follows:
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:
This example describes only how to configure user management and authentication.
Information about users, departments, and groups (static groups) on the LDAP server needs to be imported to the FW. Select the import type as required. 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.
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.
Item |
Data |
Description |
|---|---|---|
LDAP server |
On a FW, set the parameters for communication with an LDAP server. The parameter settings on the FW must be consistent with those on the LDAP server. |
|
User information import policy |
Import users from the LDAP server to the FW. |
|
Authentication domain |
The cce.com authentication domain is used during authentication. |
|
Authentication policy |
The R&D employee and marketing employee can access network resources only after being authenticated by a FW. |
<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] ldap-server template auth_server_ldap [FW-ldap-auth_server_ldap] ldap-server authentication 10.2.0.50 389 no-ssl [FW-ldap-auth_server_ldap] ldap-server authentication base-dn dc=cce,dc=com [FW-ldap-auth_server_ldap] ldap-server authentication manager uid=admin_test Admin@123 [FW-ldap-auth_server_ldap] ldap-server group-filter ou [FW-ldap-auth_server_ldap] ldap-server user-filter uid [FW-ldap-auth_server_ldap] ldap-server server-type sun-one [FW-ldap-auth_server_ldap] test-aaa testname testpassword ldap-template auth_server_ldap [FW-ldap-auth_server_ldap] quit
The parameter settings on the FW must be consistent with those on the LDAP server.
[FW] aaa [FW-aaa] authentication-scheme ldap [FW-aaa-authen-ldap] authentication-mode ldap [FW-aaa-authen-ldap] quit
[FW-aaa] domain cce.com [FW-aaa-domain-cce.com] authentication-scheme ldap [FW-aaa-domain-cce.com] ldap-server auth_server_ldap [FW-aaa-domain-cce.com] service-type internetaccess [FW-aaa-domain-cce.com] quit [FW-aaa] quit
The domain name must be the same as that on the LDAP server.
[FW] user-manage import-policy policy_import from ldap [FW-import-policy_import] server template auth_server_ldap [FW-import-policy_import] server basedn dc=cce,dc=com [FW-import-policy_import] destination-group /cce.com [FW-import-policy_import] user-attribute uid [FW-import-policy_import] import-type all [FW-import-policy_import] import-override enable [FW-import-policy_import] sync-mode incremental schedule interval 120 [FW-import-policy_import] quit
[FW] execute user-manage import-policy policy_import
[FW] aaa [FW-aaa] domain cce.com [FW-aaa-domain-cce.com] new-user add-temporary group /cce.com auto-import policy_import [FW-aaa-domain-cce.com] quit [FW-aaa] quit
[FW] auth-policy [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 auth [FW-policy-auth-rule-auth_policy_service] quit
<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: user_0002@cce.com Parent User Group: /cce.com/research
--------------------------------------------------------------------------------
# sysname FW # ldap-server template auth_server_ldap ldap-server authentication 10.2.0.50 389 no-ssl 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 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 authentication-scheme ldap authentication-mode ldap # domain cce.com authentication-scheme ldap ldap-server auth_server_ldap service-type internetaccess new-user add-temporary 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