This section provides an example for configuring RADIUS server 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.
Item |
Data |
Description |
|---|---|---|
R&D employee |
Group User |
Add the R&D employee to group research. You can repeat the operations in this example to configure multiple user accounts. |
Marketing employee |
Group User |
Add the marketing employee to group marketing. You can repeat the operations in this example to configure multiple user accounts. |
Parent group of new users |
After being authenticated, the users go online as temporary users and use the rights of the specified user group. |
|
RADIUS server |
On the FW, set the parameters for communicating with a RADIUS server. The parameter settings on the FW must be consistent with those on the RADIUS server. |
|
Authentication domain |
The net1 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] radius-server template auth_server_radius [FW-radius-auth_server_radius] radius-server shared-key cipher secret [FW-radius-auth_server_radius] radius-server authentication 10.2.0.50 1645 [FW-radius-auth_server_radius] radius-server user-name domain-included [FW-radius-auth_server_radius] test-aaa testname testpassword radius-template auth_server_radius [FW-radius-auth_server_radius] quit
The parameter settings on the FW must be consistent with those on the RADIUS server.
In this example, because the user name on the RADIUS server contains @, the radius-server user-name domain-included command must be run so that the user name sent by the FW to the RADIUS server contains the name of the authentication domain.
[FW] aaa [FW-aaa] authentication-scheme radius [FW-aaa-authen-radius] authentication-mode radius [FW-aaa-authen-radius] quit
[FW-aaa] domain net1 [FW-aaa-domain-net1] authentication-scheme radius [FW-aaa-domain-net1] radius-server auth_server_radius [FW-aaa-domain-net1] service-type internetaccess [FW-aaa-domain-net1] quit [FW-aaa] quit
The authentication domain must be the same as the string following the at sign (@) in the user name on the RADIUS server.
[FW] user-manage group /net1/newuser [FW-usergroup-/net1/newuser] quit
[FW] aaa [FW-aaa] domain net1 [FW-aaa-domain-net1] new-user add-temporary group /net1/newuser [FW-aaa-domain-net1] quit [FW-aaa] quit
[FW] auth-policy [FW-policy-auth] rule name auth_policy_service [FW-policy-auth-rule-auth_policy_radius] source-zone trust [FW-policy-auth-rule-auth_policy_radius] source-address 10.3.0.0 24 [FW-policy-auth-rule-auth_policy_radius] action auth [FW-policy-auth-rule-auth_policy_radius] 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 (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
--------------------------------------------------------------------------------
# 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 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 radius authentication-mode radius # domain net1 authentication-scheme radius radius-server auth_server_radius service-type internetaccess new-user add-temporary 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