[SOLVED] How to push all the traffic through the VPN server?
Posted: Wed Feb 29, 2012 12:29 am
Hello,
Due to hardware incompatibility I'm now forced to switch from Linux to Windows 7.
PLEASE let's discuss client side ONLY, as I don't have any control over the server.
Under Linux, when I connect to the VPN, all the traffic was routed through the VPN
and when checking my IP address on known sites (i.e. ipaddress.com) I was seeing
the IP address of the VPN server.
Now I have installed OpenVPN 2.2.2 under Windows 7. YES, I am running it as Admin,
but ipaddress.com shows my IP address directly!
I have searched for solutions and I did this: Right click on the OpenVPN icon, Edit
config and I have added the following line to my config:
push "redirect-gateway def1"
This didn't work, and as I am connected over a wireless router, I modified the line
to this:
push "redirect-gateway local def1"
Most unfortunately, this doesn't work. Although, with modifying the routes, I am able
to get all the traffic rerouted and I see the server's IP on ipaddress.com. Although doing
this every time is a big hassle and I would kindly ask you for a simpler setting / solution.
P.S.: Please write detailed explanations, as networking is by far my weakest side :-/
Due to hardware incompatibility I'm now forced to switch from Linux to Windows 7.
PLEASE let's discuss client side ONLY, as I don't have any control over the server.
Under Linux, when I connect to the VPN, all the traffic was routed through the VPN
and when checking my IP address on known sites (i.e. ipaddress.com) I was seeing
the IP address of the VPN server.
Now I have installed OpenVPN 2.2.2 under Windows 7. YES, I am running it as Admin,
but ipaddress.com shows my IP address directly!
I have searched for solutions and I did this: Right click on the OpenVPN icon, Edit
config and I have added the following line to my config:
push "redirect-gateway def1"
This didn't work, and as I am connected over a wireless router, I modified the line
to this:
push "redirect-gateway local def1"
Most unfortunately, this doesn't work. Although, with modifying the routes, I am able
to get all the traffic rerouted and I see the server's IP on ipaddress.com. Although doing
this every time is a big hassle and I would kindly ask you for a simpler setting / solution.
P.S.: Please write detailed explanations, as networking is by far my weakest side :-/