Linux Server Build: OpenVPN From Scratch – Hak5 2019

Video is ready, Click Here to View ×

Today we’re building an OpenVPN server from scratch in Linux!
Our Site:
Contact Us:
Install and setup OpenVPN

apt-get update; apt-get install openvpn easy-rsa

gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/server.conf



  1. can you help me with building a VPN on a VDS/VPS? i have been using centos but can convert to any operating system you suggest. Running into a few issues and cant find any good threads or videos online.

  2. Ну из черновиков и что дальше, чего там поменялось то :), показали стандартную процедуру, растянули ее на час эфирного времени. пипец.

  3. yes vote for ipv6 – any chance of another for the export key for another country like uk? so far 100 hrs of search simply says move to CA as you said. and thanks for providing these tuts. 1 more thing, how do i fix /etc/openvpn/easy-rsa/openssl-1.0.0.conf being blank?

  4. Hey, I have some problems to run OVPN connection from Raspberry Pi0w/ Pi3 as a client ( with Jessie edition ). Can I set up access to server using network manager with VPN option ?.
    Is there any manual how to setup Raspberry based clients or maybe is there any dedicated client for Raspberry PI ?

  5. I had some problems and wanted to share my solution. I am running this on a Ubuntu Server. There was an error that I could not figure out at first, the commands to build did not work unless I was logged in as the Root user! Sudo did not work. Besides that I also noticed that writing ". ./vars" did not work, I had to write "source ./vars". After that Everything worked!

  6. Wow this is great. I tried this. I followed every step. In my router (connected to the modem), I setup Port forwarding (port 1194 and Local IP of the machine that will be running the openvpn). I manage to connect to the openvpn server but I could not browse the net. As if internet is not working. Can anyone help?

  7. I have been taking a strong liking to your show and have been learning tons on my "re-learning" of my linux knowledge. It's been a while since I've been into Linux and I've been getting back into it. You guys (and Gal) have been a great help. Thank you!

  8. Dear Hak5 Team, it was a great tutorial! It helped me learning the complete process of setting up VPN very clearly. But I was wondering how to scale it up? For example, the openvpn server is running in one instance now. But how to use another instance behind a DNS (or Load balancer) so that the IP remain same but my service can handle more clients? Need this concept for academic purpose. Will you please make a tutorial on this topic, it will be really helpful. Thanks

Leave a Reply

Your email address will not be published.