Hi,
because of this thread “Can not get non-Transparent web proxy to work” I had a look at the auto-generated wpad file in /svr/web/ipfire/html
I have never touched it. Mine looks like that:
function FindProxyForURL(url, host)
{
if (
(isPlainHostName(host)) ||
(isInNet(host, "127.0.0.1", "255.0.0.0")) ||
(isInNet(host, "172.24.0.0", "255.255.252.0")) ||
(isInNet(host, "172.25.0.0", "255.255.252.0")) ||
(isInNet(host, "172.26.0.0", "255.255.255.0")) ||
(isInNet(host, "169.254.0.0", "255.255.0.0"))
)
return "DIRECT";
else
if (
(isInNet(myIpAddress(), "172.24.0.0", "255.255.252.0")) ||
(isInNet(myIpAddress(), "172.24.1.0", "255.255.255.0")) ||
(isInNet(myIpAddress(), "172.24.2.0", "255.255.255.0")) ||
(isInNet(myIpAddress(), "172.25.1.0", "255.255.255.0")) ||
(isInNet(myIpAddress(), "172.25.2.0", "255.255.255.0"))
)
return "PROXY 172.24.0.254:800";
else
if (
(isInNet(myIpAddress(), "172.25.0.0", "255.255.252.0"))
)
return "PROXY 172.25.0.254:800";
}
172.24.0.0/22 is my green network
172.25.0.0/22 is my blue network
The first rule looks for network members in 172.24.0.0/22 or 172.24.1.0/24 or 172.24.2.0/24 etc. but 172.24.1.0/24 and 172.24.2.0/24 are part of 172.24.0.0/22. I wonder about that!
Also as you can see, blue network members on 172.25.1.0/24 and 172.25.2.0/24 are supposed to use the proxy on green. Why is that?
At the end there is a additional rule for 172.25.0.0/22, that includes 172.25.1.0/24 and 172.25.2.0/24 of the first rule for using the proxy on blue.
So there is are double definitions for 2 green and 2 blue subnets. Why is that?
Cheers