From the course: Learning CentOS Linux

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up the firewall using firewalld

Setting up the firewall using firewalld

From the course: Learning CentOS Linux

Start my 1-month free trial

Setting up the firewall using firewalld

- CentOS 7 comes with software to control the firewall, called Firewalld, which lets you allow and disallow access through specific ports with specific protocols. Firewalld is a front end to the IP Table software which is the actual firewall doing the work of controlling access. You can work directly with iptables, but it's a little bit arcane. Check out our courses on Linux Firewalls here on Linkedin Learning if you'd like to dig into that more. To interact with Firewalld at the command line, we'll use the firewall-cmd command. Let's take a quick look at Firewalld and see how it works. The firewall manages security in the context of zones. You can see these by typing firewall-cmd - -get-zones. Unless you have a very complicated network setup, you probably won't use most of these. Common zones to modify are drop, block, and public. Throughout this course, I'll set up a few rules in the public zone to allow access to various services. To find out what the current zone is, I can type…

Contents