Monday, January 26, 2009

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

No comments:

Post a Comment