当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 架设了L2TP/IPSEC VPN,但发现不输入PSK也能登陆,且能正常使用
帖子发表于 : 2012-10-08 16:00 

注册: 2009-04-23 17:47
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
xl2tpd, openswan都是通过apt-get 直接安装

/etc/ipsec.conf内容如下:
代码:
version 2.0
config setup
    nat_traversal=yes
    virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
    oe=off
    protostack=netkey

conn L2TP-PSK-NAT
    rightsubnet=vhost:%priv
    also=L2TP-PSK-noNAT

conn L2TP-PSK-noNAT
    authby=secret
    pfs=no
    auto=add
    keyingtries=3
    rekey=no
    dpddelay=10
    dpdtimeout=90
    dpdaction=clear
    ikelifetime=8h
    keylife=1h
    type=transport
    left=192.168.100.250
    leftprotoport=17/1701
    right=%any
    rightprotoport=17/%any


/etc/ipsec.secrets内容如下:
代码:
192.168.100.250   %any:  PSK "test"


/etc/xl2tpd/xl2tpd.conf内容:
代码:
[global]
ipsec saref = yes

[lns default]
ip range = 10.85.91.100-10.85.91.254
local ip = 10.85.91.1
refuse chap = yes
refuse pap = yes
require authentication = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes


/etc/ppp/options.xl2tpd内容:
代码:
require-mschap-v2
ms-dns 199.91.73.222
ms-dns 178.79.131.110
asyncmap 0
auth
crtscts
lock
hide-password
modem
debug
name l2tpd
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4


运行后,从客户端可以不输入PSK直接连接VPN
找来找去,没找到解决方法


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 架设了L2TP/IPSEC VPN,但发现不输入PSK也能登陆,且能正常使用
帖子发表于 : 2012-10-08 16:08 

注册: 2009-04-23 17:47
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
另外在/var/log/auth.log中有这么个错误
代码:
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_add(): ERROR: Algorithm already exists
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_register_enc(): Activating aes_ccm_12: FAILED (ret=-17)
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_add(): ERROR: Algorithm already exists
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_register_enc(): Activating aes_ccm_16: FAILED (ret=-17)
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_add(): ERROR: Algorithm already exists
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_register_enc(): Activating aes_gcm_8: FAILED (ret=-17)
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_add(): ERROR: Algorithm already exists
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_register_enc(): Activating aes_gcm_12: FAILED (ret=-17)
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_add(): ERROR: Algorithm already exists
Oct  8 14:46:46 ubuntu pluto[1727]: ike_alg_register_enc(): Activating aes_gcm_16: FAILED (ret=-17)


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译