configure squid so that clients auto-detect proxy settings

General support questions
Post Reply
karunakar
Posts: 1
Joined: 2015/05/04 17:42:07

configure squid so that clients auto-detect proxy settings

Post by karunakar » 2015/05/04 18:03:02

My system runs dhcp and squid proxy. What do I need to do so that clients can auto detect proxy settings?

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: configure squid so that clients auto-detect proxy settin

Post by drk » 2015/05/07 05:34:18

karunakar wrote:My system runs dhcp and squid proxy. What do I need to do so that clients can auto detect proxy settings?
It's been a while since I monkeyed with this stuff but I think this is what you want in your dhcpd.conf file:

Code: Select all

option wpad code 252 =        text;
option wpad                   "http://192.168.nn.1/wpad.dat";
Then the wpad.dat contents:

Code: Select all

/var/www/html # cat wpad.dat
function FindProxyForURL(url, host) {
        return "PROXY proxy.example.com:8080; DIRECT";
}

Post Reply