I have been trying to add an exception to SELinux for apache on port 5000.So I used the command:
# semanage port -a -t http_port_t -p tcp 5000
But returns the error,
ValueError: Port tcp/5000 already defined
I tried to check if this is so with the command:
semanage port -l |grep 5000
which gave the output,
http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
As you can see, 5000 is not on the list.
Is there anything obvious I am missing? Thank you in advance for your effort
So I found that another service had a defined status for TCP port 5000.
But by replacing the
-a option with
-m for modify, added tcp port 5000 to