13

When running

[root@host ~]# firewall-cmd --get-active-zones
[root@host ~]#
[root@host ~]# firewall-cmd --get-default-zone
public

I am not getting any active zones. How can I activate a zone?

giorgio79
  • 1,837
  • 9
  • 26
  • 36

3 Answers3

10

You activate a zone by binding a network interface or source IP address range(s) to it. Any firewall rules in the zone then apply to that network interface or IP address range(s).

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
2

On a similar case, I took a peek with strace and realized, that FirewallD had somehow lost D-Bus access completely.

The easiest fix was to reboot the Linux. That helped and FirewallD saw active zones again.

Jari Turkia
  • 296
  • 2
  • 5
0

I had the same question, except I had definitely had an interface in a zone. For me I had to restart the firewalld service.

loztagain
  • 1
  • 1