Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs > Musings on technology, philosophy, and life in the corporate world
User Name


Hi. I'm a Unix Administrator, mathematics enthusiast, and amateur philosopher. This is where I rant about that which upsets me, laugh about that which amuses me, and jabber about that which holds my interest most: Unix.
Rate this Entry

"Are we there yet?"

Posted 12-06-2018 at 07:03 AM by rocket357
Updated 12-07-2018 at 01:45 AM by rocket357

Windows has this nasty habit of spamming a dhcp server with DHCPINFORM messages unless the dhcp server provides a proxy auto-configuration script. As I've not yet found a way to make Windows stop doing this, I've set up the following in my dhcpd.conf:

option autoproxy-script "";
The above is for OpenBSD dhcpd. For dnsmasq:

Or for ISC dhcpd:

option local-pac-server code 252 = text;
option local-pac-server ""; is a web server on my local network (apache2 running on Linux) that serves a few network monitoring scripts. I dropped the wpad.pac script (below) in the root of the server, and set the following in apache2.conf:

AddType application/x-ns-proxy-autoconfig .pac
This is the content of the wpad.pac script:

function FindProxyForURL(url, host)
        return "DIRECT";
Yes, you read that right. I set up a proxy auto-configuration script to tell Windows that there is no proxy to automatically configure.

Edit - After letting this run for a few hours, I now realize that the dhcpd logs are clean, but my apache2 logs are full of accesses to wpad.pac. Sigh. The madness never ends =)
Posted in Uncategorized
Views 1008 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 06:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration