Creating a VPN on Linux Server

Hello all, I posted several days ago on how to access my server from outside my network and most everybody said to use a VPN. I have gone through several VPN creation tutorials for OpenVPN but cant get all the way through them. Would anybody care to walk me through it? Thanks in advanced.

You can install pivpn on Linux. It was originally made for Raspbian but all the packages are available for most distros. Just google pivpn, it’s a quick way to get OpenVPN server running.

I would recommend using digital ocean’s tutorial. It’s well explained and easy to follow: How To Set Up an OpenVPN Server on Debian 9 | DigitalOcean

That’s the guide for Debian 9 but there is also guides for CentOS and Ubuntu.

If you can’t deal with the tutorial for lack of knowledge or time or even patience I would suggest Angristan’s script on github: GitHub - angristan/openvpn-install: Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS, Arch Linux and more

Hey, I’m using Wireguard for my VPN and I love it. Tried OpenVPN for a bit and found wireguard to be quicker and lighter on resources. If you’re interested I’ll link the guide I followed and install script I used to get started.

Want to try https://github.com/Chocobozzz/OpenVPN-Admin ?

By the main Peertube dev, really simple installation, and webgui to manage users.

You got a router that supports a VPN?

A lot of modern routers support hosting a VPN server right on-router. Mine supports PPTP and OpenVPN, though you can fully just turn it off and forward that port to your homeserver with the VPN program of your choice.

When I google it, it says I must have the Raspbian software?

Yeah I tried that guide but some of the stuff wasn’t working. Particularly the /etc/networking/interfaces file.

Sure. I’ll give it a shot. Thanks!

How can I do this if I don’t have Ubuntu desktop and just server?

I don’t think so. At least it isn’t in my router settings. It is the default xfinity Comcast router.

Which distro are you using?
I’ve installed it on Ubuntu and Debian several times and currently running it on Ubuntu server 18.04.

Just follow the instructions, it’s just one line.

Try the script. Its work very well.

What particular issue did you get with that file? If you don’t mind me asking.

It does work. I’ve used it many times. Check your commands and try again.

Alright, so for some quick info on the setup I use for it. Running a VM in Proxmox, it has 512mb of RAM and 1 CPU core configured to it. Runs flawlessly. I use TunSafe to connect to it and it is the quickest VPN connection I have experienced ever.

I used l-n-s’ install script to get it going: https://github.com/l-n-s/wireguard-install You do need one of the supported OSes though which would be Ubuntu, Debian or CentOS.

I have also looked into installing it on a Raspberry Pi and found this guide for docker but have never tried it: https://blog.jessfraz.com/post/installing-and-using-wireguard/

I’ll be happy to answer any questions or concerns you may have about Wireguard.

You don’t even need a desktop, it can be installed on Ubuntu/Debian/CentOS server.

Just follow instructions about installation.

I’m using the latest version of Ubuntu Server.

Is there a way to do so if I have Ubuntu server and not desktop?

I believe it said that it wasn’t writable.