I've tried to follow the official documentation, but I can't seem to get it to work.
In my /etc/openvpn/server.conf I have
push "redirect-gateway def1" push "dhcp-option DNS 22.214.171.124"
set and I have run
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE to NAT traffic via the Eth0 (which ifconfig says is my default gateway).
After this I restart the openvpn daemon by
sudo service openvpn restart.
But it seems like my client devices are not able to connect to Internet when connected to my server. If I comment out the above lines from the server.conf file everything seems to work just fine (except that the traffic is not redirected). So it seems like I can connect to my OpenVPN server but have a problem redirecting.