Wpad config bug?

I’ve added some additional subnets to my “Allowed subnets (one per line):” of my IPFire proxy:
192.168.0.0/255.255.255.0
192.168.1.0/255.255.255.0
192.168.2.0/255.255.255.0
192.168.3.0/255.255.255.0

However, after I “Save and Restart” the web proxy, the wpad.dat file contains:
if (
(isInNet(myIpAddress(), “192.168.0.0”, “255.255.255.0”)) ||
(isInNet(myIpAddress(), “192.168.1.0”, “”)) ||
(isInNet(myIpAddress(), “192.168.2.0”, “”)) ||
(isInNet(myIpAddress(), “192.168.3.0”, “”))
)

The subnet masks are missing. If I add them manually, then whenever I “Save and Restart” IPFire’s proxy they get removed.

Clients on the subnets with missing netmasks don’t pick up their proxy configs properly. But after I manually change the wpad.dat file, they do correctly pick up their proxy configs, at least until the next time I “Save and Restart” the proxy.

This looks a bit like a bug to me. Or am I just doing it wrong? :slight_smile:

Try to enter in CIDR notation.
192.168.3.0/255.255.255.0 —> 192.168.3.0/24

1 Like

Aha! I should have thought of that earlier - it works! :slight_smile:

Maybe a point worth having on the box title in a future update:
Allowed subnets (one per line): → Allowed subnets (one per line in CIDR format):

1 Like

It is described in the wiki, but unfortunately not tested in the .cgi
Maybe we should open a ticket in BugZilla.