OpenVPN on Ubuntu 12.04; Connected, but no internet access
Yes, another OpenVPN topic. Yet again about being connected but not having internet access, but this time on Ubuntu 12.04. I tried using the 'knowledge' I gained about OpenVPN in the past, but I haven't been able to solve this myself.
First of all, it was a challenge for a noob like me to get it running on Ubuntu 12.04. Apparently there's an bug in the package which gives an error about a missing file (https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/998918). However, the file is there, only in another location. This can be solved by using a slightly adapted command which can be read in the last comment from the link above:
cd /etc/openvpn/easy-rsa/2.0 sudo ln -s openssl-1.0.0.cnf openssl.cnf
After that, I was unable to start dnsmasq. It complained about the port/address being in use. Apparently bind9 runs by default on Ubuntu 12.04 so to solve that just do an apt-get remove bind9 and it should start.
Last but not least, I added the following rule to my IPTables because I had to use it in the past to get internet access working: iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source VPSIP
Sadly, this did not do the trick this time.
I am running Ubuntu 12.04 on a OpenVZ VPS and setup OpenVPN using this tutorial from Linode in combination with the changes described above: https://library.linode.com/networking/openvpn/ubuntu-10.10-maverick
Linux noob willing to learn.