nerdexam
Red_Hat

EX200 · Question #3

03. Debugging SELinux A web server running on non-standard port 82 encounters issues while serving content. Debug and resolve the problem to meet the following conditions: - The web server on the…

This task focuses on debugging and resolving SELinux issues for a web server running on a non-standard port 82, ensuring it serves content and starts automatically.

Submitted by carter_n· Apr 18, 2026Manage Security

Question

  1. Debugging SELinux A web server running on non-standard port 82 encounters issues while serving content. Debug and resolve the problem to meet the following conditions: - The web server on the system can serve HTML files hosted in /var/www/html (Note: Do not delete or modify existing file contents) - The web server can serve content on port 82 - The web server can start automatically at system boot Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: # Check which package provides the semanage command [root@node1 ~]# yum provides "*/semanage" # Install the semanage command [root@node1 ~]# yum -y install policycoreutils-python-utils [root@node1 ~]# semanage port -l |grep http [root@node1 ~]# semanage port -a -t http_port_t -p tcp 82 # Alternatively, you can use man semanage port, then search for EXAMPLE. [root@node1 ~]# systemctl restart httpd

Explanation

This task focuses on debugging and resolving SELinux issues for a web server running on a non-standard port 82, ensuring it serves content and starts automatically.

Concept tested. SELinux port context management

Reference. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_security_with_selinux/managing-selinux-ports_managing-security-with-selinux

Topics

#SELinux#Port Management#Web Server#Service Management

Community Discussion

No community discussion yet for this question.

Full EX200 Practice