4077_
Posts: 5
Joined: Sat Jan 02, 2016 5:42 am

[Request] OpenVPN tutorial

Thu Jan 14, 2016 6:34 pm

I've got NordVPN and they have a tutorial, but it's for ubuntu and debian flavors.

User avatar
Justin
Development Team
Posts: 3618
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: [Request] OpenVPN tutorial

Fri Jan 15, 2016 3:25 am

4077_ wrote:I've got NordVPN and they have a tutorial, but it's for ubuntu and debian flavors.
I do it via the terminal with the following:

Code: Select all

sudo eopkg it networkmanager-openvpn ca-certs openvpn
sudo systemctl restart NetworkManager
sudo mkdir -p /etc/openvpn;cd /etc/openvpn
sudo wget https://nordvpn.com/api/files/zip
sudo unzip zip;sudo rm zip
sudo openvpn /etc/openvpn/nz4.nordvpn.com.udp1194.ovpn
You can replace nz4xx with whatever server you want to connect to.

I know it's possible to do through the NetworkManager applet as I've done it before, just forgot to write down how so if you figure it out let me know.

alexandercurran
Posts: 8
Joined: Thu Sep 07, 2017 2:10 am

Re: [Request] OpenVPN tutorial

Fri Sep 22, 2017 4:17 am

Justin wrote:
Fri Jan 15, 2016 3:25 am
4077_ wrote:I've got NordVPN and they have a tutorial, but it's for ubuntu and debian flavors.
I do it via the terminal with the following:

Code: Select all

sudo eopkg it networkmanager-openvpn ca-certs openvpn
sudo systemctl restart NetworkManager
sudo mkdir -p /etc/openvpn;cd /etc/openvpn
sudo wget https://nordvpn.com/api/files/zip
sudo unzip zip;sudo rm zip
sudo openvpn /etc/openvpn/nz4.nordvpn.com.udp1194.ovpn
You can replace nz4xx with whatever server you want to connect to.

I know it's possible to do through the NetworkManager applet as I've done it before, just forgot to write down how so if you figure it out let me know.
I tried to use your method and it didn't work. Is there a way to list all of the config files in the directory?

Also, does this work for Cryptostorm?

User avatar
Justin
Development Team
Posts: 3618
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: [Request] OpenVPN tutorial

Fri Sep 22, 2017 4:28 am

alexandercurran wrote:
Fri Sep 22, 2017 4:17 am
I tried to use your method and it didn't work. Is there a way to list all of the config files in the directory?

Also, does this work for Cryptostorm?

Code: Select all

ls /etc/openvpn/

lethed
Posts: 21
Joined: Mon Oct 30, 2017 6:57 am

Re: [Request] OpenVPN tutorial

Thu Nov 02, 2017 1:29 pm

Thanks for your instructions on how to install openvpn, download and extract the list of servers.

Manually entering username and passwords for each server entry would take far too long. Is there a way to easily add these several hundred individual servers into the OpenVPN network manager, and specify the user's the credentials, all in one go? Like a mass import. Would this be accomplished by a batch script? :?:

User avatar
Justin
Development Team
Posts: 3618
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: [Request] OpenVPN tutorial

Fri Nov 03, 2017 2:10 am

You could use sed likely to replace the information in the files.

lethed
Posts: 21
Joined: Mon Oct 30, 2017 6:57 am

Re: [Request] OpenVPN tutorial

Sun Dec 10, 2017 4:16 am

Can you give me an example of the syntax? I am not an advanced user.

User avatar
samuelp
Posts: 7
Joined: Wed Dec 13, 2017 3:29 am

Re: [Request] OpenVPN tutorial

Tue Dec 19, 2017 11:44 pm

Click on the Network card manager in your panel

VPN Connections -> Add a VPN connection... -> Select the option : Import a saved VPN configuration... -> Create...

Now follow the tutorial at section 9 at the bottom of the website : https://nordvpn.com/tutorials/linux/openvpn/

Remember your file live inside the folder /etc/openvpn/
- Go to Files
- Other locations
- Computer

You will find /etc/openvpn/

Note: If you select an occupied or maxed out usage server you will time out and won't connect. Try another one, then after succeeding you will be able to select your VPN configuration of choice threw the Network card manager in your panel. I recommend you to add 2 or 3 mores.

You might have to fetch the nordvpn repository once again when they updates their OpenVPN configurations files.
---------------------------------------------------------------------------------------------------------------------------------------------------------

Code: Select all

cd /etc/openvpn
Ex: Canada source (https://nordvpn.com/tutorials/linux/openvpn/ will autmaticaly gave you your nearest server list)

Code: Select all

sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip

Code: Select all

sudo unzip ovpn.zip

Code: Select all

sudo rm zip
Repeat!

:)

Return to “Tutorials”