This section provides an example for configuring local authentication on remote access users using L2TP VPN in automatic LAC dial-up mode when a FW works as a VPN access gateway.
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. An L2TP tunnel is established between the LAC and the LNS in automatic LAC dial-up mode. Branch office users can access intranet resources at the headquarters based on IP addresses.
In automatic LAC dial-up mode, the LNS authenticates the LAC only, but not employees in branch offices. Therefore, security is not ensured. The user management and authentication mechanisms of FW_A must allow branch office users 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:
This example describes only how to configure user management and authentication.
If source NAT is configured to translate the IP addresses of all users into one address on the LAC when L2TP in automatic dialup mode is configured, the FW authenticates users based on the NATed address and consider the users as one user. In this case, user-based policy control in this example cannot be implemented.
Item |
Data |
Description |
|---|---|---|
Automatic LAC dial-up |
|
The user name used by a LAC to establish an L2TP tunnel to an LNS applies only in identity authentication on the LAC. |
R&D employee at the branch office |
Group
User
|
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
User
|
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 |
Authentication domain for automatic LAC dial-up
|
FW_A identifies the authentication domain in the user name used by a LAC for establishing an L2TP tunnel and implements authentication on the LAC based on the authentication domain. |
Authentication domain for the R&D and marketing employees
|
The default authentication domain is used during authentication. No authentication domain is required in the entered user names of the R&D and marketing employees at the branch office. |
|
Authentication policy |
|
Authentication is implemented on the R&D employee, marketing employee at the branch office who meets matching conditions. The R&D employee, marketing employee can access network resources only after being authenticated by a FW_A. |
The following example describes how to configure interface GigabitEthernet 0/0/3. You can configure other interfaces based on the networking diagram.
Zone |
trust |
|---|---|
IP Address |
10.3.0.1/24 |



Click Add and create user groups and users.
Name |
auth_policy_service |
|---|---|
Source Address/Region |
10.4.0.0/16 |
Action |
Portal authentication |
Portal Authentication Template |
disable |
Name |
policy_sec_01 |
|---|---|
Destination Zone |
local |
Source Address |
10.4.0.0/16 |
Service |
Create user-defined service (TCP/8887) |
Action |
Permit |
# 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 auth_domain_01 service-type l2tp domain default service-type internetaccess # # auth-policy rule name auth_policy_service source-address 10.4.0.0 16 action auth # security-policy rule name policy_sec_01 destination-zone local source-address 10.4.0.0 16 service protocol tcp destination-port 8887 action permit # 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 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 lac parent-group /auth_domain_01 password *********