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