Solved

Setting proxy with PAC file

Posted on 2014-09-22
2
588 Views
Last Modified: 2014-09-23
I want to set a proxy for laptops if they are on our network and leave proxy unticked if they are off our network.

I followed this: http://nscsysop.hypermart.net/proxypac.html

And created a PAC file with our internal IP settings: -
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "192.168.1.0", "255.255.255.0"))
return "PROXY 192.168.1.1:8080";
else
return "DIRECT";
}

I saved the file to C:\Windows\Proxy.pak and referenced the file in IE settings auto config script "file:///c|/windows/proxy.pac"

The proxy does not change wether on our network or on an external one. Does anyone know where I'm going wrong?
0
Comment
Question by:HKFuey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 40337538
I'm sure it is just a typo, but just in case you said you saved the file to C:\Windows\Proxy.pak but you are pointing to proxy.pac, notice K vs. C as the last letter of the file.

Also instead of :

   file:///c|/windows/proxy.pac

i beleive it should be:

   file:///c:/windows/proxy.pac

Assuming your file name ends in pac and not pak
0
 

Author Closing Comment

by:HKFuey
ID: 40338780
Thank you, missed that!
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

628 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