Discussion Locked

Disabling Network Services?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi. As I understand it you can disable network services in the inetd.conf file.Although I have the xinetd.conf file. This is an updated file as I understand it, so this is OK. The problem is I dont have any network services listed in that file, so there must be another. My question is where is it?
Thanks Pat

3 replies

by cpfeiffe

The best practice for locking down a system is to first remove anything in the /etc/inetd.conf file that you don't need. This will disallow the server for the particular service to launch on the localhost. However, you can further lock down your machine by removing unwanted services from /etc/services and /etc/rpc. This will disallow connections to the internal port the service runs on. You should always lock down all three files. Then if you want to avoid error messages during bootup you can remove any startup scripts that try to start services that you removed.

In short, I believe you are looking for /etc/services and /etc/rpc to answer your question.

Hope this helps.

This discussion is closed to new replies.