<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">this is the wpad file I am using <div><br></div><div><div>function FindProxyForURL(url, host) </div><div>{</div><div>url = url.toLowerCase();</div><div>host = host.toLowerCase();</div><div><br></div><div>if (isPlainHostName(host)) </div><div>{</div><div> return 'DIRECT';</div><div>}</div><div><br></div><div>if (isResolvable(host)) </div><div>{</div><div>var hostIP = dnsResolve(host);</div><div><br></div><div>if (isInNet(hostIP, '0.0.0.0', '255.0.0.0') || isInNet(hostIP, '10.0.0.0', '255.0.0.0') ||</div><div>isInNet(hostIP, '127.0.0.0', '255.0.0.0') || isInNet(hostIP, '169.254.0.0', '255.255.0.0') ||</div><div>isInNet(hostIP, '172.16.0.0', '255.240.0.0') || isInNet(hostIP, '192.168.0.0', '255.255.0.0') ||</div><div>isInNet(hostIP, '198.18.0.0', '255.254.0.0') || isInNet(hostIP, '224.0.0.0', '240.0.0.0') ||</div><div>isInNet(hostIP, '240.0.0.0', '240.0.0.0')) </div><div>{</div><div> return 'DIRECT';</div><div>}</div><div><br></div><div>if (false) </div><div>{</div><div> return 'DIRECT';</div><div>}</div><div>}</div><div><br></div><div>if (url.substring(0, 5) == 'http:' || url.substring(0, 6) == 'https:' ||</div><div>url.substring(0, 4) == 'ftp:') </div><div>{</div><div> return 'PROXY 192.168.1.1:3128';</div><div>}</div><div><br></div><div>return 'DIRECT';</div><div>}</div><div><br><blockquote type="cite"><div>On Dec 1, 2024, at 13:58, Jonathan Lee <jonathanlee571@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=us-ascii"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">this is what I have tried it also fails <div><br></div><div><div>acl wpad urlpath_regex ^/wpad.dat$</div><div>acl wpad urlpath_regex ^/proxy.pac$</div><div>deny_info 200:/usr/local/www/wpad.dat wpad</div><div>deny_info 200:/usr/local/www/proxy.pac wpad</div><div>http_access deny wpad</div><div><br></div><div>reply_header_access Content-Type deny wpad</div><div>reply_header_replace Content-Type application/x-ns-proxy-autoconfig</div><div><br></div><div>when you run squid -k parse it take the config file</div><div><br></div><div><br></div><div>What I want to do is when it sees that reg ex to send it to this URL </div><div><a href="https://192.168.1.1:8080/wpad.dat">https://192.168.1.1:8080/wpad.dat</a></div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On Dec 1, 2024, at 09:01, Jonathan Lee <jonathanlee571@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div>Thank you again this works perfectly for my issues I had<br><br><blockquote type="cite">On Oct 2, 2024, at 20:51, Amos Jeffries <squid3@treenet.co.nz> wrote:<br><br>On 2/10/24 05:05, Jonathan Lee wrote:<br><blockquote type="cite">Hello fellow squid users,<br>Can you please help? I am attempting to run wpad on the same machine as squid however port 80 443 is blocked, I have a url redirect 192.168.1.1/wpad.dat to https://192.168.1.1:8080/wpad.dat this is done with use of squid guard, however you must disable bypass for 192.168.1.1 on squid. Squid resides on 192.168.1.1:3128,<br>It works on the iMac for auto config proxy I can access the url file within the redirect.<br>My question is how can this be managed directly with squid custom config ?? Is there a way to have squid manage a simple wpad?<br></blockquote><br><br> acl wpad urlpath_regex ^/wpad.dat$<br> deny_info 200:/etc/squid/wpad.dat wpad<br> http_access deny wpad<br><br> reply_header_access Content-Type deny wpad<br> reply_header_replace Content-Type application/x-ns-proxy-autoconfig<br><br><br><br>HTH<br>Amos<br>_______________________________________________<br>squid-users mailing list<br>squid-users@lists.squid-cache.org<br>https://lists.squid-cache.org/listinfo/squid-users<br></blockquote><br></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></body></html>