Adding Ports in the SELinux Port List
On a SELinux enabled machine, in order to use any port other than the default ports in the Session Monitor, add the port in the SELinux port list using the following commands.
yum install -y setroubleshoot-server
semanage port -a -t <Service_Name> -p <Protocol> <Port_Number>
You
can view all ports allowed in the SELinux using the command:
semanage port -l
For example: By default,
SELinux allows http to listen on TCP ports 80, 443, 488, 8008, 8009, or
8443. To configure http to run on a port other than the TCP ports listed
above, such as 8001, then add the ports to the SELinux port list using the
command:
semanage port -a -t http_port_t -p tcp 8001