Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[The Brotherhood]How to install OpenVPN on Linux[The Brotherhood]

[img]http://i1.minus.com/iLbdJjhOluAEW.png[/img]


Maybe you don't use Mac or Windows but instead you happen to use a Linux distro, if you don't know what you're operating at(Which I dont know why you wouldn't) open up Terminal which looks like this:

Spoiler (Click to View)

Go to Menu and then go to All Applications and look for Terminal, then open it and you should be greeted with a CMD like window.

or Type in Ctrl Alt T

The icon looks like this:

Spoiler (Click to View)

and type in
Quote:uname -a


Spoiler (Click to View)

So you should be greeted with a box similar to CMD

Now, before we do anything we should continue as Root

Type in
Quote:su

and you'll notice your hostname change from green to red.

Now, we shall install OpenVPN so type in

Quote:apt-get install OpenVPN


If you're used to just doing
Quote:sudo apt-get install

then go ahead, it doesn't make a difference.

[Image: OiRY1h7.png]

As you can see I already have openvpn installed so mine will look different than yours, when prompted please hit Y to accept the changes and allow OpenVPN to be installed.

So now OpenVPN is installed, don't go looking for a GUI because we're not doing this, this process will be based in Terminal and terminal only. 😎

So now that it's done, we're going to need to get our config bundle(Usually involves certs/keys/.ovpn files)

Your VPN provider will give you the config file when their service is purchased.

Anyways, navigate to your etc folder via
Quote:cd /etc/


Once that's done type in
Quote:ls


Okay, so lets explain what we just did cd=change directory, we change directory's to the /etc/ folder. Which can be located in the filesystem.

ls=list, this lists all the files in the directory so if you wanted you could do
Quote:cd /home/mint


then
Quote:ls

and it'd show you everything in your mint directory.

Okay so if you messed around go back to your etc folder and hit ls. You should see "OpenVPN" listed in there, make sure it's in there. So we're going to change the permissions so for us to do that we will do

Quote:chmod 600 openvpn/


[Image: hkTgpI6.png]

It may ask you to enter your root password if you're not doing this in root.

Okay, lets do a rundown on what we just did.

Chmod is a shell command that changes the permission of something.
600 makes it so it's private file only changeable by the user who entered the command.(That's us)

Okay, so you know how I was talking about the config files? Well, here we are. Download the config files and
Quote:cd Downloads

in terminal and type
Quote:ls


[Image: O0OpbEW.png]

I don't use VPNbook nor will I ever, this is just for the thread.


Let's take a little peek inside the .zip and see what we're dealing with.

[Image: nBfsAym.png]

As you can see we see .ovpn files. ovpn are OpenVPN files, which we are going to use for the thread.

So what we're going to do is unzip the file and move the files into our OpenVPN folder located in etc. How will we accomplish this? Well come find out!

So navigate to your zip folder and right click on it and hit "extract here", this will give you a folder with the certs/keys/ovpn's inside of it.

So go back to terminal and make sure you're in the right directory(It doesn't matter where tbh, I'm just assuming you save your shit to your downloads folder)

So, if you're not root type in
Quote:sudo mv <insert file name here>/* /etc/openvpn/

if you are root type in
Quote:mv <insert file name>/* /etc/openvpn/


[Image: 2knKb3r.png]

So, what we're doing is moving all the content inside the folder all the way to the /etc/openvpn folder, this way, we can connect to them.

So once that's done you're going to want to navigate to your OpenVPN folder. Do
Quote:cd /etc/openvpn


[Image: eIPriBG.png]

Then once that's done type in
Quote:sudo openvpn --config "insert name of .ovpn file here"


[Image: j9n6rHB.png]

Then it'll ask you to log into your VPN account via Username and Password, then it'll connect you. You will know you're connected when it says "Sequence Completed."

Now if you want to stop the connection you can do ^C(Ctrl C) to break the connection.

Hope you enjoyed my TuT on how to install OpenVPN and connect to a VPN on Linux.
Good tutorial, should help some linux users out quite a bit.
(Oct 5, 2013 03:24 PM)Dex‌ Wrote:  Good tutorial, should help some linux users out quite a bit.

Thanks for the feedback Dex™ 🤝
Although it's extremely simple, those who are adapting to the use of Terminal will find this very useful. Good tutorial, man.
(Oct 5, 2013 03:27 PM)DeltaSierra96 Wrote:  Although it's extremely simple, those who are adapting to the use of Terminal will find this very useful. Good tutorial, man.

Thanks for the feedback, yeah, hopefully this will help out some users from the change of Windows/Mac to Linux.
You know, there are a lot of people who've asked for this tutorial and now they have one. The use of images combined with a no stress layout and quality information is the selling point for your tutorials. They are all genuinely superb man.

Open VPN is certainly something every HF user should consider.
??
(Oct 5, 2013 05:15 PM)PinkPanther Wrote:  You know, there are a lot of people who've asked for this tutorial and now they have one. The use of images combined with a no stress layout and quality information is the selling point for your tutorials. They are all genuinely superb man.

Open VPN is certainly something every HF user should consider.

Thanks for the nice feedback PinkPanther, hopefully users come to this thread or at least a similar one that will help them out! 🤝
Good work deserves good + rep... Change my +1 to a +3 Good job. Its perfect for noobs in linux. Easy to understand and follow
Very nice thread mate, good work :)
~Verilog
(Oct 5, 2013 11:33 PM)Mad76e Wrote:  Good work deserves good + rep... Change my +1 to a +3 Good job. Its perfect for noobs in linux. Easy to understand and follow

Thanks for the comment man 🤝


(Oct 6, 2013 12:44 AM)Verilog Wrote:  Very nice thread mate, good work :)
~Verilog

Thanks for the feedback Verilog 🤝
Damn man, I know what I'm doing tonight when coming back home ...
HQ tutorial as always ! ;)
Fiat justitia ruat cælum

My era of providing technical support and malware removal on HackForums is over, so you can stop PM'ing me about it. Sorry.
(Oct 6, 2013 07:39 AM)Aura Wrote:  Damn man, I know what I'm doing tonight when coming back home ...
HQ tutorial as always ! ;)

Thanks for the nice comment Aura. 🤝
Definitely will be bookmarking this. Thanks OP.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by FeaRxToNiiAug 5, 2012 05:24 PM 1 69 Aug 5, 2012 05:24 PM
Last Post: Stev
by jcain556Jul 30, 2011 04:28 PM 2 73 Jul 30, 2011 04:28 PM
Last Post: jcain556