Control SELinux Port Labeling Flashcards
What command is used to restart the httpd.service?
systemctl restart httpd.service
What command is used to list the status of the httpd service?
systemctl status -l httpd.service
What command is used to verify whether the SELinux is blocking httpd from bindinf to the 82/TCP port?
sealert -a /var/log/audit/audit.log
What command is used to list the appropriate port types for the 82/TCP port?
semange port -l | grep http
What command is used to assign the 82/TCP port the http_port_t type?
semanage port -a -t http_port_t -p tcp 82
What command is used restart the httpd.service?
systemctl restart httpd.service
What command is used to verify that you can now access the web server that runs on the 82/TCP port?
curl http:/servera.lab.example.com:82
What command can you use to open the 82/TCP port in the permanent configuration, for the default zone on the firewall?
firewall-cmd –permanent –add-port=82/tcp
What command is used to activate the firewalls changes?
firewall-cmd –reload