SELinux is a feature that may be turned on certain
servers to restrict the access for certain ports. In order to
access, you need to open those ports.
You can check the status of SELinux using the following command.
[root@tester ~]# sestatus
SELinux status: disabled
To list all the tcp/udp open ports you can use the semanage command.
semanage port -l
To check the specific port is opened
semanage port -l | grep 7080
To open the specific port
semanage port -a -t http_port_t -p tcp 8085
You can check the status of SELinux using the following command.
[root@tester ~]# sestatus
SELinux status: disabled
To list all the tcp/udp open ports you can use the semanage command.
semanage port -l
To check the specific port is opened
semanage port -l | grep 7080
To open the specific port
semanage port -a -t http_port_t -p tcp 8085
No comments:
Post a Comment