From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

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

Use firewalld for packet filtering

Use firewalld for packet filtering

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Use firewalld for packet filtering

- [Instructor] With Enterprise Linux 7 and newer, the firewall administration tool is firewalld. The legacy iptable service cannot be running at the same time, as they are not compatible. To make sure that firewalld is running, in a terminal type in sudo systemctl start firewalld and hit enter. Now let's 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. And this shows it's running. Note that if you're editing the firewall rules remotely, you can use the --timeout=option which will revert the rule back after the specified timeout. Anyone who has written shell scripts in the past to do the same thing with iptables will appreciate this feature. This is useful if your rules lock you out so you can't fix them. When the…

Contents