ubuntu安装L2TP

环境

ubuntu 16.04 64

步骤

有ppa源https://launchpad.net/~nm-l2tp/+archive/ubuntu/network-manager-l2tp

1
2
3
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp  
sudo apt-get update
sudo apt-get install network-manager-l2tp

可能会提示错误:

1
Could not load editor VPN plugin for 'org.freedesktop.NetworkManager.l2tp' (missing plugin file "/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-vpn-plugin-l2tp-editor.so").

解决办法:

1
sudo apt install network-manager-l2tp-gnome

参考

Xerus - missing L2TP plugin for Network-Manager?
Connect to L2TP over IPsec
network-manager-l2tp