;; list all port

sudo semanage port -l | grep http_port_t

;;allow port

sudo semanage port -a -t http_port_t -p tcp 8090

;; to toggle the SELinux boolean value for httpd network connect to on

setsebool httpd_can_network_connect on -P

Leave a Reply

Your email address will not be published. Required fields are marked *