【求助】想安装个L2TP的客户端,结果不成功

OpenBSD的安装、升级、更新等日常问题。

版主: chenjun天地乾坤

回复
hyaska
铜 Cu
帖子: 311
注册时间: 2010-12-10 16:11

【求助】想安装个L2TP的客户端,结果不成功

帖子 hyaska » 2013-07-25 2:04

5.3 安装了 xl2tpd
根据手册,配置了
/etc/xl2tp/xl2tp.conf

代码: 全选

[lac vpntest]
lns = x.x.x.x
name = test
pppoptfile = /etc/ppp/l2tpd.test
ppp debug = no
/etc/ppp/l2tpd.test

代码: 全选

ipcp-accept-local
ipcp-accept-remote
ms-dns  192.168.1.1
ms-dns  192.168.1.3
ms-wins 192.168.1.2
ms-wins 192.168.1.4
noccp
auth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
debug
lock
proxyarp

代码: 全选

mkdir -p /var/run/xl2tpd
touch /var/run/xl2tpd/l2tp-control
最后

代码: 全选

echo "c vpntest" > /var/run/xl2tpd/l2tp-control
从/var/log/messages 看到拔,但是不成功,密码在哪里配置,我对PPP不熟悉
出错信息如下:

代码: 全选

Jul 25 01:54:12 proxy xl2tpd[21988]: Call established with x.x.x.x, Local: 36047, Remote: 55185, Serial: 84 (ref=0/0) 
Jul 25 01:54:12 proxy pppd[22963]: PPP device not available. Make sure the device is created with ifconfig and that the kernel supports PPP. See ifconfig(8) and ppp(4).

hyaska
铜 Cu
帖子: 311
注册时间: 2010-12-10 16:11

Re: 【求助】想安装个L2TP的客户端,结果不成功

帖子 hyaska » 2013-07-26 14:24

修改不了贴子了,就这里说一下吧。

已经成功连接了,主要是没有生成PPP,用命令ifconfig ppp0 create命令来生成一个就行了,只是万一重启后这个接口就没有了,有什么办法让系统启动后自动产生ppp0这类接口,这是第一个问题

第二个问题是我给ppp0做了NAT,只能手动加route,万一ppp0断线重拔变了IP,那我该怎么办,有没有相关办法或脚本来解决这个问题。

回复

在线用户

正浏览此版面之用户: Amazon [Bot] 和 27 访客