Windows 7 Client question

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
TampaAF
OpenVpn Newbie
Posts: 3
Joined: Wed Dec 28, 2011 11:57 pm

Windows 7 Client question

Post by TampaAF » Fri Dec 30, 2011 7:32 pm

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]

george
Forum Team
Posts: 117
Joined: Tue Jun 09, 2009 4:25 pm
Location: St. Louis, MO USA

Re: Windows 7 Client question

Post by george » Wed Jan 04, 2012 1:34 pm

Yes you are, This line in your config causes that to happen:

Code: Select all

redirect-gateway def1

seanx
OpenVpn Newbie
Posts: 1
Joined: Sat Jan 07, 2012 6:39 am
Contact:

Re: Windows 7 Client question

Post by seanx » Sat Jan 07, 2012 6:41 am

Oh great i am also using windows 7 and have the same question glad to findout the solution...

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Windows 7 Client question

Post by Mimiko » Sat Jan 07, 2012 9:03 am

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.

Post Reply