Cant keep interfaces in assigned zones, Centos7

centos7firewalld

I came across to some strange behavior of Firewalls
having 3 interfaces and when using permanent assignment rule for interface to zone

after reboot it jumps back to the default zone
(which ever is set as default zone in firewalld)

firewall-cmd --permanent --zone=external --add-interface=eno16777736

or

firewall-cmd --permanent --zone=internal --change-interface=eno16777736

they aren't seem to be working ….

Best Answer

It's a bug, you may'd like to visit : https://bugs.centos.org/view.php?id=7526

I found only one way to fix this at this time

echo "ZONE=what_ever_zone_youd_like" >> /etc/sysconfig/network-scripts/ifcfg-eno16777736

firewall-cmd --complete-reload
systemctl restart firewalld.service

then check it

firewall-cmd --list-all-zones
Related Topic