Report this

What is the reason for this report?

No Network Interfaces Bound to Firewalld Zone

Posted on March 22, 2017

Using a fresh build of CentOS 7.3, I am attempting to follow the tutorial at https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7

However there are no active zones when I use “sudo firewall-cmd --get-active-zones” as per the tutorial. I believe this is due to no network interface being bound to a zone. Using comand “sudo firewall-cmd --zone=public --list-all public”. I can see that there are no interfaces bound to the public zone (which I presume is what I need). I have used:

  • $ sudo firewall-cmd --permanent --add-service=ssh
  • $ sudo firewall-cmd --permanent --add-service=http
  • $ sudo firewall-cmd --permanent --add-service=https
  • $ sudo firewall-cmd --permanent --add-port=80/tcp
  • $ sudo firewall-cmd --permanent --add-port=443/tcp
  • $ sudo firewall-cmd --reload

But I don’t think any of this is helping without an active zone. My goal is to have ports 80 and 443 show as opened after an external port scan, but they continue to show as closed. Please advise.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.