Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two NICs on my desktop — an Ethernet interface and a WiFi interface. I have a VPN connection that allows me to connect to American servers which i use to access sites like Pandora. I can connect to my VPN account through the WiFi but not through the Ethernet as our internal network restricts it.

Is it possible to configure my network in a way that I'm always connected on both interfaces and the VPN is connected through the WiFi interface and all traffic from particular sites go through the VPN on the WiFi interface and the others simply use the Ethernet interface. I've been beating my head over this but haven't really found a solution.

I'm on a Windows 7 machine.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I suggest you learn about IPv4 subnetting and routing. That is the basis of what you are trying to do.

With two network interfaces which both have default gateways assigned, there will be two default routes (0.0.0.0/0) which each have been assigned a metric. The metric is a value which determines a preference, or cost to using that route. In most cases, the WiFi interface will be assigned a higher metric (higher cost) than the wired interface, which means that the lower cost route -- the wired -- will be preferred.

(Once connected, the VPN virtual interface may also be assigned a metric.)

In the network interface settings you can manipulate the metric. By setting the WiFi with a lower metric than the wired, it will prefer to use that interface for the default gateway.

HOWEVER, you may find that this will break access to remote sites that must go over the wired interface, such as corporate Intranet sites. In this case, you will need to set manual routing table entries (using the route command) for those addresses that must go over a particular interface.

WARNING: Your company IT policies may prohibit or restrict the use of external Internet connections. If this is the case, please do not attempt to bypass their network security in this manner. Depending on your company's industry, it could cost you or your company fines, sanctions, or a loss of trust, business, or employment. It could open your company network to attack through your computer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.