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
Solved

Setting proxy with PAC file

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

860 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