We have a service mapped to the web application.
So, we need to allow 80 port and 16700 for its backend service.
During login, it will connect to this service for authentication and other parts of data.
in firewall, we allow these two using
firewall-cmd --permanent --add-port=16700/tcp firewall-cmd --permanent --add-port=80/tcp
If I disable selinux or set to permissive it is working. If I set enforcing, it is not working.
So, I added below for 80 port. setsebool -P httpd_can_network_connect on
But, it is dailing the login attempt still, because of 16700 port. And adding this 16700 to the http_port_t also doesn't work. semanage port -a -t http_port_t -p tcp 16700
And this 16700 is not there in bool also.
Any suggestion, how to enable this port in selinux?
OS: Redhat 7.4