OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: satsu on April 16, 2024, 03:28:20 PM

Title: squid wpad change default direct
Post by: satsu on April 16, 2024, 03:28:20 PM
Hello.
I found that there is no GUI configuration for the last string of wpad file generation. at the end always
}

   // If no rule exists - use a direct connection
   return "DIRECT";
}

How to change this behavior to something similar fortigate or manual squid config?
here how it is looks in fortigate:
return "PROXY proxy.example.com:3128; DIRECT";

i found that config maybe generated from usr/local/opnsense/service/templates/OPNsense/Proxy/wpad.dat .
{% endif %}
   // If no rule exists - use a direct connection
   return "DIRECT";
}

is that's right? can i change the last part of file to my custom config?
so, what is the best way to change default direct to default proxy in wpad ?
Title: Re: squid wpad change default direct
Post by: dan_m_joh on May 16, 2026, 12:50:09 PM
Hello satsu,

Did you ever find a solution or workaround to this "problem"?
I'm having exactly the same issue/question.

Regards,
--
Dan