Network-interface net network netmask netmask gw gateway This config file has lines that follow the format of: If you want to set up some static routes on your machine, you can do so in the static-routes file. You also can use these files to set up firewall rules for your network to either allow or disallow connections to your network. You can use the files listed in this section to create routes to other hosts, either on your own network or on outside networks. Other important network configuration files in the /etc/sysconfig directory Runlevel 6 is the shutdown level, so that’s why its kill script is located in the rc6.d directory. So for example, ssh is started from /etc/rc3.d /S55sshd, and killed upon shutdown from /etc/rc6.d/K25sshd. The script to start the service starts with an S, and the kill script starts with a K. If you look in that directory, you should see a file with the name of the service you want to stop or start. Network services started at the default boot level 3 (multiuser networked mode) are started out of the /etc/rc3.d directory. Network services that are not started out of xinetd are started out of the rc scripts at boot time. # unencrypted username/password pairs for authentication.Īn automated tool called chkconfig manages what services are started from xinetd and the rc scripts. # description: The telnet server serves telnet sessions it uses Once the line is set to disable = yes, the service is disabled and does not start up the next time you boot. Edit the line in the config file that says disable = no and change it to disable = yes, as it appears below. The contents of the telnet file is shown in the listing below. So, to disable telnet, you would look in /etc/xinetd.d for a file called telnet.
This means that you need to go through the files in that directory as well in order to turn off any services you don’t want. At the end of the nf file is a line that indicates that all the files in the /etc/xinetd.d are also included in the configuration.
xinetd‘s main configuration file is /etc/nf. The way to do this is to edit that service’s configuration file. You should disable any unnecessary services from being started from xinetd as part of securing your machine. This article is excerpted from the recently published book Red Hat Linux Networking and System Administration, 2nd Edition. When a new connection is made, xinetd starts up the corresponding network service. Xinetd is started on bootup, and listens on ports designated in /etc/nf for incoming network connections.