150472Speter# $FreeBSD$
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#
981020Srwatson#ftp	stream	tcp	nowait	root	/usr/libexec/ftpd	ftpd -l
1081020Srwatson#ftp	stream	tcp6	nowait	root	/usr/libexec/ftpd	ftpd -l
11116119Smarkm#ssh	stream	tcp	nowait	root	/usr/sbin/sshd		sshd -i -4
12116119Smarkm#ssh	stream	tcp6	nowait	root	/usr/sbin/sshd		sshd -i -6
1381020Srwatson#telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
1481020Srwatson#telnet	stream	tcp6	nowait	root	/usr/libexec/telnetd	telnetd
1566621Skris#shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd
1675017Speter#shell	stream	tcp6	nowait	root	/usr/libexec/rshd	rshd
1766621Skris#login	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind
1875017Speter#login	stream	tcp6	nowait	root	/usr/libexec/rlogind	rlogind
19206039Sdes#finger	stream	tcp	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -k -s
20206039Sdes#finger	stream	tcp6	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -k -s
2181020Srwatson#
2241444Sdillon# run comsat as root to be able to print partial mailbox contents w/ biff,
2341444Sdillon# or use the safer tty:tty to just print that new mail has been received.
2481020Srwatson#comsat	dgram	udp	wait	tty:tty	/usr/libexec/comsat	comsat
2581020Srwatson#
2681020Srwatson# ntalk is required for the 'talk' utility to work correctly
2781020Srwatson#ntalk	dgram	udp	wait	tty:tty	/usr/libexec/ntalkd	ntalkd
28126863Sdes#tftp	dgram	udp	wait	root	/usr/libexec/tftpd	tftpd -l -s /tftpboot
29126863Sdes#tftp	dgram	udp6	wait	root	/usr/libexec/tftpd	tftpd -l -s /tftpboot
3018639Spst#bootps	dgram	udp	wait	root	/usr/libexec/bootpd	bootpd
3118639Spst#
3218639Spst# "Small servers" -- used to be standard on, but we're more conservative
3318639Spst# about things due to Internet security concerns.  Only turn on what you
3418639Spst# need.
3518639Spst#
3618639Spst#daytime stream	tcp	nowait	root	internal
3775017Speter#daytime stream	tcp6	nowait	root	internal
3818639Spst#daytime dgram	udp	wait	root	internal
3975017Speter#daytime dgram	udp6	wait	root	internal
4018639Spst#time	stream	tcp	nowait	root	internal
4175017Speter#time	stream	tcp6	nowait	root	internal
4218639Spst#time	 dgram	udp	wait	root	internal
4375017Speter#time	 dgram	udp6	wait	root	internal
4418639Spst#echo	stream	tcp	nowait	root	internal
45116119Smarkm#echo	stream	tcp6	nowait	root	internal
46116119Smarkm#echo	dgram	udp	wait	root	internal
4775017Speter#echo	dgram	udp6	wait	root	internal
4818639Spst#discard stream	tcp	nowait	root	internal
4975017Speter#discard stream	tcp6	nowait	root	internal
5018639Spst#discard dgram	udp	wait	root	internal
5175017Speter#discard dgram	udp6	wait	root	internal
5218639Spst#chargen stream	tcp	nowait	root	internal
5375017Speter#chargen stream	tcp6	nowait	root	internal
5418639Spst#chargen dgram	udp	wait	root	internal
5575017Speter#chargen dgram	udp6	wait	root	internal
5618639Spst#
5755115Speter# CVS servers - for master CVS repositories only!  You must set the
5855115Speter# --allow-root path correctly or you open a trivial to exploit but
5955115Speter# deadly security hole.
6018639Spst#
61251794Seadler#cvspserver	stream	tcp	nowait	root	/usr/local/bin/cvs	cvs --allow-root=/your/cvsroot/here pserver
62251794Seadler#cvspserver	stream	tcp	nowait	root	/usr/local/bin/cvs	cvs --allow-root=/your/cvsroot/here kserver
63591Srgrimes#
64101595Sgordon# RPC based services (you MUST have rpcbind running to use these)
65831Sats#
6618639Spst#rstatd/1-3	dgram rpc/udp wait root	/usr/libexec/rpc.rstatd	 rpc.rstatd
6718639Spst#rusersd/1-2	dgram rpc/udp wait root	/usr/libexec/rpc.rusersd rpc.rusersd
6818639Spst#walld/1	dgram rpc/udp wait root	/usr/libexec/rpc.rwalld	 rpc.rwalld
69155349Sceri#pcnfsd/1-2	dgram rpc/udp wait root	/usr/local/libexec/rpc.pcnfsd	 rpc.pcnfsd
7018639Spst#rquotad/1	dgram rpc/udp wait root	/usr/libexec/rpc.rquotad rpc.rquotad
7118639Spst#sprayd/1	dgram rpc/udp wait root	/usr/libexec/rpc.sprayd	 rpc.sprayd
7218639Spst#
7318639Spst# example entry for the optional pop3 server
7418639Spst#
754652Sats#pop3	stream	tcp	nowait	root	/usr/local/libexec/popper	popper
76831Sats#
7721613Sache# example entry for the optional imap4 server
7821613Sache#
7921613Sache#imap4	stream	tcp	nowait	root	/usr/local/libexec/imapd	imapd
8021613Sache#
81115892Syar# example entry for the optional nntp server
82115892Syar#
83115892Syar#nntp	stream	tcp	nowait	news	/usr/local/libexec/nntpd	nntpd
84115892Syar#
8584265Skris# example entry for the optional uucpd server
86115892Syar#
8784265Skris#uucpd	stream	tcp	nowait	root	/usr/local/libexec/uucpd	uucpd
8884265Skris#
8948845Ssheldonh# Return error for all "ident" requests
9040911Sphk#
9148845Ssheldonh#auth	stream	tcp	nowait	root	internal
9275017Speter#auth	stream	tcp6	nowait	root	internal
9340911Sphk#
9449034Ssheldonh# Provide internally a real "ident" service which provides ~/.fakeid support,
9549059Sgreen# provides ~/.noident support, reports UNKNOWN as the operating system type
9649059Sgreen# and times out after 30 seconds.
9718639Spst#
9849059Sgreen#auth	stream	tcp	nowait	root	internal	auth -r -f -n -o UNKNOWN -t 30
9975017Speter#auth	stream	tcp6	nowait	root	internal	auth -r -f -n -o UNKNOWN -t 30
10029951Sjkh#
10148845Ssheldonh# Example entry for an external ident server
10248845Ssheldonh#
10348846Sgreen#auth	stream	tcp	wait	root	/usr/local/sbin/identd	identd -w -t120
10448845Ssheldonh#
10555779Sdbaker# Example entry for the optional qmail MTA
10655779Sdbaker#  NOTE: This is no longer the correct way to handle incoming SMTP
10755779Sdbaker#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
10855779Sdbaker#        instead.
10937741Shoek#
11037741Shoek#smtp	stream	tcp	nowait	qmaild	/var/qmail/bin/tcp-env	tcp-env /var/qmail/bin/qmail-smtpd
11137741Shoek#
11229951Sjkh# Enable the following two entries to enable samba startup from inetd
11384400Sjkh# (from the Samba documentation).  Enable the third entry to enable the swat
11484400Sjkh# samba configuration tool.
11529951Sjkh#
11684767Sobrien#netbios-ssn stream tcp	nowait		root	/usr/local/sbin/smbd	smbd
11784767Sobrien#netbios-ns dgram udp	wait		root	/usr/local/sbin/nmbd	nmbd
11890600Smaxim#swat	stream	tcp	nowait/400	root	/usr/local/sbin/swat	swat
119