Closing open ports and services on Linux

It is important to close any unneeded open ports.
To view a list of running services you can execute the following command:

chkconfig –list | grep on

To disable a running service you can execute the command:

chkconfig service name off

Then you should stop this service from running by executing:

/etc/init.d/service stop

Leave a Reply

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