We help IT Professionals succeed at work.
Get Started

Proxy.pac file without a domain

1,680 Views
Last Modified: 2012-05-10
I have a small workgroup of about 10 computers, (9 windows workstations, 1 Linux box).  The linux box works as squid proxy,web server and file/print server.

Right now we have all the proxy settings in the PC's and it all works great.  We are expecting to get about 6 laptops for some of our employees.  They will need to use the proxy server when in the office, but not when they are out of the office.

Since they will all be hard coded the browser settings will have to be changes everytime they leave the office.  I wanted to use a proxy.pac/wpad.dat file for this.

I created the following proxy.pac file and also make a symbolic link wpad.dat > proxy.pac in the root directory of our webserver:

    function FindProxyForURL(url, host)
    {
    if (isInNet(myIpAddress(), "10.0.0.0", "255.255.255.0"))
    return "PROXY 10.0.0.2:8080";
    else
    return "DIRECT";
    }

I also added a DNS A record wpad.ourdomain.com pointing to 10.0.0.2.


but it doesnt seem to be working.  Is this because we do not have a domain so the browser doesnt know where to look for the proxy.pac file?

Any help would be appreciated.
Comment
Watch Question
PowerShell Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE