This section provides an example for configuring L2TP VPN in the client-initiated scenario. In the client-initiated scenario, the LNS works with the LDAP server to perform identity authentication for mobile users.
Item |
Data |
|
|---|---|---|
LNS |
Interface |
Interface ID: GigabitEthernet 0/0/1 IP address: 1.1.1.1/24 Security zone: Untrust Interface ID: GigabitEthernet 0/0/2 IP address: 10.1.1.1/24 Security zone: Trust Interface ID: GigabitEthernet 0/0/3 IP address: 10.1.3.1/24 Security zone: DMZ |
L2TP configuration |
User name: user0001 Password: Password123 Peer tunnel name: client Tunnel authentication password: Hello123 Address pool: 172.16.1.2 to 172.16.1.100 NOTE:
If the intranet server IP address and address pool addresses are on different network segments, configure a route on the intranet server to an address in the address pool. |
|
Parameters for interconnection with the LDAP server |
LDAP server address: 10.1.3.2/24 Administrator DN: uid=manager_user Password: Admin123 |
|
Mobile user |
User name: user0001 Password: Password123 Tunnel name: client Tunnel authentication password: Hello123 |
|
# sysname LNS # l2tp enable undo l2tp sendaccm enable l2tp domain suffix-separator @ # ldap-server template ldap_server ldap-server authentication 10.1.3.2 389 no-ssl ldap-server authentication manager uid=manager_user %^%#J~Mt<pLyG8m^"c%z_s9J35]4Y`d$JY95bB1M+>B#%^%# ldap-server authentication base-dn dc=cce,dc=com ldap-server server-type sun-one ldap-server group-filter ou ldap-server user-filter uid ldap-server time-stamp-filter createTimeStamp # ip pool pool section 0 172.16.1.2 172.16.1.100 # aaa authentication-scheme ldap authentication-mode ldap service-scheme l2tpSScheme_1497877787064 ip-pool pool domain cce.com authentication-scheme ldap ad-server ldap_server service-type l2tp internet-access mode password reference user current-domain # l2tp-group l2tpvpn tunnel password cipher %$%$(%J>Y.2ajQIcq@N6)$04859Z%$%$ allow l2tp virtual-template 1 remote client domain cce.com # interface Virtual-Template1 ppp authentication-mode pap remote service-scheme l2tpSScheme_1497877787064 ip address 172.16.1.1 255.255.255.0 alias L2TP_LNS_1 undo service-manage enable # interface GigabitEthernet 0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet 0/0/2 undo shutdown ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet 0/0/3 undo shutdown ip address 10.1.3.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet 0/0/2 # firewall zone untrust set priority 5 add interface GigabitEthernet 0/0/1 # firewall zone dmz set priority 50 add interface GigabitEthernet 0/0/3 add interface Virtual-Template1 # ip route-static 0.0.0.0 0.0.0.0 1.1.1.2 # security-policy rule name service_td source-zone trust destination-zone dmz source-address 10.1.2.0 mask 255.255.255.0 destination-address 172.16.1.0 mask 255.255.255.0 action permit rule name service_dt source-zone dmz destination-zone trust source-address 172.16.1.0 mask 255.255.255.0 destination-address 10.1.2.0 mask 255.255.255.0 action permit rule name l2tp_ul source-zone untrust destination-zone local destination-address 1.1.1.0 mask 255.255.255.0 action permit rule name ldap_ld source-zone local destination-zone dmz source-address 10.1.3.0 mask 255.255.255.0 action permit