课程: Learning CentOS Linux

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Setting up the firewall using firewalld

Setting up the firewall using firewalld

课程: Learning CentOS Linux

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…

内容