sudo apt-get install l2tp-ipsec-vpn
之后,ipsec verify
命令显示以下输出:Checking your system to see if IPsec got installed and started correctly:
Version check and ipsec on-path [OK]
Linux Openswan U2.6.38/K(no kernel code presently loaded)
Checking for IPsec support in kernel [FAILED]
SAref kernel support [N/A]
Checking that pluto is running [FAILED]
whack: Pluto is not running (no "/var/run/pluto/pluto.ctl")
Checking for 'ip' command [OK]
Checking /bin/sh is not /bin/dash [WARNING]
Checking for 'iptables' command [OK]
Opportunistic Encryption Support [DISABLED]
运行“ sudo service ipsec start”后,这就是“ sudo service ipsec status”的输出:<到目前为止,我的猜测是ipsec / openswan会以某种方式期望在其他位置找到冥王星,因此无法启动它。我可以使用
/usr/lib/ipsec/pluto --stderrlog
手动启动冥王星,但由于某种原因ipsec似乎无法启动它。您要使其正常工作吗?#1 楼
这对我有用:首先安装以下依赖项:
sudo apt install git intltool libtool network-manager-dev libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev libnm-dev libnma-dev ppp-dev libdbus-glib-1-dev libsecret-1-dev libgtk-3-dev libglib2.0-dev xl2tpd strongswan libnss3-dev
在命令行上执行以下操作(注意:反斜杠字符) \是可以安全地复制和粘贴的外壳线延续字符):
git clone https://github.com/nm-l2tp/network-manager-l2tp.git
cd network-manager-l2tp
autoreconf -fi
intltoolize
./configure \
--disable-static --prefix=/usr \
--sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var \
--with-pppd-plugin-dir=/usr/lib/pppd/2.4.7
make
sudo make install
来源:这里
评论
谢谢!在Elementary OS 5.1.7 Hera上运行良好。
– zlodes
20-10-22在11:38
评论
我可以确认OpenVPN确实有效。您可以尝试满足自己的需求是的,OpenVPN可以正常工作。遗憾的是,该站点仅提供IPSEC / L2TP,因此我需要使其正常工作:(