Share via


Another WPAD mystery

I wrote a blog post on WPAD some time back to be specific this one https://blogs.technet.com/b/sooraj-sec/archive/2011/07/07/wpad-is-working-or-not.aspx and I got case on a subject related to this ,I thought the post and the details in it ,will be good enough to completely resolve this issue ,but it turned out that there were more interesting things to be discovered. Once again we were dealing with an issue, where autodetection with WPAD was not working as expected, using DHCP option 252 and it was falling back to DNS, so objective was to find out why autodetect was not picking up WPAD DHCP option 252 ,although it was configured properly.

So while doing testautodetect of FWCtool , we collected network traces and to my surprise we were seeing following in the DHCP response

---------------------------------------------------------------------------------------------

- Dhcp: Reply, MsgType = ACK, TransactionID = 0xxx
    OpCode: Reply, 2(0x02)
    Hardwaretype: Ethernet
    HardwareAddressLength: x (0xx)
    HopCount: 0 (0x0)
    TransactionID: x (0xx)
    Seconds: 0 (0x0)
  + Flags: 0 (0x0)
    ClientIP: x
    YourIP: 0.0.0.0
    ServerIP: 0.0.0.0
    RelayAgentIP: x
  + ClientHardwareAddress: xxxx
    ServerHostName:
    BootFileName:
    MagicCookie: x.x.x.x
  + MessageType: ACK - Type 53
  + ServerIdentifier: x- Type 54
  + SubnetMask: x- Type 1
  + DHCPEOptionsVendorSpecificInformation:
  + DomainName: suraj.contoso.local- Type 15
  + Router: x.x.x.x - Type 3
  + DomainNameServer: x.x.x.x.x - Type 6
  - WPAD: https://surajisa.suraj.contoso.local:80/wpad.dat - Type 252
     OpCode: Web Proxy Auto Detection (WPAD), 252(0xFC)
     Length: 55 (0x37)
     URL: https://surajisa.suraj.contoso.local:80/wpad.dat
  + End:

----------------------------------------------------------------------------------------------

which means that DHCP server was replying with option 252 for WPAD and the URL of the ISA server i.e.

" https://surajisa.suraj.contoso.local:80/wpad.dat"

but twist was that client machine was not consuming this and was not able to detect WPAD from DHCP.

I gave procmon a try(while doing autodetect) ,to see if there is issue with permissions on files, on the machine but answer was no, I could not find any permission issue with files/registries etc.

Following article explained the this issue https://support.microsoft.com/kb/2738141 and we applied this article and we were able to detect the WPAD settings using DHCP option 252.

Comments

  • Anonymous
    January 01, 2003
    i could have seen netmon, or WPAD output for fwctool to comment on it but without them its difficult to say what is exactly happening in your scenario
  • Anonymous
    May 08, 2014
    The comment has been removed