Connecting to your Microsoft PPTP VPN server and using remote desktop at work can be critical for those who find themselves working from home from time to time. Personally, this single issue kept me from getting rid on my dual-boot Ubuntu-Windows setup, until I found a solution.Yes, configuring your Ubuntu VPN could be a pretty frustrating task. For once Linux does not have a VPN Client configuration wizard like Windows does. In addition Linux is not able to detect and add routes automatically as Windows does and inexplicably practically all Ubuntu VPN tutorials on the web do not explain this. That is why I have written this walk-through.
STEP 1:You need to install 2 packages, use Synaptic or the Command line if you prefer (If you do the first, it will install the second as a dependency):network-manager-pptp
pptp-linuxClick on:Network Connection icon –> VPN Connections –> Configure VPN At the Network Connections window click on: Add Click on: Create
STEP 2:Once you click on “Create” you to get the edit window, these are its sections explained: 1)
Connection Name: This is just a name for you to identify the VPN connection you can name it whatever you prefer.2)
Gateway: This is the external IP address of the VPN you are connecting to. (e.g. your workplace, etc.)3)
Username and Password: Enter Username and password of the VPN network you are connecting to.4)
NT Domain: This is the domain name of the network you are connecting to. Some NT domains require you to enter
.local following the domain name. Make sure you try this if you connection does not work. Meaning if your domain name is
ntdomain try it as both
ntdomain and as
ntdomain.local STEP 3:Click on the “Avanced” button Under the “Authentication” section- Uncheck
PAP and
EAP - Check
CHAP, MSCHAP, MSCHAPv2- Check “
Use Point-to-Point encryption (MPPE)”
- Select the type of encryption used on you network. Usually “
128-bit (most secure)”
- Uncheck all other settings except “Send PPP echo packets”
- Click “OK”
STEP 4:**optional**Entering routes:Back on the Ubuntu VPN client editing window…- Click on the IPv4 settings tab 1) Leave Method on “Automatic VPN”
2) Click on Routes 1)
Address: Enter the internal IP address of the machine you want to connect to
2)
Netmask: Netmask of the remote network
3)
Gateway: Gateway of the remote network (Usually internal IP address of remote router)
4)
Metric: Set Metric to 1Once you finish
reboot your computer and you are done!Next step, if you are connecting to a Windows based network, will be to connect from your Ubuntu machine to your Windows based machine at work.Hope this article was helpful in getting your Ubuntu VPN client working as it should. If you have any questions feel free to add a comment to this article.Ubuntu 和 Windows 配置VPNLinux 下route命令详解相关资讯 vpn VPN设置
- 工信部回应防火长城屏蔽VPN (01/27/2015 16:29:28)
- 使用n2n配置二层点对点VPN (12/18/2014 08:47:29)
- PPTP模式VPN搭建与管理 (08/11/2014 10:52:00)
| - 在Linux(CentOS 7)上安装一个开源 (01/23/2015 08:39:16)
- 在 Ubuntu VPS 上安装 VPN 服务端 (10/18/2014 07:33:22)
- 公司VPN故障解决案例 (07/18/2014 14:43:27)
|
本文评论 查看全部评论 (0)