WPAD IP Exclusion
-
Hi guys,
My current wpad pac settings is
function FindProxyForURL(url,host) { return "PROXY 192.168.0.1:3128"; }
is it possible to exclude client pc with ip addresses 192.168.0.240 - 192.168.0.254 to get autoproxy config?
thanks in advance.
-
Couldn't you just add those to the Bypass Proxy for These Source IPs list?
-
Thanks KOM,
I have done some research, added the following codes
{ if (isInNet(host, "192.168.0.240", "255.255.255.255")|| isInNet(host, "192.168.0.241", "255.255.255.255") || isInNet(host, "192.168.0.242", "255.255.255.255") || isInNet(host, "192.168.0.243", "255.255.255.255") || isInNet(host, "192.168.0.244", "255.255.255.255") || isInNet(host, "192.168.0.245", "255.255.255.255") || isInNet(host, "192.168.0.246", "255.255.255.255")) and so on..... return "DIRECT"; else return "PROXY 192.168.0.1:3128"; }
i have not tested it yet.
-
Sorry, my suggestion was dumb. WPAD and transparent proxy don't really go together, and you need transparent for the Source exclusion list to work.
-
My PFBox setup is squid + squidguard wpad i will give it a try. or maybe putting an IP Address in Proxy Server-> Access Control -> ACLs will do the trick?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.