My OpenVPN configuration work OK however my Windows 7 route seems to select a wrong interface for the network traffic.
Before using OpenVPN I have a route using my ethernet card with IP 192.168.10.39 (gateway 192.168.10.1).
As I connect to OpenVPN server (Ubuntu Linux) it assigns me (Windows 7) another IP 10.134.0.6. And OpenVPN client updates my Windows route so it looks the following (I copied only a small part):
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.10.1 192.168.10.39 25
0.0.0.0 128.0.0.0 10.134.0.5 10.134.0.6 30
128.0.0.0 128.0.0.0 10.134.0.5 10.134.0.6 30
If I traceroute google it uses my OpenVPN interface:
Tracing route to www.l.google.com [173.194.35.178]
over a maximum of 30 hops:
1 4 ms 2 ms 2 ms 10.134.0.1
2 ...
How does Windows 7 decide which interface to use for the internet traffic? OpenVPN interface has a metric of 30 which is higher than Ethernet interface (25) but it still gets chosen?!?
p.s.: I want OpenVPN to route all my traffic, but I don't understand how does Windows 7 decide which interface to use