From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Unlock the full course today

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

Manage firewalls with firewalld

Manage firewalls with firewalld

- [Instructor] In Enterprise Linux 8, the firewall administration tool is firewalld. Although the iptable service cannot be running at the same time as firewalld as they are not compatible. To make sure firewalld is running type into a terminal, sudo systemctl start firewalld and hit Enter, to make it persistent, bring your line back and change start to enable and hit Enter again. The command we use to interact with firewalld is firewall-cmd. To verify the status, let's use the --state option. Type in sudo firewall-cmd --state and hit Enter. Note that if you're editing the firewall rules remotely, you can use the --timeout= option, which will revert the rules back after the specified timeout. Anyone who has written shell scripts to do the same with iptables in the past will appreciate this feature. This is useful if your rules lock you out so you can't fix them, after the timeout expires firewalld will roll back your changes which is great for remote firewall development. Also note…

Contents