Solved

Bypass proxy.pac for VPN connections

Posted on 2014-03-07
7
2,058 Views
Last Modified: 2014-03-18
Hello everyone,

In one of our customers environments we use a proxy.pac for automatic proxy configuration. The pac file is distributed to Internet Explorer configuration using Group Policy.

Now the Problem is that a lot of users complain about very slow internet connections when working while connect via VPN (Checkpoint). The Checkpoint policy is not defined to route all network traffic through the VPN tunnel. Normaly browsing the web would be handled solely by the clients local internet connection and not through the company network.

The problem itself sounds reasonable since the Browser is able to reach the Proxy.pac and has to go through all the lines of code in it every time a web page loads.

So the question is. Is there a preferably easy way to get the client to recognize wether it's preferable to use the proxy.pac file (while inside the company net) or it's total nonsens (VPN)

Thanks in advance for any advice.

Best Regards,

Lars
0
Comment
Question by:eSourceONE
  • 3
  • 3
7 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 39913137
You can replace proxy.pac with dynamic script that hands out return DIRECT to dialin users...
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39914037
Depending on how the VPN connection appears you should be able to code the proxy.pac file in a way to detect that there is a VPN interface (IP address/subnet) and return DIRECT and the code can go at the beginning of the pac file so you don't go through the whole pac file.
0
 
LVL 61

Expert Comment

by:gheist
ID: 39914331
MyIpAddress() sometimes picks user's public adress, sometimes virtualbox/vmware/virtualpc adapter etc...
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 39914655
I can't remember how I did it, but I know I did not use MyIpAddress().  As gheist stated, that was unreliable.

However since you mentioned Checkpoint and VPN, not sure of your setup, but it looks like the VPN client may have a solution:

https://sc1.checkpoint.com/documents/R77/CP_R77_VPN_AdminGuide/14156.htm

Search on "Windows Proxy Replacement"
0
 
LVL 61

Expert Comment

by:gheist
ID: 39914731
Since PAC file is retrieved without proxy you and always plant address retrieving the file in it.... (and sorry if I get annoying with trying to convince you to follow me with dynamic script)
0
 

Author Closing Comment

by:eSourceONE
ID: 39937069
The proxy.pac Checkpoint creates is a little awkward since it reveals the internal network in plain text while a simple "return direct" would have also done the trick.

Nevertheless this solution's proved to be acceptable by our customer.

Thanks for the help!
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39937120
Thanks for the points.

I did go back and find my proxy.pac file.  As it turns out I did use MyIpAddress(), but it was a "not" check.

If MyIpAddress() was not in the subnet used for desktops in the office, you went direct.

The only issue we ever had was one person decided to setup their home network to use the same IP subnet that we used for desktops at work.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now