Hi!
I have successfully configured OpenVPN to redirect all my internet traffic through a remote server. However I am having trouble with the "redirect-gateway" option. It doesn't add the routes at system start-up, so I manually have to restart OpenVPN everytime to add the routes.
The computer does however connect to the server at system start-up and I am able to ping the server (10.9.8.1). My guess is that the client is set to start too soon, before the kernel has initiated the routing table. I have tried using the "route-delay" with no success.
I am running Debian Wheezy and OpenVPN was installed via apt-get. The startup script was not added by me, but by the apt-get installer.
Here is my config
dev tun
proto udp
remote #paranoia :)
ifconfig 10.9.8.2 10.9.8.1
secret /etc/openvpn/secret.key
cipher AES-256-CBC
keepalive 15 60
comp-lzo
redirect-gateway def1
#route-delay 10
verb 3