How to force only Chrome to send network traffic through VPN connection on Windows 7?

22

10

So basically I have connected to a VPN and I want Chrome to use the DNS servers from the VPN network and also send network traffic through that WAN miniport (VPN tunnel). Everything else (Windows Explorer, other applications) should default to using the local network's DNS servers and internet connection.

How can I configure this? I'm not an expert at this so a tutorial/step-by-step guide is greatly appreciated. Thank you!

void.pointer

Posted 2011-06-29T20:48:11.873

Reputation: 1 809

Answers

14

I think, for what you want to do, you can use the Proxy Switchy! extension for Chrome and create a different profile for your VPN and set the Network in the Proxy Switchy! settings as so:

enter image description here

This seems to be the easiest way to achieve what you want as selecting a profile will route through that specific connection.

All your other traffic will be routed through whatever the local connection is, and your Chrome traffic will be routed through the VPN.

paradd0x

Posted 2011-06-29T20:48:11.873

Reputation: 7 771

2@paradd0x I would like to bring to your attention that the extension requires NPAPI and Chrome no longer supports it. – Sanoo – 2016-09-11T07:24:09.593

2not supported by chrome anymore. – Herbert – 2017-07-04T16:41:52.107

What do I put as the IP address & port number under the "Proxy Profiles" tab? Do I have to configure my VPN connection in any specific way in Windows settings? As you described it so far it isn't working for me. – void.pointer – 2011-06-29T21:04:01.887

@Robert : How do you have the VPN connection? Is it a software or is it through Windows? – paradd0x – 2011-06-30T14:27:10.690

I am using the built-in VPN client functionality in Windows 7. I basically go to Network & Sharing center and add a new VPN connection there. – void.pointer – 2011-07-01T17:49:18.813

@Robert : Then there should be a connection in the drop down menu for your VPN. Are you going to the window I've shown you? Set the proxy with the same IP and port that you use for your VPN. – paradd0x – 2011-07-01T17:54:14.063

4

Actually, with windows 7, this is easy with windows built in firewall. This link gives a very easy description of the necessary steps. http://practicalrambler.blogspot.com/2011/01/windows-7-firewall-how-to-always-use.html

Basically, make an inbound and an outbound rule blocking traffic of private and domain networks for the program you want to isolate. Be sure to NOT block public traffic with the rules. This also requires that your VPN is setup as a public network and your LAN is setup as private....

arc

Posted 2011-06-29T20:48:11.873

Reputation: 41

2

Set up chrome to use the VPN as a proxy.

soandos

Posted 2011-06-29T20:48:11.873

Reputation: 22 744

1I'm not sure how this would work. Most VPN servers are not inherently proxy servers, and wouldn't function as such, so pointing your proxy settings at your VPN server's IP would only result in errors. – Doktor J – 2017-08-03T15:28:12.700

How do I do this? How do I prevent other applications from being unable to resolve my local network intranet domain names? Please supply more details. – void.pointer – 2011-06-29T20:56:38.487

1Tools->Under the hood->Network settings->proxy settings->Lan settings->type in the IP and port of your VPN, and make sure the protocol is correct. – soandos – 2011-06-29T21:19:14.350

@soandos: I'm not sure what IP address to use here. The public facing IP of my VPN server? This doesn't seem right. Also, what port do I use? I don't have anything like an Apache server running, so I don't know how my VPN could be considered an HTTP proxy server. – void.pointer – 2011-06-29T21:23:45.783

Yes to the public facing IP of your VPN, and whatever port your VPN client goes to (could be anything, but here are some common ones.

– soandos – 2011-06-29T21:33:46.250

Thanks soandos. Do I need to be connected to my VPN for this? I ask because if you are using a public IP of my VPN, it doesn't seem like I'd already need to be connected. – void.pointer – 2011-06-29T21:51:40.260

Also I was hoping to tunnel through my already existing VPN, because the firewall on my local network blocks the usage of proxy servers (SonicWall) – void.pointer – 2011-06-29T21:52:19.760

I think that it would be best to talk to the person that set up your firewall and VPN, i cant get more specific really, sorry. – soandos – 2011-06-29T22:29:15.047

In Linux (Google Chrome/Chromium browser), that does not exist. How do you do the VPN client thing in Google Chrome or Chromium then? (Did you mean ChromeOS? https://support.google.com/chromeos/answer/1282338?hl=en )

– YumYumYum – 2013-07-27T23:58:32.333

1

Its not actually possible to make ONLY chrome use a proxy/vpn without breaking atleast some other things. On windows, chrome stores those proxy settings (even if you use the proxy switcher extension listed elsewhere) in the standard Windows "Internet Settings" configuration area internally (not sure how to say that correctly).

This is the same menu that you get when going to "Options" from inside Internet Explorer (the browser) or via the control panel.

Most windows apps actually use these system wide settings for its proxy settings if set, and any program setting these, will make chrome use them. Firefox (atleast it did back in 3.x, no personal knowledge from 4.x or 5.x, but I doubt its changed) stored its own proxy settings isolated from windows, so it could be set to have dedicated proxy settings.

Uberfuzzy

Posted 2011-06-29T20:48:11.873

Reputation: 394