###############################################################
# File   : /etc/xinetd.conf
# Purpose: xinetd's configuration file
#          This is a sample file - please change it to reflect
#          your site's configuration needs.
###############################################################

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		= yes
#        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	= yes
#        bind            = 192.168.1.1 
        socket_type     = stream
        protocol        = tcp
        wait            = no
        instances       = 25
        user            = root
        server          = /usr/sbin/vm-pop3d
        log_on_success  = HOST USERID
        log_on_failure  = HOST USERID
        per_source      = 2
}

# POP3 over SSL -- this uses sslwrap to wrap to vm-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
#}

# FTP service
service ftp
{
        disable		= yes
        socket_type	= stream
        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
}
