From 9be2627fa3874d7d973d262df98a52e6e401c5d0 Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Tue, 18 Feb 2025 20:39:07 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rhcsa.md b/src/rhcsa.md index 4e003dd..b1a4e46 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -755,6 +755,9 @@ sudo firewall-cmd --set-default-zone=public # Set the default zone to public ### displaying the rules in the firewall sudo firewall-cmd --list-all # Display all the rules in the firewall +sudo firewall-cmd --list-services --zone=public # Display the services in the public zone +sudo firewall-cmd --list-ports --zone=public # Display the ports in the public zone +sudo firewall-cmd --list-protocols --zone=public # Display the protocols in the public zone ### adding rules to the firewall sudo firewall-cmd --zone=public --add-service=http --permanent # Add the http service to the public zone