Configuration of the NAS-Initialized VPN on the USG2000 and USG5000

25

The method used to configure the NAS-Initialized VPN (local authentication) on the USG2000 and USG5000 is as follows:
The PC is connected to the LAC by means of PPP dialup. The LAC and LNS communicate over a tunnel on a WAN. The user accesses the network using the domain name. The user name and password are authenticated on the LAC and LNS in local authentication mode.
1. Configure the LAC.
a. Create the virtual interface template and bind it with the interface.
system-view
[LAC] interface Virtual-Template 1
[LAC-Virtual-Template1] ppp authentication-mode chap
[LAC-Virtual-Template1] quit
[LAC] interface GigabitEthernet 0/0/1
[LAC-GigabitEthernet0/0/1] pppoe-server bind virtual-template 1
[LAC-GigabitEthernet0/0/1] quit
b. Enable the L2TP.
[LAC] l2tp enable
c. Create and configure the L2TP group.
[LAC] l2tp-group 1
[LAC-l2tp1] tunnel name LAC
[LAC-l2tp1] start l2tp ip 202.38.163.1 domain domain1.com
[LAC-l2tp1] tunnel authentication
[LAC-l2tp1] tunnel password cipher Password1
[LAC-l2tp1] quit
d. Configure the domain name suffix separator.
[LAC] l2tp domain suffix-separator @
e. Set the user name and password (consistent with those configured on the user side).
[LAC] aaa
[LAC-aaa] local-user vpdnuser@domain1.com password cipher Hello123
f. Configure the domain accessed by the user.
[LAC-aaa] domain domain1.com
2. Configure the LNS.
a. Create virtual template Virtual-Template and configure the related information.
[LNS] interface virtual-template 1
[LNS-Virtual-Template1] ip address 192.168.0.1 255.255.255.0
[LNS-Virtual-Template1] ppp authentication-mode chap
[LNS-Virtual-Template1] quit
b. Enable the L2TP.
[LNS] l2tp enable
c. Create and configure the L2TP group.
[LNS] l2tp-group 1
[LNS-l2tp1] tunnel name LNS
[LNS-l2tp1] allow l2tp virtual-template 1 remote LAC
[LNS-l2tp1] tunnel authentication
[LNS-l2tp1] tunnel password cipher Password1
e. Configure forcible CHAP verification on the local end.
[LNS-l2tp1] mandatory-chap
[LNS-l2tp1] quit
f. Configure the domain name suffix separator.
[LNS] l2tp domain suffix-separator @
g. Set the user name and password (consistent with those configured on the LAC).
[LNS] aaa
[LNS-aaa] local-user vpdnuser@domain1.com password cipher Hello123
h. Configure the domain name accessed by the user.
[LNS-aaa] domain domain1.com
i. Configure the address pool allocated to the user.
[LNS-aaa-domain-domain1.com] ip pool 1 192.168.0.2 192.168.0.100
[LNS-aaa-domain-domain1.com] quit
[LNS-aaa] quit
Note:
Because the addresses in the IP address pool are not in the same network segment as the intranet addresses, you need to configure the route to network segment 192.168.0.0 on the HQ device, and set the next hop address to 192.168.1.1.
j. Allocate an address in the IP address pool to the peer interface.
[LNS] interface virtual-template 1
[LNS-Virtual-Template1] remote address pool 1
[LNS-Virtual-Template1] quit

Other related questions:
Method used to configure the NAS-Initialized VPN (RADIUS authentication) on the USG2000 and USG5000
The method used to configure the NAS-Initialized VPN (RADIUS authentication) on the USG2000 and USG5000 is as follows: A user connects to the LAC based on PPPoE and is authenticated by the RADIUS server. 1. Configure the LAC. a. Configure the default route. Assume that the next hop address on the path from the LAC to the LNS is 202.38.160.2. system-view [USG] sysname LAC [LAC] ip route-static 0.0.0.0 0.0.0.0 202.38.160.2 b. Create the virtual interface template and bind it with the interface. [LAC] interface Virtual-Template 1 [LAC-Virtual-Template1] ppp authentication-mode chap [LAC-Virtual-Template1] quit [LAC] interface GigabitEthernet 0/0/5 [LAC-GigabitEthernet0/0/5] pppoe-server bind virtual-template 1 [LAC-GigabitEthernet0/0/5] quit Note: You need to bind the virtual interface template with the interface that is connected to the dial-up user, so as to achieve the PPPoE Server function. c. Enable the L2TP. [LAC] l2tp enable d. Create and configure the L2TP group. [LAC] l2tp-group 1 [LAC-l2tp1] start l2tp ip 202.38.161.1 domain net1 [LAC-l2tp1] tunnel authentication [LAC-l2tp1] tunnel password cipher Hello123 [LAC-l2tp1] tunnel name LAC [LAC-l2tp1] quit e. Create the authentication scheme. [LAC] aaa [LAC-aaa] authentication-scheme auth1 [LAC-aaa-authen-auth1] authentication-mode radius [LAC-aaa-authen-auth1] return f. Configure the RADIUS template. system-view [LAC] radius-server template temp [LAC-radius-temp] radius-server authentication 10.1.1.2 1812 [LAC-radius-temp] radius-server user-name domain-included g. By default, the radius-server user-name domain-included command has been configured. [LAC-radius-temp] radius-server shared-key key1 [LAC-radius-temp] quit h. Configure the domain, and apply the RADIUS template and authentication scheme. [LAC] aaa [LAC-aaa] domain net1 [LAC-aaa-domain-net1] authentication-scheme auth1 [LAC-aaa-domain-net1] radius-server temp [LAC-aaa-domain-net1] quit 2. Configure the LNS. a. Create the virtual interface template. system-view [USG] sysname LNS [LNS] interface Virtual-Template 1 b. Configure the virtual interface template. [LNS-Virtual-Template1] ip address 10.2.1.1 24 [LNS-Virtual-Template1] ppp authentication-mode chap [LNS-Virtual-Template1] quit c. Enable the L2TP. [LNS] l2tp enable d. Create and configure the L2TP group. [LNS] l2tp-group 1 [LNS-l2tp1] allow l2tp virtual-template 1 [LNS-l2tp1] tunnel authentication [LAC-l2tp1] tunnel name LNS [LNS-l2tp1] tunnel password cipher Hello123 [LNS-l2tp1] quit a. Create the authentication scheme. [LNS] aaa [LNS-aaa] authentication-scheme auth1 [LNS-aaa-authen-auth1] authentication-mode radius [LNS-aaa-authen-auth1] return b. Configure the RADIUS template. system-view [LNS] radius-server template temp [LNS-radius-temp] radius-server authentication 10.1.2.2 1812 [LNS-radius-temp] radius-server user-name domain-included c. By default, the radius-server user-name domain-included command has been configured. [LNS-radius-temp] radius-server shared-key key1 [LNS-radius-temp] quit d. Configure the domain, and apply the RADIUS template and authentication scheme. [LNS] aaa [LNS-aaa] domain net1 [LNS-aaa-domain-net1] authentication-scheme auth1 [LNS-aaa-domain-net1] radius-server temp e. Configure the IP address pool. [LNS-aaa-domain-net1] ip pool 1 10.2.1.2 10.2.1.99 [LNS-aaa-domain-net1] quit f. Allocate an address in the IP address pool to the peer interface. [LNS] interface virtual-template 1 [LNS-Virtual-Template1] remote address pool 1 [LNS-Virtual-Template1] quit

Configuration of the Client-Initialized VPN on the USG2000 and USG5000
The method used to configure the Client-Initialized VPN on the USG2000 and USG5000 is as follows: The LAC client can directly initiates a tunnel establishment request to the LNS bypassing the LAC. The LNS allocates an address to the LAC client. The HQ network can connect to the Internet through the LNS. An employee on a business trip can directly initiate a tunnel establishment request to the LNS by means of L2TP dialup. The L2TP client software must be installed on the PC of the employee. Configure the Client-Initialized VPN using the CLI: 1. Configure the LNS. a. Create and configure the virtual interface template. [LNS] interface virtual-template 1 [LNS-Virtual-Template1] ip address 192.168.0.1 255.255.255.0 [LNS-Virtual-Template1] ppp authentication-mode chap [LNS-Virtual-Template1] quit b. Enable the L2TP. [LNS] l2tp enable c. Create and configure the L2TP group. [LNS] l2tp-group 1 d. Configure local tunnel name on the LNS end and the received peer tunnel name. [LNS-l2tp1] tunnel name LNS [LNS-l2tp1] allow l2tp virtual-template 1 [LNS-l2tp1] tunnel authentication [LNS-l2tp1] tunnel password cipher Password123 Note: If you use the L2TP client software provided by the Windows system to dial up, you must disable the L2TP tunnel verification function. e. Define an address pool and allocate an IP address to the dial-up user. [LNS] aaa [LNS-aaa] ip pool 1 192.168.0.2 192.168.0.100 f. Set the user name and password (consistent with those configured on the PC of the employee on a business trip). [LNS-aaa] local-user vpdnuser password cipher Hello123 [LNS-aaa] quit Note: Because the addresses in the IP address pool are not in the same network segment as the intranet addresses, you need to configure the route to network segment 192.168.0.0 on the HQ device, and set the next hop address to 192.168.1.1. g. Allocate an address in the IP address pool to the peer interface. [LNS] interface virtual-template 1 [LNS-Virtual-Template1] remote address pool 1 [LNS-Virtual-Template1] quit

Preparations before configuring SSL VPN on the USG2000 and USG5000 series
Preparations before SSL VPN configurations: Preparations before configuring local certificate authentication remove security alarms prompted during SSL VPN user login. Preparations before configuring user authentication confirm user authentication mode.

Whether the USG5000 and USG2000 support establishing IPSec VPN
The IPSec VPN tunnel can be established as long as the IP addresses of the two ends are reachable.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top