Manage Network Security Flashcards
What command is used to determine whether the httpd service is active?
systemctl is-active httpd
What command is used to enable and start the httpd service?
systemctl enable –now httpd
What command is used to investigate why the httpd service fails to start?
systemctl status httpd.service
What command is used check whether SELinux is blocking the httpd service from binfing to the 1001/TCP port?
sealert -a /var/log/audit/audit.log
What command is used to find the correct port type for httpd service usage?
semanage port -l | grep ‘http’
What command is used to bind the 1001/TCP port to the http_port_t type?
semanage port -a -t http_port_t -p tcp 1001
What command is used to confirm that the 1001/TCP port is bounf to the http_port_t port type?
semanage port -l | grep ‘^http_port_t’
What command is used to enable and start the httpd service?
systemctl enable –now httpd
What command is used to verify the running state of the httpd service?
systemctl is-active httpd
systemctl is-enabled httpd
What command is used to test access to the web server?
curl http//<domain>
curl http//<domain>:1001</domain></domain>
What command is used to verify the default firewall zone is set to the public zone?
firewall-cmd –get-default-zone
What command is used to correct the default zone and set it to public?
firewall-cmd –set-default-zone public
What command is used to determine the open ports that are listed in the public network zone?
firewall-cmd –zone=public –list-all
What command is used to add the 1001/TCP port to the public network zone?
firewall-cmd –permanent –zone=public –add-port=1001/tcp
What command is used to reload the firewall configuration?
firewall-cmd –reload