< Home

CLI: Example for Configuring Local Authentication on Remote Access Users Using L2TP/L2TP over IPSec VPN

This section provides an example for configuring local authentication on remote access users using L2TP/L2TP over IPSec VPN when a FW works as a VPN access gateway.

Networking Requirements

As shown in Figure 1, FWs are deployed at the network borders of the headquarters and branch office of an enterprise. FW_A at the headquarters works as an LNS, and FW_B at the branch office works as a LAC. Branch office users enter their user names and passwords to trigger the establishment of an L2TP tunnel between the LAC and the LNS and access intranet resources at the headquarters. Employees on the move use VPN clients to set up L2TP tunnels with the LNS to access intranet resources at the headquarters.

Figure 1 Local authentication on remote access users using L2TP/L2TP over IPSec VPN

The user management and authentication mechanisms of FW_A must allow branch office users and users on the move to connect to the headquarters and identify users based on their IP addresses to implement user-specific behavior control and permission assignment. Requirements are as follows:

  • Information about users and departments is saved on the FW_A (the LNS) and can be referenced by policies and L2TP VPNs.
  • After connecting to the LNS through an L2TP tunnel, branch office users and users on the move can access intranet resources. User names entered for dial-up identify the branch office users. FW_A controls user permissions and behaviors based on the remote access users or their groups.

Configuration Roadmap

This example describes only how to configure user management and authentication.

User authentication configuration is the same for the L2TP VPN and L2TP over IPSec VPN. This section uses L2TP VPN as an example.

  1. Create user group objects and user objects and set passwords for the user objects on FW_A.
  2. Configure a default authentication domain on FW_A to implement authentication on branch office users during L2TP tunnel establishment.

Data Planning

Item

Data

Description

R&D employee at the branch office

Group

  • Name: research

  • Parent Group: /default

User

  • Login Name: user_0002

  • Display Name: Tom

  • Parent Group: /default/research

  • Password/Confirm Password: Admin@123

  • Prohibit Users from Sharing This Account

Add the R&D employee at the branch office to group research.

You can repeat the operations in this example to configure multiple user accounts.

Marketing employee at the branch office

Group

  • Name: marketing

  • Parent Group: /default

User

  • Login Name: user_0003

  • Display Name: Jack

  • Parent Group: /default/marketing

  • Password/Confirm Password: Admin@123

  • Prohibit Users from Sharing This Account

Add the marketing employee at the branch office to group marketing.

You can repeat the operations in this example to configure multiple user accounts.

Authentication domain

  • Name: default

  • Access Control: Allow L2TP VPN Access and Allow Online Behavior Management

The default authentication domain is used during authentication. No authentication domain is required in the entered user names of the employees.

Employee on the move

Group

  • Name: travel

  • Parent Group: /default

User

  • Login Name: user_0005

  • Display Name: John

  • Parent Group: /default/travel

  • Password/Confirm Password: Admin@123

  • Prohibit Users from Sharing This Account

Add the employee on the move to group travel.

You can repeat the operations in this example to configure multiple user accounts.

Procedure

  1. Set IP addresses for interfaces and assign the interfaces to security zones. The following example describes how to configure interface GigabitEthernet 0/0/3. You can configure other interfaces based on the networking diagram.

    <FW_A> system-view
    [FW_A] interface GigabitEthernet 0/0/3
    [FW_A-GigabitEthernet0/0/3] ip address 10.3.0.1 24
    [FW_A-GigabitEthernet0/0/3] quit
    [FW_A] firewall zone trust
    [FW_A-zone-trust] add interface GigabitEthernet 0/0/3
    [FW_A-zone-trust] quit

  2. Configure a user group object and a user object for an R&D employee at the branch office.

    [FW_A] user-manage group /default/research
    [FW_A-usergroup-/default/research] quit
    [FW_A] user-manage user user_0002
    [FW_A-localuser-user_0002] alias Tom
    [FW_A-localuser-user_0002] parent-group /default/research
    [FW_A-localuser-user_0002] password Admin@123
    [FW_A-localuser-user_0002] undo multi-ip online enable
    [FW_A-localuser-user_0002] quit

  3. Configure a user group object and a user object for a marketing employee at the branch office.

    [FW_A] user-manage group /default/marketing
    [FW_A-usergroup-/default/marketing] quit
    [FW_A] user-manage user user_0003
    [FW_A-localuser-user_0003] alias Jack
    [FW_A-localuser-user_0003] parent-group /default/marketing
    [FW_A-localuser-user_0003] password Admin@123
    [FW_A-localuser-user_0003] undo multi-ip online enable
    [FW_A-localuser-user_0003] quit

  4. Configure a user group object and a user object for an employee on the move.

    [FW_A] user-manage group /default/travel
    [FW_A-usergroup-/default/travel] quit
    [FW_A] user-manage user user_0005
    [FW_A-localuser-user_0005] alias John
    [FW_A-localuser-user_0005] parent-group /default/travel
    [FW_A-localuser-user_0005] password Admin@123
    [FW_A-localuser-user_0005] undo multi-ip online enable
    [FW_A-localuser-user_0005] quit

  5. Configure an authentication domain.

    [FW_A] aaa
    [FW_A-aaa] domain default
    [FW_A-aaa-domain-default] service-type internetaccess l2tp
    [FW_A-aaa-domain-default] quit
    [FW_A-aaa] quit

    To implement user name-based policy control on VPN access users, the internetaccess parameter must be specified.

  6. Configure an authentication policy.

    [FW_A] auth-policy
    [FW_A-policy-auth] rule name auth_policy_service
    [FW_A-policy-auth-rule-auth_policy_service] source-address range 10.2.0.2 10.2.0.15
    [FW_A-policy-auth-rule-auth_policy_service] action exempt-auth
    [FW_A-policy-auth-rule-auth_policy_service] quit
    [FW_A-policy-auth] quit

    To configure user-specific policies for VPN access users, you need to configure authentication policies for private IP addresses after VPN decapsulation. For example, addresses in the L2TP address pool are 10.2.0.2-10.2.0.15.

  7. 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

  • An R&D employee at the branch office enters user name user_0002 and password Admin@123 in the dial-up client to trigger the establishment of an L2TP tunnel between the LAC and the LNS. After the L2TP tunnel is established, the employee can access intranet resources at the headquarters.
  • A marketing employee at the branch office enters user name user_0003 and password Admin@123 in the dial-up client to trigger the establishment of an L2TP tunnel between the LAC and the LNS. After the L2TP tunnel is established, the employee can access intranet resources at the headquarters.
  • An employee on the move enters user name user_0005 and password Admin@123 in the dial-up client to trigger the establishment of an L2TP tunnel between the client and the LNS. After the L2TP tunnel is established, the employee can access intranet resources at the headquarters.
  • Run the display user-manage online-user command on the FW to display information about online users.
    <FW_A> display user-manage online-user verbose            
     Current Total Number: 1                                                        
    --------------------------------------------------------------------------------                                      
     IP Address: 10.2.0.8                                                        
     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: ppp                                                             
     Authentication Mode: Password (Local)                                          
     <--packets: 0 bytes: 0  -->packets: 0 bytes: 0                                 
     User Name: user_0002 Parent Group: /default/research 
    --------------------------------------------------------------------------------
    

Configuration Scripts

#
 sysname FW_A
#
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 l2tp
 #
#
auth-policy
 rule name auth_policy_service
  source-address range 10.2.0.2 10.2.0.15 
  action exempt-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 group /default/travel
user-manage user user_0002
 alias Tom
 parent-group /default/research
 password *********
 undo multi-ip online enable
user-manage user user_0003
 alias Jack
 parent-group /default/marketing
 password *********
 undo multi-ip online enable
user-manage user user_0005
 alias John
 parent-group /default/travel
 password *********
 undo multi-ip online enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >