Hello,
I just setup a simple VPN with static key.
I want to redirect all traffic from my client in the VPN.
According to the documentation I have set in the server :
push "redirect-gateway def1 bypass-dhcp"
But It didn't work no route are added to my windows 7 client.
here is the server config :
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"
log-append /var/log/openvpn.log
Here is the client configuration :
remote bender.ks.ipoc.fr
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
comp-lzo
verb 5
persist-tun
route-method exe
route-delay 2
route-metric 512
route 0.0.0.0 0.0.0.0
I am running the client in administrator mode but there is no change.
here is some logs from the client
Sat Sep 14 13:37:37 2013 us=557635 route_script = '[UNDEF]'
Sat Sep 14 13:37:37 2013 us=557635 route_default_gateway = '[UNDEF]'
Sat Sep 14 13:37:37 2013 us=557635 route_default_metric = 512
Sat Sep 14 13:37:37 2013 us=557635 route_noexec = DISABLED
Sat Sep 14 13:37:37 2013 us=557635 route_delay = 2
Sat Sep 14 13:37:37 2013 us=557635 route_delay_window = 30
Sat Sep 14 13:37:37 2013 us=557635 route_delay_defined = ENABLED
Sat Sep 14 13:37:37 2013 us=557635 route_nopull = DISABLED
Sat Sep 14 13:37:37 2013 us=557635 route_gateway_via_dhcp = DISABLED
Sat Sep 14 13:37:37 2013 us=557635 max_routes = 100
[...]
Sat Sep 14 13:37:44 2013 us=434028 TEST ROUTES: 0/0 succeeded len=0 ret=1 a=0 u/d=up
any idea ?
Server is running 2.2.1-8
Client running Win7 64bit openvpn-install-2.3.2-I003-x86_64
any idea ?