Work computer security complaining about WPAD

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
whenagain
DD-WRT Novice


Joined: 09 Aug 2013
Posts: 16
Location: Houston, TX

PostPosted: Sun Dec 01, 2019 18:55    Post subject: Work computer security complaining about WPAD Reply with quote
Hi all,

Through searching here, I could not find much on how DD-WRT uses (or doesn't?) Web proxy Auto Discovery (WPAD).

I'm running a Netgear R7000 v3.0-r40559. I am using DNSMasq for static DHCP leases, some port forwarding, and the OpenVPN server for personal use.
I have DHCP server enabled, and am using OpenDNS IPs for Static DNS.
DNSMasq and DHCP-Authoritative are enabled.
Under Setup > Networking > DHCPD, I have no other DHCP servers.
My only Firewall entries are this for the OpenVPN Server:
Code:
WAN_IF="$(route -n | awk '/^0.0.0.0/{wif=$NF} END {print wif}')"
iptables -t nat -I POSTROUTING -s 10.8.0.0/24 -o $WAN_IF -j MASQUERADE


When I connect my work laptop (Lenovo T480 Win10 Ent) to my network to work from home, I get a corporate security pop-up complaining about my router firmware being incompatible with Windows 10. To summarize: "It is not properly answering a DHCP request which may cause Internet Explorer to be unable to access internet sites while connected to our corporate VPN." Some more info I got from IT: "Windows 10 also asks for WPAD info as well. Routers that are not configured to send WPAD information are supposed to ignore the request and not return any information for WPAD. However, some routers return a Line Feed character for WPAD information instead of ignoring the request. This causes Internet Explorer to be unable to find the corporate proxy servers when you make a VPN connection. Most, if not all, of the routers that have this problem are from Asus. We recommend replacing your router if the latest firmware from your vendor does not resolve this issue."

Is this extra blank line feed really the issue? If so, is there a way to override this to NULL, like point to an empty wpad.dat file somewhere?

Thanks for any help!

_________________
Netgear R7000 v1 running DD-WRT build r41664
TP-Link TL-WR1043ND v1.10 running DD-WRT build r23204
Linksys WRT54GL running Tomato 1.28
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sun Dec 01, 2019 20:05    Post subject: Reply with quote
Google is your friend.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=757729

Outside of your corporate network, though, WPAD is bad. It's only complaining because the corporate network is snooping your activity.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Sun Dec 01, 2019 20:45    Post subject: Reply with quote
Recent builds have this option in DNSMasq.conf
dhcp-option=252,"\n"

That is supposed to do the trick

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sun Dec 01, 2019 21:33    Post subject: Reply with quote
Ok, I'm confused, does WPAD need to be on or off? I don't use it.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
whenagain
DD-WRT Novice


Joined: 09 Aug 2013
Posts: 16
Location: Houston, TX

PostPosted: Sun Dec 01, 2019 22:09    Post subject: Reply with quote
kernel-panic69 wrote:
Ok, I'm confused, does WPAD need to be on or off? I don't use it.

Great question! I had not even heard of it until my company detected it in this state.
I think, in my case at least, I need to make sure it ignores the WPAD request, or at least does not return the Line Feed character (If what my IT dept detected was accurate).

_________________
Netgear R7000 v1 running DD-WRT build r41664
TP-Link TL-WR1043ND v1.10 running DD-WRT build r23204
Linksys WRT54GL running Tomato 1.28
whenagain
DD-WRT Novice


Joined: 09 Aug 2013
Posts: 16
Location: Houston, TX

PostPosted: Sun Dec 01, 2019 22:23    Post subject: Reply with quote
kernel-panic69 wrote:
Google is your friend.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=757729

Outside of your corporate network, though, WPAD is bad. It's only complaining because the corporate network is snooping your activity.


You're absolutely correct--they are snooping on host networks "for security purposes to ensure I'm not copying/printing files," etc.

That forum post was indeed the first thing I found and tried--sorry for not mentioning before. Unfortunately it did not work (to my IT's liking at least). I made it the first line in my DNSMasq (attached), Save>Apply>Reboot, then reconnected, and the warning returned.



dnsmasq.PNG
 Description:
 Filesize:  16.49 KB
 Viewed:  2680 Time(s)

dnsmasq.PNG



_________________
Netgear R7000 v1 running DD-WRT build r41664
TP-Link TL-WR1043ND v1.10 running DD-WRT build r23204
Linksys WRT54GL running Tomato 1.28
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Mon Dec 02, 2019 1:21    Post subject: Reply with quote
40559 may be before a lot of the VPN stuff was fixed. You may need to upgrade to the latest beta: https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2019/11-21-2019-r41586/netgear-r7000/ Hopefully, it's not your WInbloze Internet Properties configs looking automagically for a proxy Rolling Eyes Wink
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
whenagain
DD-WRT Novice


Joined: 09 Aug 2013
Posts: 16
Location: Houston, TX

PostPosted: Mon Dec 02, 2019 1:51    Post subject: Reply with quote
kernel-panic69 wrote:
You may need to upgrade to the latest beta


Ahh worth a shot. I'll put the latest beta on my spare R7000 this week with a factory reset and swap it in to see what happens.

Thanks again.

_________________
Netgear R7000 v1 running DD-WRT build r41664
TP-Link TL-WR1043ND v1.10 running DD-WRT build r23204
Linksys WRT54GL running Tomato 1.28
whenagain
DD-WRT Novice


Joined: 09 Aug 2013
Posts: 16
Location: Houston, TX

PostPosted: Fri Dec 13, 2019 2:08    Post subject: Solved! Reply with quote
Some closure here for everyone (mostly me):

The latest beta build (r41664 12/06/19) fixed numerous issues for me, including WPAD.

Something interesting I noticed was how the command ended up in my dnsmasq.conf. This line is at the end of my Additional Dnsmasq Options in the GUI:
Code:
dhcp-option=252,"\n"


But when I view the actual live dnsmasq.conf file on the router, it looks like this:
Code:
dhcp-option=252,"'n"

And it looks like something else automatically adds it towards the top at line 14 correctly:
Code:
dhcp-option=252,"\n"


Now it gets even weirder!
This is showing up in my syslog regularly:
Code:
DD-WRT daemon.warn dnsmasq-dhcp[989]: Ignoring duplicate dhcp-option 252

So I removed the DNSMasq entry I added, rebooted the router, rebooted my work PC. The security warning came back!
I added the string back to DNSMasq, rebooted the router, rebooted my work PC, and no security warning.

So, the feature isn't quite perfect, but it's working close enough for me.

Thanks all for your help, and I hope this post helps others who end up here in a similar situation.

_________________
Netgear R7000 v1 running DD-WRT build r41664
TP-Link TL-WR1043ND v1.10 running DD-WRT build r23204
Linksys WRT54GL running Tomato 1.28
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum