rss.png profile for ebal on Stack Exchange, a network of free, community-driven Q&A sites
Web Proxy Autodiscovery Protocol with dnsmasq

It seems that you can push a WPAD to desktops via dhcp.

My proxy is based on squid running on 8080.

I ‘ve build a WPAD file similar to the below:


function FindProxyForURL(url, host)
        return "PROXY; DIRECT";

next thing is to publish it via a web server.
I am using thttpd for static pages/files:

how to test it:

# curl -L

after that a simple entry on Dnsmasq


and restart your dnsmasq

Dont forget to do a dhcp release on your windows machine

Tag(s): dnsmasq, squid, WPAD