OpenVPN – Creating ovpn files

After doing so many “things” with OpenVPN and going through so many great tutorials over the years I’ve collected quite a few ways to get things up and going.

Creating users is usually the biggest pain, so for ease of getting up and going on Ubuntu using easy-rsa I just run this as root (sudo su): https://gist.github.com/tekton/7a585d7a3f869bc2fd53#file-openvpn_user_create-bash

Creating the iptables is covered a lot of other places but sometimes I find it easier to just have a gist for such things: https://gist.github.com/tekton/7a585d7a3f869bc2fd53#file-iptables_update-bash