inetd.conf revision 75017
150472Speter# $FreeBSD: head/etc/inetd.conf 75017 2001-03-30 10:25:40Z peter $
237Srgrimes#
337Srgrimes# Internet server configuration database
437Srgrimes#
575017Speter# define *both* IPv4 and IPv6 entries for dual-stack support.
637Srgrimes#
737Srgrimesftp	stream	tcp	nowait	root	/usr/libexec/ftpd	ftpd -l
875017Speterftp	stream	tcp6	nowait	root	/usr/libexec/ftpd	ftpd -l
937Srgrimestelnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
1075017Spetertelnet	stream	tcp6	nowait	root	/usr/libexec/telnetd	telnetd
1166621Skris#shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd
1275017Speter#shell	stream	tcp6	nowait	root	/usr/libexec/rshd	rshd
1366621Skris#login	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind
1475017Speter#login	stream	tcp6	nowait	root	/usr/libexec/rlogind	rlogind
1566568Sjkh#finger	stream	tcp	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -s
1675017Speter#finger	stream	tcp6	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -s
173190Spst#exec	stream	tcp	nowait	root	/usr/libexec/rexecd	rexecd
1818639Spst#uucpd	stream	tcp	nowait	root	/usr/libexec/uucpd	uucpd
1937Srgrimes#nntp	stream	tcp	nowait	usenet	/usr/libexec/nntpd	nntpd
2041444Sdillon# run comsat as root to be able to print partial mailbox contents w/ biff,
2141444Sdillon# or use the safer tty:tty to just print that new mail has been received.
2241441Sdilloncomsat	dgram	udp	wait	tty:tty	/usr/libexec/comsat	comsat
2341441Sdillonntalk	dgram	udp	wait	tty:tty	/usr/libexec/ntalkd	ntalkd
2418639Spst#tftp	dgram	udp	wait	nobody	/usr/libexec/tftpd	tftpd /tftpboot
2518639Spst#bootps	dgram	udp	wait	root	/usr/libexec/bootpd	bootpd
2618639Spst#
2718639Spst# "Small servers" -- used to be standard on, but we're more conservative
2818639Spst# about things due to Internet security concerns.  Only turn on what you
2918639Spst# need.
3018639Spst#
3118639Spst#daytime stream	tcp	nowait	root	internal
3275017Speter#daytime stream	tcp6	nowait	root	internal
3318639Spst#daytime dgram	udp	wait	root	internal
3475017Speter#daytime dgram	udp6	wait	root	internal
3518639Spst#time	stream	tcp	nowait	root	internal
3675017Speter#time	stream	tcp6	nowait	root	internal
3718639Spst#time	 dgram	udp	wait	root	internal
3875017Speter#time	 dgram	udp6	wait	root	internal
3918639Spst#echo	stream	tcp	nowait	root	internal
4075017Speter#echo	dgram	udp6	wait	root	internal
415183Swollman#echo	dgram	udp	wait	root	internal
4275017Speter#echo	stream	tcp6	nowait	root	internal
4318639Spst#discard stream	tcp	nowait	root	internal
4475017Speter#discard stream	tcp6	nowait	root	internal
4518639Spst#discard dgram	udp	wait	root	internal
4675017Speter#discard dgram	udp6	wait	root	internal
4718639Spst#chargen stream	tcp	nowait	root	internal
4875017Speter#chargen stream	tcp6	nowait	root	internal
4918639Spst#chargen dgram	udp	wait	root	internal
5075017Speter#chargen dgram	udp6	wait	root	internal
5118639Spst#
5237Srgrimes# Kerberos authenticated services
5318639Spst#
5419607Speter#klogin	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind -k
5519607Speter#eklogin stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind -k -x
5619607Speter#kshell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd -k
5738337Smarkm#kip	stream	tcp	nowait	root	/usr/libexec/kipd	kipd
5818639Spst#
5955115Speter# CVS servers - for master CVS repositories only!  You must set the
6055115Speter# --allow-root path correctly or you open a trivial to exploit but
6155115Speter# deadly security hole.
6218639Spst#
6355115Speter#cvspserver	stream	tcp	nowait	root	/usr/bin/cvs	cvs --allow-root=/your/cvsroot/here pserver
6455115Speter#cvs		stream	tcp	nowait	root	/usr/bin/cvs	cvs --allow-root=/your/cvsroot/here kserver
65591Srgrimes#
6618639Spst# RPC based services (you MUST have portmapper running to use these)
67831Sats#
6818639Spst#rstatd/1-3	dgram rpc/udp wait root	/usr/libexec/rpc.rstatd	 rpc.rstatd
6918639Spst#rusersd/1-2	dgram rpc/udp wait root	/usr/libexec/rpc.rusersd rpc.rusersd
7018639Spst#walld/1	dgram rpc/udp wait root	/usr/libexec/rpc.rwalld	 rpc.rwalld
7118639Spst#pcnfsd/1-2	dgram rpc/udp wait root	/usr/libexec/rpc.pcnfsd	 rpc.pcnfsd	
7218639Spst#rquotad/1	dgram rpc/udp wait root	/usr/libexec/rpc.rquotad rpc.rquotad
7318639Spst#sprayd/1	dgram rpc/udp wait root	/usr/libexec/rpc.sprayd	 rpc.sprayd
7418639Spst#
7518639Spst# example entry for the optional pop3 server
7618639Spst#
774652Sats#pop3	stream	tcp	nowait	root	/usr/local/libexec/popper	popper
78831Sats#
7921613Sache# example entry for the optional imap4 server
8021613Sache#
8121613Sache#imap4	stream	tcp	nowait	root	/usr/local/libexec/imapd	imapd
8221613Sache#
8348845Ssheldonh# Return error for all "ident" requests
8440911Sphk#
8548845Ssheldonh#auth	stream	tcp	nowait	root	internal
8675017Speter#auth	stream	tcp6	nowait	root	internal
8740911Sphk#
8849034Ssheldonh# Provide internally a real "ident" service which provides ~/.fakeid support,
8949059Sgreen# provides ~/.noident support, reports UNKNOWN as the operating system type
9049059Sgreen# and times out after 30 seconds.
9118639Spst#
9249059Sgreen#auth	stream	tcp	nowait	root	internal	auth -r -f -n -o UNKNOWN -t 30
9375017Speter#auth	stream	tcp6	nowait	root	internal	auth -r -f -n -o UNKNOWN -t 30
9429951Sjkh#
9548845Ssheldonh# Example entry for an external ident server
9648845Ssheldonh#
9748846Sgreen#auth	stream	tcp	wait	root	/usr/local/sbin/identd	identd -w -t120
9848845Ssheldonh#
9955779Sdbaker# Example entry for the optional qmail MTA
10055779Sdbaker#  NOTE: This is no longer the correct way to handle incoming SMTP
10155779Sdbaker#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
10255779Sdbaker#        instead.
10337741Shoek#
10437741Shoek#smtp	stream	tcp	nowait	qmaild	/var/qmail/bin/tcp-env	tcp-env /var/qmail/bin/qmail-smtpd
10537741Shoek#
10629951Sjkh# Enable the following two entries to enable samba startup from inetd
10729951Sjkh# (from the Samba documentation).
10829951Sjkh#
10929951Sjkh#netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd 
11029951Sjkh#netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd 
111