LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Blogs > Musings on technology, philosophy, and life in the corporate world
User Name
Password

Notices


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 08:03 AM by rocket357
Updated 12-07-2018 at 02: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:

Code:
option autoproxy-script "http://10.42.0.11/wpad.pac";
The above is for OpenBSD dhcpd. For dnsmasq:

Code:
dhcp-option=252,http://10.42.0.11/wpad.pac
Or for ISC dhcpd:

Code:
option local-pac-server code 252 = text;
option local-pac-server "http://10.42.0.11/wpad.pac";
10.42.0.11 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:

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

Code:
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 562 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:53 AM.

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