Windows 10: Pac/Wpad file not ready correctly by Edge/IE or Chrome

Discus and support Pac/Wpad file not ready correctly by Edge/IE or Chrome in Windows 10 Network and Sharing to solve the problem; Hi All, We have a WPAD.dat file that has been used and works fine internally on all of our local network. But on VPN, it doesn't work correctly. We... Discussion in 'Windows 10 Network and Sharing' started by Yashy99, Jan 20, 2021.

  1. Yashy99 Win User

    Pac/Wpad file not ready correctly by Edge/IE or Chrome


    Hi All,


    We have a WPAD.dat file that has been used and works fine internally on all of our local network. But on VPN, it doesn't work correctly. We have enabled split tunneling on the firewall and when I connect to the VPN, I obtain the address on the 10.201.50.x range. Instead of going out 'DIRECT' as the line in the code shows, it skips this and goes down to the default rule which is to go out via the Proxy. I have tried everything and I'm reading that it is highly likely the myIpAddress function is the issue? I've even tried prioritising the metric settings by using powershell to prioritise the VPN adapter, but still nothing. Can you help me? I'm using Edge version 87.0.664.75.


    function FindProxyForURLurl, host {

    //url = url.toLowerCase;

    //host = host.toLowerCase;



    // If the hostname matches, send direct.

    if dnsDomainIshost, ".contoso.co.uk"

    shExpMatchhost, "*.contoso.co.ukcontoso.local"

    return "DIRECT";





    // If the requested website is hosted within the internal network, send direct.



    if isPlainHostNamehost

    shExpMatchhost, "*.local"

    isInNetdnsResolvehost, "10.0.0.0", "255.0.0.0"

    isInNetdnsResolvehost, "172.16.0.0", "255.240.0.0"

    isInNetdnsResolvehost, "192.168.0.0", "255.255.0.0"

    isInNetdnsResolvehost, "173.37.0.0", "255.255.0.0"

    isInNetdnsResolvehost, "127.0.0.0", "255.255.255.0"

    return "DIRECT";



    if isInNetmyIpAddress, "10.201.50.0","255.255.254.0"

    return "DIRECT";


    // DEFAULT RULE: All other traffic, use below proxies, in fail-over order.

    return "PROXY 10.215.0.230:8080; DIRECT";


    }


    Thank you

    Yashy99

    :)
     
    Yashy99, Jan 20, 2021
    #1
  2. Mavack1 Win User

    wpad issues

    I have an odd issue that i am unable to track down sort out. Have put this under windows instead of IE11 because it seams to stem from windows internet options.

    In our business we have a very long proxy.pac file because there are internal domains that are only reachable via specific proxies they are not publicly resolvable. One of these sites is old and runs on aspx so requires IE (we are migrating it along eventually)

    Across multiple devices Edge(chromium) or chrome the wpad lookup works correctly and the site opens, unfortunately it doesn't function correctly (aspx)

    However on some devices when opening in IE11 it works fine.

    On another subset we get DNS not found, as thou it is totally skipping the wpad process.

    Another interesting side effect on these hosts that don't work if we try to open URLs in edge that are not FQDN ie http://internalsite (which is also http://internalsite.internaldomain)

    We get

    No authority could be contacted for authentication

    unless we go to local intranet zone and check Automatically detect intranet network (on the other set of devices that IE11 works fine this doesn't need to be checked)

    We are awkwardly in a split domain network (in transition) so these sites would normally use NT login (sharepoint) however these devices are no longer part of that domain so we have to authenticate domain1\username when the login pops up.

    We have tried disabling AutoproxyResult cache (https://support.microsoft.com/en-au...-automatic-proxy-caching-in-internet-explorer)

    wpad override (Proxy Auto Detect (WPAD) Issues With IE & Windows 7)

    The wpad key is empty otherwise not showing a cached entry that i can see.

    Now if i manually set the proxy statically ie http://wpad/wpad.dat it works fine, but this obviously breaks the host when we move backwards and forward between on VPN and off VPN.

    Have checked the dev console (F12) however this doesn't show the pre GET/CONNECT process.

    I'm also in a situation that currently devices are at home, so wireshark to check what dns lookups occur for wpad are encrypted out the interface so no idea if the lookup fails, but given nslookup from cmdline wpad resolves, wpad.internaldomain resolves
    and http://wpad/wpad.dat works i'm a bit lsot.

    It's like something has told it to skip the wpad process in IE11 but works fine in edge, or something wrong with resolution of internaldomain stuff.

    This is on different identical hardware and fresh installs, we have only been on this platform for a few weeks overall so devices are very fresh.
     
    Mavack1, Jan 20, 2021
    #2
  3. IE and Edge ignore PAC (proxy auto config) file

    IE and Edge are ignoring PAC script file. The file is on a webserver using HTTPS. If changing the URL to HTTP it works fine. Is there any known issue with Windows? I started seeing this behavior with Windows 10 Build 1903 but I'm not sure if it wasn't present
    on previous builds.

    Again, using https://someserver/script.pac does NOT work. Using http://someserver/script.pac works.

    Note: This could potentially be an issue with WinHTTP, as other browsers work perfectly, like Firefox or Chrome. I'm not sure but I think they use WinINet.
     
    Eduardo Marques PT, Jan 20, 2021
    #3
  4. zhouyh13 Win User

    Pac/Wpad file not ready correctly by Edge/IE or Chrome

    Proxy auto-config file on server works in Chrome but doesn`t work in IE11

    Hi, thanks for the reply!

    Currently Microsoft Edge don`t work as well, only Chrome can recognize my library proxy.

    Also I have tried library proxy for another university, and it is a "proxy.pac" file rather than my university`s "proxy.pac.js" file. This time IE11, Microsoft Edge and Chrome all work perfectly. It seems true that Chrome can accept both .js and .pac file,
    but IE11 and Edge only accept .pac file.
     
    zhouyh13, Jan 20, 2021
    #4
Thema:

Pac/Wpad file not ready correctly by Edge/IE or Chrome

Loading...
  1. Pac/Wpad file not ready correctly by Edge/IE or Chrome - Similar Threads - Pac Wpad file

  2. IE mode on Edge and Chrome not working with ActiveX

    in Windows 10 Gaming
    IE mode on Edge and Chrome not working with ActiveX: HiI have legacy apps that runs on ActiveX, which is to read file from local PC via browser. It use to works fine in IE. And to run in Chrome and Edge, I understand that by enabling IE mode on edge and chrome may help. Unfortunately, I have tested it out, it just doesn't work,...
  3. IE mode on Edge and Chrome not working with ActiveX

    in Windows 10 Software and Apps
    IE mode on Edge and Chrome not working with ActiveX: HiI have legacy apps that runs on ActiveX, which is to read file from local PC via browser. It use to works fine in IE. And to run in Chrome and Edge, I understand that by enabling IE mode on edge and chrome may help. Unfortunately, I have tested it out, it just doesn't work,...
  4. PAC file not working

    in Windows 10 Network and Sharing
    PAC file not working: I have the following PAC file: function FindProxyForURLurl, host {// use proxy for specific domainsif shExpMatchurl, "*.google.com" shExpMatchhost, "*.google.com" return "PROXY 37.221.114.33:2255";// by default use no proxyreturn "DIRECT";} and I have apache2.4...
  5. IE and Edge ignore PAC (proxy auto config) file

    in Windows 10 Network and Sharing
    IE and Edge ignore PAC (proxy auto config) file: IE and Edge are ignoring PAC script file. The file is on a webserver using HTTPS. If changing the URL to HTTP it works fine. Is there any known issue with Windows? I started seeing this behavior with Windows 10 Build 1903 but I'm not sure if it wasn't present on previous...
  6. IE not edge

    in Browsers and Email
    IE not edge: how do I get internet explorer so I don't need to use edge. every time I get it it goes disappears I am new to windows10 don 't know where anything is very frustraiting 117429
  7. IE not edge

    in Windows 10 Support
    IE not edge: how do I get internet explorer so I don't need to use edge. every time I get it it goes disappears I am new to windows10 don 't know where anything is very frustraiting 117429
  8. How to Bookmark websites in IE,Edge and Chrome automatically?

    in Browsers and Email
    How to Bookmark websites in IE,Edge and Chrome automatically?: hello everyone, i want to bookmark websites automatically. i don't want to follow manual process. please guide me? Thanks 79545
  9. IE or Edge

    in Browsers and Email
    IE or Edge: which is better to use Edge or IE sorry i'm a bit confused are they the same but different or are they just different why did MS keep both 20303
  10. Chrome instead IE

    in Browsers and Email
    Chrome instead IE: Hi all, I have several links created with Internet Explorer. (links are Website and not Url) I now work with chrom. My question is how to ensure that these links are embarking with chrom and not internet explorer Thank you 18770