#########################################
# File: /etc/xinetd.conf
# Purpose: xinetd's configuration file
#########################################

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

# Normal Telnet service
service telnet
{
        disable		= no
#        bind            = 192.168.1.1
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        nice            = 10
        instances       = 30

}

# POP3
#service pop3
#{
#        disable	= no
#        bind            = 192.168.1.1 
#        socket_type     = stream
#        protocol        = tcp
#        wait            = no
#        instances       = 25
#        user            = root
#        server          = /var/qmail/bin/qmail-popup
#        server_args     = pop310.ukshells.co.uk /var/qmail/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir
#}

# POP3 over SSL -- this uses sslwrap to wrap to qmail-pop3d
#service pop3s
#{
#	flags		= REUSE NAMEINARGS
#        disable         = no
##        bind            = 192.168.1.1
#        socket_type     = stream
#        protocol        = tcp
#        wait            = no
#        user            = sslwrap
#        server          = /usr/sbin/tcpd
#        server_args     = /usr/bin/sslwrap -cert /etc/ssl/certs/pop3s.pem -addr 192.168.1.1 -port 110
#}

# Telnet over web port
#service www
#{
#        disable		= no
#        bind            = 192.168.1.1
#        flags           = REUSE
#        socket_type     = stream
#        wait            = no
#        user            = root
#        server          = /usr/sbin/in.telnetd
#        log_on_failure  += USERID
#}

# Email
#service smtp
#{
#        disable         = no
#        bind            = 192.168.1.1
#        socket_type     = stream
#        protocol        = tcp
#        wait            = no
#        user            = qmaild
#        id              = smtp
#        instances       = 40
#        server          = /var/qmail/bin/tcp-env
#        server_args     = /var/qmail/bin/qmail-smtpd
#        log_on_success -= DURATION USERID PID HOST EXIT
#        log_on_failure -= USERID HOST ATTEMPT RECORD
#        only_from       = localhost 192.168.1.1
#}

# FTP service
#service ftp
#{
#        disable		= no
#        socket_type	= stream
##        bind		= 192.168.1.1
#        wait		= no
#        user		= root
#        server		= /usr/sbin/proftpd
#        instances	= 40
#        log_on_success	+= DURATION USERID
#        log_on_failure	+= USERID
#        nice		 = 40
#}

# Talk service
service ntalk
{
        disable         = no
        socket_type     = dgram
        wait            = yes
        user            = root
        server          = /usr/sbin/in.ntalkd
        only_from       = 127.0.0.1
}

service auth
{
    disable             = no
    socket_type         = stream
    protocol            = tcp
    wait                = no
    user                = nobody
    server              = /usr/sbin/in.identd
    server_args         = -P/dev/null
}
