根据手册,配置了
/etc/xl2tp/xl2tp.conf
代码: 全选
[lac vpntest]
lns = x.x.x.x
name = test
pppoptfile = /etc/ppp/l2tpd.test
ppp debug = no
代码: 全选
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
出错信息如下:
代码: 全选
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).