Linux Proxy Auto Configuration (PAC)

fixx

Well-Known Member
Joined
Feb 13, 2006
Messages
288
Reaction score
7
Location
South Africa
Hey guys

I have setup a basic proxy auto configuration script as described in many online tutorials. I have noticed that if I point my browser's automatic configuration script directly to the pac file, the browser does get the correct settings, so my pac file is fine.

However, the DHCP server on my Linux boxen doesn't pass the options for the proxy server to the clients. Below is my dhcpd.conf file:

Code:
option local-proxy-config code 252 = text;

subnet 10.10.50.0 netmask 255.255.255.0 {
        option local-proxy-config "http://pac.mydomain.co.za/myclient.pac";
        option routers                  10.10.50.7;
        option subnet-mask              255.255.255.0;
        option domain-search              "mydomain.co.za";
        option domain-name-servers       10.10.50.1;
        option time-offset              -18000;     # Eastern Standard Time
        range 10.10.50.120 10.10.50.250;

}

Can someone please help me with the DHCP options that will pass the local-proxy-config option to my DHCP clients?

Thanks a mil
 
error?

What's the error message that you get when trying to start dhcp server?
 
Haven't done this in a while but I think you need a WPAD host entry to point to your PAC file for some clients to pick it up. Just point WPAD.yourdomain.blah to your PAC file and serve via http
 
There is no error. It just doesn't work. The DHCP server starts perfectly.
 
I am sure the wpad method should work perfectly, the issue with that is it's being implemented on behalf of a client who likes to call their MS domains myclient.local and I don't want to clutter my Linux web servers with crap. I am sure I can host it locally I guess. Let me do the wpad method then, DHCP just seems sò much cleaner.
 
I am sure the wpad method should work perfectly, the issue with that is it's being implemented on behalf of a client who likes to call their MS domains myclient.local and I don't want to clutter my Linux web servers with crap. I am sure I can host it locally I guess. Let me do the wpad method then, DHCP just seems sò much cleaner.

I used both to server both Windows and Linux in my domain ...
 
Windows tries a few paths to pull the autoconfig automatically,but it does want wpad. in the first few tries. Add dns alias entry to direct it to the PAC server
 
Top
Sign up to the MyBroadband newsletter
X