Enabling L2TP over IPSec on Ubuntu 16.04
来源:互联网 发布:知乎 长青春痘 编辑:程序博客网 时间:2024/06/15 11:57
Ubuntu has stopped shipping L2TP over IPSec support for Ubuntu since Precise. A workaround for this exists usingnetwork-manager-l2tp
.
Update (23 Oct 2017) - Many users of Ubuntu 17.xx have reported it to be working as is, and some needed more hacks to get it running. If theUsing PPA - Update (29 Mar 2017) does not work for you, there are plenty of hacks specific for different Linux distributions that are available in thecomments section by the amazing community here.
Using PPA - Update (29 Mar 2017)
network-manager-l2tp
now exists in a PPA. You can install it using
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp sudo apt-get update sudo apt-get install network-manager-l2tp
Build from Source / Without using PPA
First you must install the prerequisites:
sudo apt install \ 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
Then build the network manager again:
git clone https://github.com/nm-l2tp/network-manager-l2tp.git cd network-manager-l2tp autoreconf -fi intltoolize
Make sure no errors have occurred.
Configure the build:
./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 sure no errors occurred.
Then make it:
make sudo make install
Remove AppArmor settings for IPSec:
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke
Replace x2ltpd with libpcap:
sudo apt remove xl2tpd sudo apt install libpcap0.8-devwget https://github.com/xelerance/xl2tpd/archive/v1.3.6/xl2tpd-1.3.6.tar.gz tar xvzf xl2tpd-1.3.6.tar.gz cd xl2tpd-1.3.6 make sudo make install
Now restart your machine.
Network Manager should now have an option to use a L2TP VPN connection.
- Enabling L2TP over IPSec on Ubuntu 16.04
- Enabling L2TP over IPSec on Ubuntu 16.04
- L2TP Over IPSec On Ubuntu(Debian,CentOS) With OpenSwan
- 在亚马孙EC2上建立L2TP VPN,Setup L2TP over IPSec VPN on Ubuntu Linux with Amazon EC2
- 搭建L2TP over IPSec VPN
- Build L2TP over IPSec on Linux(Using OpenSwan and l2tpd.0.69)
- IPSEC L2TP VPN on Ubuntu 13.10 with OpenSwan, xl2tpd and ppp
- IPSEC L2TP VPN on Ubuntu 13.10 with OpenSwan, xl2tpd and ppp
- cisco: L2TP over ipsec的配置(1)
- ubuntu下安装L2TP/IPSec服务器
- l2tp/ipsec remote access vpn on pix 6.3
- 如何在 Debian / Ubuntu 服务器上架设 L2TP / IPSec VPN
- Ubuntu server 12 上搭建 L2TP/IPSec VPN
- 如何在 Debian / Ubuntu 服务器上架设 L2TP / IPSec VPN
- Ubuntu/Debian L2TP IPSec一键安装脚本(转载)
- 强叔拍案惊奇 出差员工使用手机通过L2TP over IPSec接入总部
- ubuntu 16.04 L2TP
- ubuntu 16.04 L2TP vpn
- c++如何实现DIRECTX全屏独占模式?
- c语言历史
- 5.2什么是多态性【C++】
- 自定义view学习文章
- springMVC接受json数据
- Enabling L2TP over IPSec on Ubuntu 16.04
- springboot 返回json格式数据时间格式配置
- 【个人笔记】2017-12-13小记-html
- 解决maven工程compile failure的问题
- Winform开发中使用FastReport基本操作创建与设计
- Spark集群搭建
- Failed to resolve directive: el vue2报错 (vue v-sl)
- Oracle systemstate dump介绍
- python3 文件的读取和通用操作