OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: tt33tt on November 27, 2018, 12:01:27 pm

Title: wapd not working
Post by: tt33tt on November 27, 2018, 12:01:27 pm
I get a wpad.dat-file by https://wpad.domain.local/wpad.dat But by using auto configuration in browser Internet Explorer there is the error "INET_E_RESOURCE_NOT_FOUND". By inserting proxy manual into the settings of my browser: all is fine.

Is there a misconfiguration:

/*
  PAC file created via OPNsense
  To use this file you have to enter its URL into your browsers network settings.
*/
function FindProxyForURL(url, host) {




if (((!isPlainHostName(host)) && (!shExpMatch(host, "*.domain")) && (!shExpMatch(host, "*.domain.local")))) {
return "PROXY OPNsense.domain.local:3128";
}

   // If no rule exists - use a direct connection
   return "DIRECT";
}
Title: Re: wapd not working
Post by: hbc on November 30, 2018, 05:04:43 pm
See my reply to your same question in german forum https://forum.opnsense.org/index.php?topic=10453.0 (https://forum.opnsense.org/index.php?topic=10453.0)