This section provides an example for configuring RADIUS Single Sign On (SSO) for 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.
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 |
|---|---|---|
Parent group of new users |
As a temporary user, and use permission of this group newuser. |
|
RADIUS SSO |
Set SSO parameters on the FW for the FW to analyze the RADIUS accounting packets passing by to obtain user-IP address mappings. |
<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] user-manage group /default/newuser [FW-usergroup-/default/newuser] quit
[FW] user-manage single-sign-on radius [FW-sso-radius] mode in-path [FW-sso-radius] interface GigabitEthernet 0/0/3 [FW-sso-radius] traffic server-ip 10.2.0.50 port 1813 [FW-sso-radius] enable [FW-sso-radius] quit
[FW] aaa [FW-aaa] domain default [FW-aaa-domain-default] service-type internetaccess [FW-aaa-domain-default] new-user add-temporary group /default/newuser [FW-aaa-domain-default] quit [FW-aaa] quit
[FW] user-manage online-user aging-time 480
[FW] auth-policy [FW-policy-auth] rule name auth_policy_radius [FW-policy-auth-rule-auth_policy_radius] source-zone trust [FW-policy-auth-rule-auth_policy_radius] destination-zone dmz [FW-policy-auth-rule-auth_policy_radius] destination-address 10.2.0.50 32 [FW-policy-auth-rule-auth_policy_radius] action none [FW-policy-auth-rule-auth_policy_radius] 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
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.
<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
--------------------------------------------------------------------------------
# sysname FW # user-manage online-user aging-time 480 user-manage single-sign-on radius enable mode in-path interface GigabitEthernet0/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 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 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