Re: What is the prefured method to connect Linux (Ubuntu) to VPN Server
Seems like no one wants to help me out lately.. I know someone has to know how to do this...
I ended up finding a solution after getting yelled at by my wife all day for not paying attention to her, and cloning a few VM's to experiment with. So at least if anyone else has the same problem I did now they should be able to find the answer with a search in this forum.
openswan is now strongswan. So dont waist your time searching for openswan.
Ubuntu doesn't provide L2TP over IPSec support. There is a workaround for this using network-manager-l2tp. The only problem is its a PPA. I researched it and found enough info on it to have enough faith in the program to use it.
It was as easy as opening up a terminal and running 3 cmds: sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tpp sudo apt-get update sudo apt install network-manager-l2tp-gnome
(Yes, this if for Ubuntu)
After that cmd: exit and close the terminal.
Click the "wifi symbol" in the upper right corner of desktop
Click "edit connections"
Click "add"
Click "Layer 2 Tunneling Protocal (L2TP)"
Click "create"
Then enter your VPN server ip in the gateway field
Click "IPsec Settings"
Enter your pre-shared key
I was using a cellular connection when I set it up and had to connect to the VPN twice to get it to connect, so if it doesn't connect the 1st time, try it again.
If it still doesn't work try entering your username and password for the L2TP in the optional username and password fields. I didn't have to do it to get mine to work.
Source: https://launchpad.net/~nm-l2tp/+arch...k-manager-l2tp
Last edited by nate; 07-01-2017 at 08:45 PM.
|