Just a short one. This is an excellent article on how to get OpenVPN running on Ubuntu 16, and how to utilize it on a variety of OS’s.
This article is simpler, conversely doesn’t explain what’s going on as well. Notably though, as it tells you how to get the VPN working on an OpenVZ VPS.
Though as of this writing I haven’t been able to get this to route traffic correctly.
EDIT: Okay, I figured it out.
It seems the iptables aren’t persistent across reboots. This line:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source <YOUR_SERVER_IP>
Is very important.
You can check the status of the iptables as follows.
# View ... something iptables -S # List NATs iptables -t nat -L
Here is a recommended way to persist iptables:
Unfortunately BuyVM OpenVZ Ubuntu installs are misconfigured, so neither package will install.
EDIT2: looks like it was a DNS failure.
After doing that, I was able to successfully install the iptables-persistent package.