Firewall interface refuses to change


On a fresh FreePBX installation, under Connectivity/Firewall/Zones/Interfaces, when I change the zone of an interface, and click save; it reverts back to the “Trusted” zone.

In the file /etc/sysconfig/network-scripts/ifcfg-eth0 the line “ZONE=trusted” appears tens of thousands of times.

How can this error be corrected?

There was some text in the file that looked like some kind of script function code, but I didn’t copy it down. After deleting it, the problem is resolved.

I’ve seen that code in ifcfg files before, but unfortunately don’t recall where. It seems to be a bug in FreePBX though.