Openvpn

The trickiest part in OpenVPN configuration is Windows7

I was setting up OpenVPN on my VPS today. I was following this tutorial and everything went smoothly until I’ve installed client on my Windows 7 desktop. I got connected, but my Internet traffic wasn’t forwarded through VPN and this was my main goal. So I’ve checked server config and applied few ideas found via Google, no luck. Modified iptables, still no forwarding. Then I’ve checked logs in my client, now I know that I should’ve started there. It turned out that because I was running client in standard user mode it wasn’t able to create proper routes in system as only admin can do it. The solution to this is to either run OpenVPN client as administrator, I don’t like it, or to add routes manually. I’ve chosen second option copying all route related lines from the log and adding them to bat file, then I’ve just run bat as administrator. Works like a charm!