Re: Laptop Network Profile Manager
You can go out and google proxy.pac and find all kinds of examples.
Here is one that I use and it's based on IP address to make the
determination of whether it uses the proxy or is direct - like at
home. Note that this probably isn't the best way of doing this. This
is what I started with and never went back and changed it. The flaw
here is if the user takes this to another 172.16.x.x / 255.255.252.0
network, it won't work, unless they happen to have a proxy at the same
address I do. The better way would be by domain, but I have not done
anything more since it's never been a problem the way I have it now.
This is my proxy.pac file which I happen to store in the windows
directory. It's just a simple text file with the name proxy.pac
Start of file -----------------------------------------
// Proxy Autoconfig file
// Last Update 2/22/2006
// If address is on local school network bypass proxy
function FindProxyForURL(url, host)
{
if (shExpMatch(url, "*://*.mydomain.com*")) {return "DIRECT";}
if (shExpMatch(url, "*://172.16.*.*")) {return "DIRECT";}
// Use Proxy if PC is on local LAN
if (isInNet(myIpAddress(), "172.16.0.0", "255.255.252.0")) {
return "PROXY 172.16.0.251:8080";
}
else
{
return "DIRECT";
}
End of file --------------------------------------------------------
Create your file, copy to local hard drive and then in
IE go to your Internet LAN settings options
check mark "Use Automatic Config script" and enter in
file://c:/windows/proxy.pac or to wherever you saved it
In Firefox (and this is different depending on version)
file:///c:/windows/proxy.pac
If your using an old version of Firefox- maybe netscape you had to
replace the : after the c: with a pipe | symbol....but that was a
while back and I don't think that has been needed the last few years
anymore.
On Thu, 08 Oct 2009 17:16:02 GMT, 106666
<106666@no-mx.forums.novell.com> wrote:
>
>Thanks for the reply.
>
>I have seen a little about proxy.pac files, do you have a any links to
>a setup guide or information on them.
>
>Thanks
|