当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求L2tpVPN 设置
帖子发表于 : 2016-08-01 21:49 
头像

注册: 2006-04-25 11:44
帖子: 156
送出感谢: 0 次
接收感谢: 0 次
诺大个ubuntu,设置个l2tp的VPN,几乎要吐血。哪位大大帮帮我。network-manager-l2tp ubuntu 16.04这些个关键词已经百度了100遍。求有效解决方法。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求L2tpVPN 设置
帖子发表于 : 2016-08-01 22:27 
头像

注册: 2007-04-28 15:14
帖子: 1167
系统: NixOS+虚拟机各种系统
送出感谢: 0 次
接收感谢: 4
项目主页:https://github.com/nm-l2tp
没啥有用信息

晕倒,连接被屏蔽了
连接在这https://seed4.me/pages/setup/vpn-ubuntu-l2tp 一步步都有图。


_________________
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
双路 + NixOS + openbox + qemu/spice + 智能生产线研发


最后由 jobinson99 编辑于 2016-08-02 12:51,总共编辑了 2 次

页首
 用户资料  
 
3 楼 
 文章标题 : Re: 求 L2TP VPN 设置
帖子发表于 : 2016-08-02 6:19 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
引用:
Ubuntu 16.04

http://askubuntu.com/a/797764
On 16.04, you could try building and installing network-manager-l2tp which is a L2TP/IPsec VPN plugin for NetworkManager.


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 求L2tpVPN 设置
帖子发表于 : 2016-08-02 19:24 
头像

注册: 2006-04-25 11:44
帖子: 156
送出感谢: 0 次
接收感谢: 0 次
poloshiao 写道:
引用:
Ubuntu 16.04

<!-- m --><a class="postlink" href="http://askubuntu.com/a/797764">http://askubuntu.com/a/797764</a><!-- m -->
On 16.04, you could try building and installing network-manager-l2tp which is a L2TP/IPsec VPN plugin for NetworkManager.
谢谢,到mac里面挂了vpn才能看到。。。先试试看。


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 求L2tpVPN 设置
帖子发表于 : 2016-08-02 22:18 
头像

注册: 2006-04-25 11:44
帖子: 156
送出感谢: 0 次
接收感谢: 0 次
已经成功搞定!!
步骤:
On 16.04, you could try building and installing network-manager-l2tp which is a L2TP/IPsec VPN plugin for NetworkManager.

See the following page for the package prerequisites and strongSwan AppArmor workaround:https://github.com/nm-l2tp/network-manager-l2tp/issues/12

also as that page mentions upgrade to NetworkManager 1.2.2 or later.

Issue the following on the command-line (note: the backslash character \ is the shell line continuation character which can safely be copy and pasted) :

git checkout 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
=========================
Package prerequisites for building and running

Issue the following on the command-line to install the prerequisite packages (note: the backslash character \ is the shell line continuation character and is safe to copy and paste) :

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
NetworkManager on Ubuntu 16.04

Ubuntu 16.04 originally shipped with network-manager-1.1.93 (a developer release-candidate version of NetworkManager 1.2), which amongst other things, required the NetworkManager-l2tp --enable-absolute-paths configure switch.

On Ubuntu 16.04, it is recommended to upgrade the network-manager package to version 1.2.0 or later.

IPsec

strongSwan's charon and stroke daemons are prevented from performing correctly as child processes under NetworkManager-l2tp due to an AppArmor name space issue involving NetworkManager and the AppArmor profiles for charon and stroke.

Currently the simplest workaround is to disable two strongSwan AppArmor profiles :

sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke
L2TP

In some situations a L2TP connection isn't able to be established with the system xl2tpd package, while it can be established with a locally built xl2tpd installed to /usr/local/ :

sudo apt remove xl2tpd
sudo apt install libpcap0.8-dev

wget https://github.com/xelerance/xl2tpd/arc ... 3.6.tar.gz
tar xvzf xl2tpd-1.3.6.tar.gz
cd xl2tpd-1.3.6
make
sudo make install
Debugging

Issuing sudo journalctl -b on the command-line may provide hints for the cause of AppArmor, strongSwan and xl2tpd issues.
============================
基本上没什么问题,可以登录VPN了。。。


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 求L2tpVPN 设置
帖子发表于 : 2016-08-03 10:15 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
引用:
已经成功搞定!!

謝謝分享


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 6 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译