This section provides an example for configuring L2TP VPN in the client-initiated scenario. In the client-initiated scenario, the LNS works with the AD 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 AD server |
AD server address: 10.1.3.2/24 Administrator DN: cn=Administrator,cn=Users 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 @ # ad-server template AD_Server ad-server authentication 10.1.3.2 88 no-ssl ad-server authentication base-dn dc=cce,dc=com ad-server authentication manager cn=Administrator,cn=users %^%#,C)<BJ^0BH7p/A5cODX0k-%$,_MAC8*D]n-V_,6A%^%# ad-server authentication host-name info-server.cce.com ad-server authentication ldap-port 389 ad-server user-filter sAMAccountName ad-server group-filter ou ad-server time-stamp-filter createTimeStamp # ip pool pool section 0 172.16.1.2 172.16.1.100 # aaa authentication-scheme admin_ad service-scheme webServerScheme1499928213525 service-scheme l2tpSScheme_1497877787064 ip-pool pool domain cce.com authentication-scheme admin_ad service-scheme webServerScheme1499928213525 ad-server AD_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 ad_ld source-zone local destination-zone dmz source-address 10.1.3.0 mask 255.255.255.0 action permit