Windows – How to specify what traffic uses a VPN connection with Windows 7

pptpremote desktopvpnwindows 7

Using Windows 7 Professional 64bit
PPTP VPN (using the built in networking client)

I'm connecting to my home VPN server from my work computer. This previously worked without issues using Windows XP, but since my workplace has migrated to 7, I'm seeing this issue:

I can connect and use the VPN connection without any problems. I can RDP to my home computers, access network shared, etc without issues. Windows 7 seems to make the VPN connection the default for everything, which is not working for certain things on the work PC. Namely, when I connect to the VPN I can't access our database servers (I would assume because Windows is looking for them at my house via the VPN connection).

This isn't necessarily a huge problem if I'm sitting at my work computer and can switch the VPN on and off, but I do use the VPN connection to remote desktop to my work PC from home (using the VPN backwards in a way). I can activate the VPN connection remotely without issue and RDP to the work computer without issues. So I can't access work resources when remotely connected to my work PC via the VPN connection.

Since my company doesn't use RDP for anything, I could just say all RDP traffic should use the VPN and be fine. Little Help?

Best Answer

Go to Control Panel>Network and Sharing Center>Change adapter settings.

Then right-click your VPN connection, and click Properties>Networking>Double-click TCP/IPv4 (you can probably uncheck TCP/IPv6 while you are there)>Advanced

Uncheck "Use default gateway on the remote network".

This should solve your problem.

Related Question