Manage Server Firewalls Flashcards
What command is used to install httpd and mod_ssl packages which provide the Apache web server ability to server content over ssl?
dnf install httpd mod_ssl
What command is used to start and enable httpd?
systemctl enable –now httpd
What command is used to try to access the web server through port 80/TCP?
curl http://servera.lab.example.com
What command is used to try to access the web server over port 443/TCP?
curl -k https://servera.lab.example.com
What command is used to verify that the firewalld service is enabled and running?
systemctl status firewalld
What command is used to verify that the default firewall zone is set to the public zone?
firewall-cmd –get-default-zone
What command is used to set the default firewall zone to public?
firewall-cmd –set-default-zone public
What command is used to add the https service to the permanent configuration for the public network zone?
firewall-cmd –permanent –add-service=https
What command is used to reload the default firewall zone?
firewall-cmd –reload
What command is used to list the public default firewall zone?
firewall-cmd –permanent –zone=public –list-all
What command is used login to the web console running on the server to verify https service to the public firewall zone?
http://servera.lab.example.com:9090