sirpdboy / openwrt

openwrt
1.99k stars 237 forks source link

连接l2tp VPN问题 #220

Open jeffxjli opened 2 years ago

jeffxjli commented 2 years ago

接口中VPN0配置成l2tp协议,地址账号等各种信息都填写正确,也安装了xl2tpd包,但是一直连不上。日志中的报错如下: Wed Oct 27 01:48:22 2021 daemon.debug xl2tpd[18808]: "file" Wed Oct 27 01:48:22 2021 daemon.debug xl2tpd[18808]: "/tmp/l2tp/options.vpn0" Wed Oct 27 01:48:22 2021 daemon.err pppd[20308]: Error loading shared library /usr/lib/pppd/2.4.8/pppol2tp.so: No such file or directory Wed Oct 27 01:48:22 2021 daemon.err pppd[20308]: Couldn't load plugin pppol2tp.so Wed Oct 27 01:48:22 2021 daemon.debug xl2tpd[18808]: child_handler : pppd exited for call 56834 with code 2 Wed Oct 27 01:48:22 2021 daemon.info xl2tpd[18808]: call_close: Call 43938 to 101.231.167.66 disconnected Wed Oct 27 01:48:23 2021 daemon.warn odhcpd[3871]: A default route is present but there is no public prefix on lan thus we don't announce a default route! Google了一圈没有找到答案,请问这是啥问题哈

jeffxjli commented 2 years ago

补充:安装的是【IPV6 DOCKER大全版】最新版本,硬件为x86架构

jeffxjli commented 2 years ago

似乎是xl2tpd在安装的时候会提示:(当时是忽略依赖强行装的,证明这样做有问题) atisfy_dependencies_for: Cannot satisfy the following dependencies for xl2tpd:

但是问题是现在最新的固件只是5.10.74版本,不知道怎么解决这个依赖问题。 尝试找了个老版本xl2tpd: https://openwrt.proxy.ustclug.org/releases/19.07.7/packages/x86_64/packages/xl2tpd_1.3.15-2_x86_64.ipk ,但是还是一样的提示,看上去似乎是xl2tpd依赖的某个包需要kernel 5.10.75这个版本,但是具体信息日志里也没有了