updated notes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user