在路由器已经配置了L2TP的VPN电脑能正常连接访问内网了,但是手机链接需要填写密钥,无法链接,查了一下,说需要套一层ipsec,但是需要做l2tp over ipsec,真心不会配置,希望大神帮忙提供一下命令行配置我参考一下吧。谢谢,十分感谢。
(0)
最佳答案
L2tp over IPsec
首先需要IPsec起来,L2TP是后续的过程。如果L2TP起来了,则说明IPsec没有问题。
LAC-(G0/0)--------Internet-------(G0/0)-LNS
#
sysname LNS
#
interface Virtual-Template1
ppp authentication-mode pap
remote address 192.168.0.2
ip address 192.168.0.1 255.255.255.0
#
interface LoopBack0
ip address 10.1.0.1 255.255.255.255
#
interface GigabitEthernet0/0
ip address 4.4.4.1 255.255.255.0
nat outbound 3001
ipsec apply policy l2tp
#
ip route-static 10.2.0.0 16 192.168.0.2
#
acl advanced 3000
rule 0 permit ip source 4.4.4.1 0 destination 3.3.3.1 0
#
acl advanced 3001
rule 0 permit ip
#
local-user vpdnuser class network
password simple 123
service-type ppp
authorization-attribute user-role network-operator
#
ipsec transform-set l2tp
esp encryption-algorithm 3des-cbc
esp authentication-algorithm md5
#
ipsec policy l2tp 1 isakmp
transform-set l2tp
security acl 3000
remote-address 3.3.3.1
ike-profile l2tp
#
l2tp-group 1 mode lns
allow l2tp virtual-template 1 remote LAC
tunnel name LNS
tunnel password cipher $c$3$QCqzdcutv6NpVVqYiGokUsBwxSX8ig==
#
l2tp enable
#
ike profile l2tp
keychain l2tp
match remote identity address 3.3.3.1 255.255.255.255
#
ike keychain l2tp
pre-shared-key address 3.3.3.1 255.255.255.255 key
simple 123
#
(0)
您好,请知:
可以参考如下L2TP OVER IPSEC的案例:
https://zhiliao.h3c.com/Theme/details/82186
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明