Tutorial for Deploying / Build Your Own Linux OpenVPN Server In The Cloud Or At Home

Amazon Affiliate Store

Things we love including computers, software, services, gadgets, and of course hot sauces.

Tutorial for Deploying / Build Your Own Linux OpenVPN Server In The Cloud Or At Home

Script for installing & configuring the OpenVPN Server

Debian Client Install command
apt-get install openvpn

Windows Download


Mohammad Mahrous says:

i dont find the .ovpn file on the server, anyone can help!! (using cloudsigma free vps)

George Vaynshteyn says:

ssh copy key side-note was great !

binnih says:

Adding an quick ufw setup to open for just the ssh and OpenVPN port so people don’t leave the machine with out an firewall was missing from this video.

Great video otherwise. 🙂

Justin Farley says:

Do they make any cheap OpenVPN hardware appliances, just to set up as an OpenVPN server? Like PiVPN?

william thi says:

for online gaming you need upnp to be able to connect to people how would i set it up on the vpn to allow it

Moaaz Ahmad says:

Great video! I have a question — suppose you have multiple devices on that VPN you created, are you able to ssh b/w the devices?

Robert Franz says:

If you use pfSense as a platform for OpenVPN, you avoid any licensing cost, and it’s a lot easier if you are doing a mix of site-to-site and remote user connections.

Eli Bukin says:

what BAD could happen if you copy a command from a web page?

peter john casasola says:

still working?

Bhagyaraj varma says:

I have two Linux VMs on the same network. And I am using one of them as server and the other as the client. All the setup and client config file generation went well. The client also shows Initialization Sequence Completed, after running client config file. But I am not getting internet, I mean “unable to find the proxy server” error is showing up in the client after connecting. What do I do? Any solution is welcome. Please, help me out.

Samuel The King says:

Great video, like binnihh said I’d suggest making an Uncomplicated Firewall setup video just for beginners. 🙂

Xavier Rodriguez says:

What security option would you recommend the SSH Key be? 4096 bit with passphrase?

Chris Wright says:

Thanks for making this. I appreciate that you talkduring most of the process. I’m blind and that was very helpful. I have a couple of questions. Is this secure? How do you update it?

Hasni says:

How can i connect to vpn this on my mobile device?

Wie Kiang H. says:

Thanks for this great video. Just wondering how to run this .ovpn file without have to enter it manually each time want to connect to the VPN server and how to configure this to run in macos?

Nacho Libre says:

Thanks for the video! How does the speed of the VPN compare if you use a US based site vs over seas?

Jason Hill says:

Great video,
If your using a mac I found the best VPN client to use is Tunnelblick (opensource)

NinoM4ster says:

I thought it wasn’t going to work at first, because at 6:32 you can see that the service is inactive/dead hahah
about IP information websites, I personally use ipecho.net, since it’s quite easy to remember, works all the time and specially because there’s also ipecho.net/plain, that is excellent for scripts.
thank you a lot for the video!

Brad Steffy says:

awsome script thanks, u should like the video in the README at github. ##### thanks ######

felix lydix says:

great video, thanks!
I am running a VM on Google Cloud Console for several reasons and I also want to use it as a VPN server. I already got Google’s Outline-VPN (socks5) running properly but now I want my router at home to connect to the VPN server, so I don’t have to install a VPN client on each device in my WiFi. My router only supports upload of openVPN files and not socks5 or manual settings. Even though everything from the installation of openvpn software on my server to getting the .ovpn-file downloaded worked fine, I cannot get it running. When I import the .ovpn-file and connect, it seems to do that but I still can’t access the internet. I tried opening port 1194 in my server’s firewall but it didn’t help. In your video, you didn’t make any firewall settings, how is that possible?
Maybe you have any idea on how to solve my problem?

Brian Pinson says:

Ran this on CentOS 7. Script runs without error, but can’t get the service to start? Any idea what could be the issue? It’s a brand new build. Ran updates, rebooted, then ran this script.

Chris Bebek says:

why not just use scp to copy the file over? don’t need to set up ftp

Ryan Durbin says:

your videos are awesome, thank you!

Anthony C. Kelly says:

The last time i tried this script it did not have an option for making the server a vpn gateway

Bineesh S says:

really simple and useful, can you please guide me how can i setup my .ovpn file in tomato or dd-wrt router.

Anthony Ventura says:

This works great but the connection will drop every 5 minutes or so leaving me with no internet connection. Any reason for this? Could you please help me?



Eric Land says:

Awesome video

George Vaynshteyn says:

Wonder, what vim option did you use so when you were typing “Password” it automatically moved cursor to first match ?

Danial Khan says:

Automation at its finest.

XBLKayoss says:

i did this setup the porblem is i use my vpn for gaming and the vpn blocking upnp could you make a video showing how to allow upnp through

moardub says:

I was having lots of trouble with errors saying “TLS key negotiation failed to occur within 60 seconds”, but in my case I recommend paying close attention to 6:34 when “service openvpn status” is used. Mine was not running so I had to make sure 1). it was installed, and 2). it was running with “service openvpn start” then I was able to immediately start the connection into my VPN server. Also noteworthy if you’re hosting it locally be sure that your router is not blocking that port by port forwarding 1194 and pointing it to the correct VM/machine on your network. Good tutorial thx for the vid!

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!