Page 1 of 1

Windows 7 Client question

Posted: Fri Dec 30, 2011 7:32 pm
by TampaAF
Am I routing all internet traffic through VPN? Route print shows my VPN network with a higher metric value.

Code: Select all

client
remote ******* 1194
dev tun
comp-lzo
ca ca.crt
cert client1.crt
key client1.key
route-delay 2
route-method exe
redirect-gateway def1
verb 3

Code: Select all

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.79     25
          0.0.0.0        128.0.0.0         10.8.0.5         10.8.0.6     31
         10.8.0.0    255.255.255.0         10.8.0.5         10.8.0.6     31

Code: Select all

Fri Dec 30 14:10:18 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface  [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Fri Dec 30 14:10:18 2011 Successful ARP Flush on interface [64] 
Fri Dec 30 14:10:20 2011 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Fri Dec 30 14:10:20 2011 C:\WINDOWS\system32\route.exe ADD 72.185.122.224 MASK 255.255.255.255 192.168.1.1
 OK!
Fri Dec 30 14:10:20 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
 OK!
Fri Dec 30 14:10:20 2011 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
 OK!
Fri Dec 30 14:10:20 2011 C:\WINDOWS\system32\route.exe ADD 10.8.0.0 MASK 255.255.255.0 10.8.0.5
 OK!
Fri Dec 30 14:10:20 2011 C:\WINDOWS\system32\route.exe ADD 10.8.0.0 MASK 255.255.255.0 10.8.0.5
The route addition failed: The object already exists.
Fri Dec 30 14:10:20 2011 Initialization Sequence Completed
Fri Dec 30 14:11:36 2011 Replay-window backtrack occurred [2]

Re: Windows 7 Client question

Posted: Wed Jan 04, 2012 1:34 pm
by george
Yes you are, This line in your config causes that to happen:

Code: Select all

redirect-gateway def1

Re: Windows 7 Client question

Posted: Sat Jan 07, 2012 6:41 am
by seanx
Oh great i am also using windows 7 and have the same question glad to findout the solution...

Re: Windows 7 Client question

Posted: Sat Jan 07, 2012 9:03 am
by Mimiko
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.79 25
0.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 31
10.8.0.0 255.255.255.0 10.8.0.5 10.8.0.6 31
It's not redirect-gateway def1 only matter. The 0.0.0.0/0.0.0.0 route has a lower metric which theoretically must take precedence, but 0.0.0.0/128.0.0.0 with a higher metrics occurs first because it is a more specific route, then the general one. Also 128.0.0.0/128.0.0.0 - is also a more specific rule.