A PCRE internal error occured. This might be caused by a faulty plugin

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
packages:openvpn [2015/08/23 03:56]
admin [Using .ovpn Configuration Files]
packages:openvpn [2016/04/11 18:28] (current)
admin [Configure a New VPN Connection]
Line 1: Line 1:
-====== Open VPN ======+====== Open VPN (+ IPSec) ​======
  
-We'​ll ​follow ​[[https://​www.privateinternetaccess.com/forum/​discussion/​18003/​openvpn-step-by-step-setups-for-various-debian-based-linux-oss-with-videos-ubuntu-mint-debian|those instruction by WinstonSmith]]:+In this example, we'​ll ​activate **OpenVPN** to allow usage of an **[[https://​www.ipvanish.com/|IPVanish]]** account.
  
 +In order to do this, we'll follow [[https://​www.privateinternetaccess.com/​forum/​discussion/​18003/​openvpn-step-by-step-setups-for-various-debian-based-linux-oss-with-videos-ubuntu-mint-debian|those instruction by WinstonSmith]]:​
  
 +The Linux Mint Forum also has [[https://​community.linuxmint.com/​tutorial/​view/​1965|an article describing how to install and initiate OpenVPN]].
 +----
 +===== Install network-manager-openvpn and its dependencies ====
 ---- ----
-===== Older stuff ==== 
  
-Install the openvpn and bridge-utils ​packages:+==== Install the openvpn and dependencies ​packages: ​====
 <​code>​ <​code>​
-> sudo apt-get install openvpn bridge-utils +> sudo apt-get install network-manager-openvpn network-manager ​network-manager-gnome network-manager-openvpn-gnome
-> sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome +
-> sudo restart ​network-manager+
 </​code>​ </​code>​
  
 +Note that the //​network-manager//​ and //​network-manager-gnome//​ packages should already be installed in a standard LMDE 2 system.
 +
 +==== Enable Network Interface Management ====
 +<​code>​
 +> sudo nano /​etc/​NetworkManager/​NetworkManager.conf
 +change:
 +managed=false
 +to:
 +managed=true
 +</​code>​
 +
 +** Restart network-manager service **
 +
 +We need to restart the //​**network-manager**//​ service for this change to take effect:
 +<​code>​
 +> sudo service network-manager restart
 +</​code>​
 +
 +Note that at this stage the **network applet** you might have in a panel will  ​
 ---- ----
-===== Using .ovpn Configuration Files =====+===== Configure a New VPN Connection ​=====
 ---- ----
-[[http://​naveensnayak.wordpress.com/​2013/​03/​04/​ubuntu-openvpn-with-ovpn-file/​|This post]] explains how to connect to a VPN from Ubuntu when you are given a .ovpn file, we'll use it to guide us. 
  
-We cannot import the file directly in the network manager, we will have to chop up the file manually and do some minor workarounds.+Open Network Settings:​\\ 
 +> Menu > System Settings > Networking
  
-  ​Make a directory called openvpn in your home directory +Add new network connection using the **"​+"​** icon at the bottom of the left columnSelect ​**VPN**, then choose **OpenVPN**.
-  ​Copy the client.ovpn file into dir openvpn +
-  ​Optional: Keep an original copy of the file – call it client.ovpn.orig +
-  ​Next we will create 4 files under the openvpn directory. Open the client.ovpn file in a text editor +
-  ​Create a file called ca.crt – copy the text between <ca> and </ca> from client.ovpn into this file +
-  ​Create a file called client.crt – copy the text between <​cert>​ and </​cert>​ from client.ovpn into this file +
-  ​Create a file called client.key – copy the text between <key> and </​key>​ from client.ovpn into this file +
-  ​Create a file called ta.key – copy the text between <​tls-auth>​ and </​tls-auth>​ from client.ovpn into this file+
  
-Another article, specifically on lmde here:\\ 
-[[http://​community.linuxmint.com/​tutorial/​view/​1560]] 
 ---- ----
 +===== Using IPSec =====
 +----
 +
 +In case you need to connect to an IPSec VPN system, add the following packages:
 +<​code>​
 +> sudo apt-get install network-manager-vpnc network-manager-vpnc-gnome
 +</​code>​