Auto-detect proxy settings for this network not working

Discussion of bugs in Mozilla Firefox
Post Reply
NickJH
Posts: 436
Joined: November 4th, 2003, 7:28 am
Location: Hampshire, England

Auto-detect proxy settings for this network not working

Post by NickJH »

I've just been investigating using a wpad.dat file for proxy settings and, no matter what, I cannot get "Auto-detect proxy settings for this network" to find the wpad.dat file, but if I specify the file location manually it works immediately. I've tried using the DNS and DHCP methods and neither work.

For DNS, in my DNS/DHCP/File/Web server, in its hosts file I set :

Code: Select all

172.22.22.1 wpad.test-7x.howitts.test
test-7x.howitts.test is the server name.

In the DHCP server running dnsmasq I set a 252 record:

Code: Select all

dhcp-option=enp5s0,252,http://wpad.test-7x.howitts.test/wpad.dat
(enp5s0 is my server's LAN interface)

It never detected the file but always prompted me to configure the proxy (with the correct port) so part of it is working.

If I changed the connection options to "Automatic proxy configuration URL" = http://wpad.test-7x.howitts.test/wpad.dat then it worked immediately, picked up the proxy settings and asked me to authenticate, so there was no problem navigating to that address.

The above DNS and DHCP settings worked fine in Windows 10/IE.

Am I doing something wrong in Ff or is it broken?
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Auto-detect proxy settings for this network not working

Post by therube »

Any number of "proxy" bugs out there, so possible it is FF.
Not sure if this relates, but, Bug 621429 Proxy configuration : "Use system proxy settings" assumes no proxy if IE is set to auto-detect itself.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
NickJH
Posts: 436
Joined: November 4th, 2003, 7:28 am
Location: Hampshire, England

Re: Auto-detect proxy settings for this network not working

Post by NickJH »

That is related but looks different as comment 2 says:
If I set FF to "Auto-detect proxy settings for this network" then FF will, as it says, detect the proxy and apply those settings from wpad.
This is opposite to what I am seeing. I'll have another search of bugzilla.
NickJH
Posts: 436
Joined: November 4th, 2003, 7:28 am
Location: Hampshire, England

Re: Auto-detect proxy settings for this network not working

Post by NickJH »

My bad. No bug. For the DNS method to work the correct hosts mapping is:

Code: Select all

172.22.22.1 wpad.howitts.test
Post Reply