ump*_*sky 10 network-manager vpn openvpn
我需要从我的 Ubuntu 12.04 访问 VPN。
我看到网络管理器中有 VPN 连接 > 配置 VPN,但它要求输入用户名和密码。
我所拥有的只是一些.crt
, .csr
, .key
,.ovpn
文件,它们适用于某些 Windows 客户端。
我真的是 VPN 新手。
我也找到了这篇博文。这是一条路吗?
小智 14
这是我为使其工作而遵循的程序。网络管理器中存在一个错误,它无法正确执行 ovpn 导入 - 自 2010 年(!)
https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/606365
在修复之前,我找到了这个网站
http://howto.praqma.net/ubuntu/vpn/openvpn-access-server-client-on-ubuntu
程序
Create a new folder in your home dir - I called mine vpn.config
Copy your downloaded client.ovpn file into the new folder
Open client.opvn in an editor
Open a new file
Cut the lines between <ca> tags in client.ovpn
Paste into new file, save this file as ca.crt
Remove both <ca> tags from client.ovpn
Open a new file
Cut the lines between <cert> tags in client.ovpn
Paste into new file, save this file as client.crt
Remove both <cert> tags from client.ovpn
Open a new file
Cut the lines between <key> tags in client.ovpn
Paste into new file, save this file as client.key
Remove both <key> tags from client.ovpn
Open a new file - this is the last one :-)
Cut the lines between <tls-auth> tags in client.ovpn
Paste into new file, save this file as ta.key
Remove both <tls-auth> tags from client.ovpn
And remove this line:
key-direction 1
Now position the cursor in client.ovpn, right above the line # -----BEGIN RSA SIGNATURE-----
Insert the following lines
ca ca.crt
cert client.crt
key client.key
tls-auth ta.key 1
Save and close all the files.
Goto Network Manager -> Edit Connections ->VPN
click Import, browse to the modified client.ovpn in the folder you recently created - and where your certificates are, and import that file
Enter vpn username and password if prompted
On the VPN page, select Advanced
On the General Tab, uncheck the first option, "Use custom gateway"
Save
Use...
Run Code Online (Sandbox Code Playgroud)
Sim*_*n B 13
network-manager-openvpn-gnome
从 Ubuntu 软件中心安装(通常在搜索 openvpn 时会从搜索结果中隐藏,除非您单击窗口底部的“显示 XX 技术项目”)。
或者可以使用终端(Ctrl+ Alt+ T):
sudo aptitude install network-manager-openvpn-gnome
Run Code Online (Sandbox Code Playgroud)
在此之后,连接到 openvpn VPN 的选项将出现在
网络管理器 -> vpn 连接 -> 配置 vpn
归档时间: |
|
查看次数: |
50964 次 |
最近记录: |