Solved

Setting proxy with PAC file

Posted on 2014-09-22
2
536 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
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

810 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