inetd.conf revision 101595
150472Speter# $FreeBSD: head/etc/inetd.conf 101595 2002-08-09 17:34:13Z gordon $
237Srgrimes#
337Srgrimes# Internet server configuration database
437Srgrimes#
581020Srwatson# Define *both* IPv4 and IPv6 entries for dual-stack support.
681020Srwatson# To disable a service, comment it out by prefixing the line with '#'.
781020Srwatson# To enable a service, remove the '#' at the beginning of the line.
837Srgrimes#
993243Sobrien#ftp	stream	tcp	nowait	root	/usr/libexec/lukemftpd	ftpd -l -r
1081020Srwatson#ftp	stream	tcp	nowait	root	/usr/libexec/ftpd	ftpd -l
1181020Srwatson#ftp	stream	tcp6	nowait	root	/usr/libexec/ftpd	ftpd -l
1281020Srwatson#telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
1381020Srwatson#telnet	stream	tcp6	nowait	root	/usr/libexec/telnetd	telnetd
1466621Skris#shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd
1575017Speter#shell	stream	tcp6	nowait	root	/usr/libexec/rshd	rshd
1666621Skris#login	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind
1775017Speter#login	stream	tcp6	nowait	root	/usr/libexec/rlogind	rlogind
1866568Sjkh#finger	stream	tcp	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -s
1975017Speter#finger	stream	tcp6	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -s
203190Spst#exec	stream	tcp	nowait	root	/usr/libexec/rexecd	rexecd
2137Srgrimes#nntp	stream	tcp	nowait	usenet	/usr/libexec/nntpd	nntpd
2281020Srwatson#
2341444Sdillon# run comsat as root to be able to print partial mailbox contents w/ biff,
2441444Sdillon# or use the safer tty:tty to just print that new mail has been received.
2581020Srwatson#comsat	dgram	udp	wait	tty:tty	/usr/libexec/comsat	comsat
2681020Srwatson#
2781020Srwatson# ntalk is required for the 'talk' utility to work correctly
2881020Srwatson#ntalk	dgram	udp	wait	tty:tty	/usr/libexec/ntalkd	ntalkd
2985298Sobrien#tftp	dgram	udp	wait	root	/usr/libexec/tftpd	tftpd -s /tftpboot
3094444Sume#tftp	dgram	udp6	wait	root	/usr/libexec/tftpd	tftpd -s /tftpboot
3118639Spst#bootps	dgram	udp	wait	root	/usr/libexec/bootpd	bootpd
3218639Spst#
3318639Spst# "Small servers" -- used to be standard on, but we're more conservative
3418639Spst# about things due to Internet security concerns.  Only turn on what you
3518639Spst# need.
3618639Spst#
3718639Spst#daytime stream	tcp	nowait	root	internal
3875017Speter#daytime stream	tcp6	nowait	root	internal
3918639Spst#daytime dgram	udp	wait	root	internal
4075017Speter#daytime dgram	udp6	wait	root	internal
4118639Spst#time	stream	tcp	nowait	root	internal
4275017Speter#time	stream	tcp6	nowait	root	internal
4318639Spst#time	 dgram	udp	wait	root	internal
4475017Speter#time	 dgram	udp6	wait	root	internal
4518639Spst#echo	stream	tcp	nowait	root	internal
4675017Speter#echo	dgram	udp6	wait	root	internal
475183Swollman#echo	dgram	udp	wait	root	internal
4875017Speter#echo	stream	tcp6	nowait	root	internal
4918639Spst#discard stream	tcp	nowait	root	internal
5075017Speter#discard stream	tcp6	nowait	root	internal
5118639Spst#discard dgram	udp	wait	root	internal
5275017Speter#discard dgram	udp6	wait	root	internal
5318639Spst#chargen stream	tcp	nowait	root	internal
5475017Speter#chargen stream	tcp6	nowait	root	internal
5518639Spst#chargen dgram	udp	wait	root	internal
5675017Speter#chargen dgram	udp6	wait	root	internal
5718639Spst#
5837Srgrimes# Kerberos authenticated services
5918639Spst#
6019607Speter#klogin	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind -k
6119607Speter#eklogin stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind -k -x
6219607Speter#kshell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd -k
6338337Smarkm#kip	stream	tcp	nowait	root	/usr/libexec/kipd	kipd
6418639Spst#
6555115Speter# CVS servers - for master CVS repositories only!  You must set the
6655115Speter# --allow-root path correctly or you open a trivial to exploit but
6755115Speter# deadly security hole.
6818639Spst#
6955115Speter#cvspserver	stream	tcp	nowait	root	/usr/bin/cvs	cvs --allow-root=/your/cvsroot/here pserver
7091929Sdd#cvspserver	stream	tcp	nowait	root	/usr/bin/cvs	cvs --allow-root=/your/cvsroot/here kserver
71591Srgrimes#
72101595Sgordon# RPC based services (you MUST have rpcbind running to use these)
73831Sats#
7418639Spst#rstatd/1-3	dgram rpc/udp wait root	/usr/libexec/rpc.rstatd	 rpc.rstatd
7518639Spst#rusersd/1-2	dgram rpc/udp wait root	/usr/libexec/rpc.rusersd rpc.rusersd
7618639Spst#walld/1	dgram rpc/udp wait root	/usr/libexec/rpc.rwalld	 rpc.rwalld
7718639Spst#pcnfsd/1-2	dgram rpc/udp wait root	/usr/libexec/rpc.pcnfsd	 rpc.pcnfsd	
7818639Spst#rquotad/1	dgram rpc/udp wait root	/usr/libexec/rpc.rquotad rpc.rquotad
7918639Spst#sprayd/1	dgram rpc/udp wait root	/usr/libexec/rpc.sprayd	 rpc.sprayd
8018639Spst#
8118639Spst# example entry for the optional pop3 server
8218639Spst#
834652Sats#pop3	stream	tcp	nowait	root	/usr/local/libexec/popper	popper
84831Sats#
8521613Sache# example entry for the optional imap4 server
8621613Sache#
8721613Sache#imap4	stream	tcp	nowait	root	/usr/local/libexec/imapd	imapd
8821613Sache#
8984265Skris# example entry for the optional uucpd server
9084265Skris#uucpd	stream	tcp	nowait	root	/usr/local/libexec/uucpd	uucpd
9184265Skris#
9248845Ssheldonh# Return error for all "ident" requests
9340911Sphk#
9448845Ssheldonh#auth	stream	tcp	nowait	root	internal
9575017Speter#auth	stream	tcp6	nowait	root	internal
9640911Sphk#
9749034Ssheldonh# Provide internally a real "ident" service which provides ~/.fakeid support,
9849059Sgreen# provides ~/.noident support, reports UNKNOWN as the operating system type
9949059Sgreen# and times out after 30 seconds.
10018639Spst#
10149059Sgreen#auth	stream	tcp	nowait	root	internal	auth -r -f -n -o UNKNOWN -t 30
10275017Speter#auth	stream	tcp6	nowait	root	internal	auth -r -f -n -o UNKNOWN -t 30
10329951Sjkh#
10448845Ssheldonh# Example entry for an external ident server
10548845Ssheldonh#
10648846Sgreen#auth	stream	tcp	wait	root	/usr/local/sbin/identd	identd -w -t120
10748845Ssheldonh#
10855779Sdbaker# Example entry for the optional qmail MTA
10955779Sdbaker#  NOTE: This is no longer the correct way to handle incoming SMTP
11055779Sdbaker#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
11155779Sdbaker#        instead.
11237741Shoek#
11337741Shoek#smtp	stream	tcp	nowait	qmaild	/var/qmail/bin/tcp-env	tcp-env /var/qmail/bin/qmail-smtpd
11437741Shoek#
11529951Sjkh# Enable the following two entries to enable samba startup from inetd
11684400Sjkh# (from the Samba documentation).  Enable the third entry to enable the swat
11784400Sjkh# samba configuration tool.
11829951Sjkh#
11984767Sobrien#netbios-ssn stream tcp	nowait		root	/usr/local/sbin/smbd	smbd
12084767Sobrien#netbios-ns dgram udp	wait		root	/usr/local/sbin/nmbd	nmbd
12190600Smaxim#swat	stream	tcp	nowait/400	root	/usr/local/sbin/swat	swat
122