Kurinchi Blogger Scribbles …


Archive for October, 2011

Oct 15
2011

Linux: How to list or allow access to ports ?

Last updated: November 15th, 2011

SELinux is a feature that may be turned on certain servers and it can restrict access to certain ports. In order to gain access and make the ports work, you need to open those ports.

To see if SELinux is set, type

$ sestatus

To list all port, try the semanage command

$ semanage port -l

To check for a specific port that is opened

$ semanage port -l | grep 8085

To allow access to a specific port

$ semanage port -a -t http_port_t -p tcp 8085


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict