Posts Tagged ‘Redhat’

Linux:Enable port 81 or other non-standard port under Redhat SELinux

Monday, June 30th, 2008

Enable Apache to bind port 81 or other non-standard port under Redhat SELinux
login as root
Add a port
[root@acer ~]# semanage port -a -t http_port_t -p tcp 81
Remove a port
[root@acer ~]# semanage port -d -t http_port_t -p tcp 81
List all enabled http ports
[root@acer ~]# semanage port -l | grep http