[RESOLVED] firewall-cmd loses interfaces after reboot

Issues related to configuring your network
Post Reply
Godinho
Posts: 5
Joined: 2014/12/10 17:15:23

[RESOLVED] firewall-cmd loses interfaces after reboot

Post by Godinho » 2014/12/10 17:21:26

I need to remove eth1 from 'public' zone and add it to 'trusted'.
I've this config for public and trusted:

Code: Select all

[root@srv-Moodle ~]# firewall-cmd --zone=trusted --list-all
trusted
  interfaces:
  sources: 193.137.78.0/24 192.168.120.0/24 10.47.0.0/16
  services: ssh
  ports: 1514/tcp 161/udp 445/tcp
  masquerade: no

[root@srv-Moodle ~]# firewall-cmd --zone=public --list-all
public (default, active)
  interfaces: eth0 eth1
  sources:
  services: dhcpv6-client http https ssh
  ports:
  masquerade: no:
After changing the interface:

Code: Select all

firewall-cmd --zone=trusted --change-interface=eth1
[root@srv-Moodle ~]# firewall-cmd --reload
success
[root@srv-Moodle ~]# firewall-cmd --zone=trusted --list-all
trusted (active)
  interfaces: eth1
  sources: 193.137.78.0/24 192.168.120.0/24 10.47.0.0/16
  services: ssh
  ports: 1514/tcp 161/udp 445/tcp
  masquerade: no
That's correct. After reboot the interfaces is empty.
I tryed firewall-cmd --zone=trusted --change-interface=eth1 --permanent, adding the --permanent but still this result:

Code: Select all

[root@srv-Moodle ~]# firewall-cmd --zone=trusted --list-all
trusted
  interfaces:
  sources: 193.137.78.0/24 192.168.120.0/24 10.47.0.0/16
  services: ssh
  ports: 1514/tcp 161/udp 445/tcp
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:
What I'm doing wrong?

Godinho
Posts: 5
Joined: 2014/12/10 17:15:23

Re: [RESOLVED] firewall-cmd loses interfaces after reboot

Post by Godinho » 2014/12/11 14:19:51

Well I've follwed this https://bugs.centos.org/view.php?id=7407

Added ZONE="xpto" on the ifcfg-ethX files and fixed this issue. Please close the post.

Post Reply