Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to install xinetd on linux ?  (Read 11453 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
How to install xinetd on linux ?
« on: November 22, 2013, 10:46:29 pm »
Guys,

You can install it by yum like : yum install xinted*

Configuring :

xinetd Configuration files location

Following are important configuration files for xinetd:

==> /etc/xinetd.conf - The global xinetd configuration file.
==> /etc/xinetd.d/ directory - The directory containing all service-specific files such as ftp

Task: Understanding default configuration file

You can view default configuration file with less or cat command:

==> # less /etc/xinetd.conf

OR

==> # cat /etc/xinetd.conf

Output:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}


includedir /etc/xinetd.d

Where,

instances = 60 : Determines the number of servers that can be simultaneously active for a service. So 60 is the maximum number of requests xinetd can handle at once.

log_type = SYSLOG authpriv: Determines where the service log output is sent. You can send it to SYSLOG at the specified facility (authpriv will send log to /var/log/secure file).

log_on_success = HOST PID: Force xinetd to log if the connection is successful. It will log HOST name and Process ID to /var/log/secure file.

log_on_failure = HOST: Force xinetd to log if there is a connection dropped or if the connection is not allowed to /var/log/secure file

cps = 25 30: Limits the rate of incoming connections. Takes two arguments. The first argument is the number of connections per second to handle. If the rate of incoming connections is higher than this, the service will be temporarily disabled. The second argument is the number of seconds to wait efore re-enabling the service after it has been disabled. The default for this setting is 50 incoming connections and the interval is 10 seconds. This is good to avoid DOS attack against your service.

includedir /etc/xinetd.d: Read other service specific configuration file this directory.

Try :)