History log of /freebsd-current/usr.sbin/inetd/inetd.8
Revision Date Author Comments
# 8a7b6120 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# b4cfdbfe 29-Sep-2022 Brooks Davis <brooks@FreeBSD.org>

manpages: Remove telnetd references

Mostly remove from the SEE ALSO section, adding a mention of the port
where not removed. Elsewhere, remove as appropriate and change from .Xr
to .Nm where a mention of telnetd continues to make sense (or removing
it would require significant reworking of the surrounding text).

Reviewed by: imp, delphij, emaste
Differential Revision: https://reviews.freebsd.org/D36785


# b92667b3 19-Apr-2022 Gordon Bergling <gbe@FreeBSD.org>

inetd(8): Fix a typo in the manual page

- s/similarily/similarly/

MFC after: 3 days


# 593ad024 06-Dec-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

inetd.8: Sort options

While here:

- Cluster flags without arguments together.
- Simplify the synopsis of the -a flag. There is no need to distinguish
between address and hostname there.
- Add a missing argument to the -a flag in the description section.
- Fix some typos.

MFC after: 3 days


# aab6fe0c 06-Dec-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

inetd.8: Lint the file

Remove Tn macros and fix other style warnings.

MFC after: 3 days


# bc3bba70 26-Feb-2021 Daniel Ebdrup Jensen <debdrup@FreeBSD.org>

inetd: Add examples from manual page and other sources

The manual page lists a bunch of examples, some of which already exist
in this file. Since it's both easier to remember when all examples are
listed in the same location, move examples so they get installed into
/etc/inetd.conf

This also means users won't have to copy-paste, but can simply
uncomment one or more services to use them.

As such, it also becomes necessary to remove the examples from the
manual page, so instead add a note explaining where the previous
examples as well as others may be found.
Cross-references, including to ports, have also been added where
applicable.

The rsync example has lived in the bug tracker for too long,
considering how useful it can situationally be, for example when
backup jobs on client devices are run through periodic(8) weekly.

The microsoft-ds entry is necessary for Windows 10 compatibility
(this can be confirmed with packet capturing, as it is not readily
documented at time of writing).

While here, remove two examples for which compatible daemons could not
be found in ports.

Submitted by: David Yeske <dyeske at gmail.com> (in part, prev ver)
PR: 122037
Reviewed by: kevans, brueffer, lwhsu, yuripv
Differential Revision: https://reviews.freebsd.org/D28882


# 26a4a61a 14-May-2020 Kyle Evans <kevans@FreeBSD.org>

inetd(8): Add comments to all examples

Submitted by: debdrup (with some minor changes by kevans)
Reviewed by: bcr (manpages)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D24818


# a58fc861 12-May-2020 Kyle Evans <kevans@FreeBSD.org>

inetd(8): Provide HTTP proxy example using netcat

One of the fortunes that are included in freebsd-tips talks about how
the superserver can be used to proxy connections with netcat, but there are
no examples provided. This commit adds an example with comment explaining
what it does.

Submitted by: debdrup
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24800


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 30e95be8 12-Jan-2008 Maxim Konovalov <maxim@FreeBSD.org>

o inetd(8) requires wait/nowait column in inetd.conf for
ONC services as well.

PR: bin/119203
Submitted by: Peter Jeremy
MFC atfer: 1 week


# 906c8a73 14-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Removed T/TCP bits.


# f6ffc146 04-Feb-2006 Ceri Davies <ceri@FreeBSD.org>

Perform minor rewording and grammatical improvement. Add a missing Xr.


# ca2d2c73 30-Dec-2005 Ceri Davies <ceri@FreeBSD.org>

inetd(8) requires that /etc/netconfig be present, and contain entries
for each of udp and tcp (and their IPv6 equivalents when INET6 is
enabled). Note that dependency here.

PR: docs/90435
Submitted by: Dmitry Kazarov <kazarov at mcm dot ru>
Pointed out by: Daniel Gerzo <danger at rulez dot sk>
MFC after: 8 days


# a8e0b2e8 10-Jun-2005 Jacques Vidrine <nectar@FreeBSD.org>

Remove rexecd(8), a server that implements a particularly insecure
method of executing commands remotely. There are no rexec clients in
the FreeBSD tree, and the client function rexec(3) is present only in
libcompat. It has been documented as "obsolete" since 4.3BSD, and its
use has been discouraged in the man page for over 10 years.


# 486c8cc4 06-Aug-2004 Warner Losh <imp@FreeBSD.org>

Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
(with permission of addtional copyright holders where appropriate)


# 07bfccd7 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# 5904b6fd 29-Feb-2004 Philippe Charnier <charnier@FreeBSD.org>

Revert previous change. The effect of -w or -W option is described in
another paragraph.
Obtained from: David Malone <dwmalone@maths.tcd.ie>


# 59b4f7f4 25-Feb-2004 Philippe Charnier <charnier@FreeBSD.org>

According to source code, under certain conditions, logging goes to the
"auth" facility not "daemon".
Submitted by: "Bill Richter (7X22KEY)" <richterb@binkley.foothill.net>


# 49f90486 08-Jun-2003 Philippe Charnier <charnier@FreeBSD.org>

The .Xr utility


# a654c53e 13-Aug-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: Removed redundant .Ns calls.


# 09b1c357 07-Aug-2002 Hajimu UMEMOTO <ume@FreeBSD.org>

Add capability for limiting the maximum number of simultaneous
invocations of each service from a single IP address.

Requested by: matusita
Reviewed by: dwmalone
Tested by: matusita on snapshots.jp.FreeBSD.org
MFC after: 2 weeks


# d14ca883 15-Jul-2002 Alfred Perlstein <alfred@FreeBSD.org>

add support for rpc IPv6 (rpc/udp/46 ...)

Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>


# 490d5836 14-Jul-2002 Philippe Charnier <charnier@FreeBSD.org>

The .Nm utility


# cce4c4fd 16-Apr-2002 Dima Dorfman <dd@FreeBSD.org>

Correct spacing.


# fa4ec4a5 11-Dec-2001 Sheldon Hearn <sheldonh@FreeBSD.org>

Fix a typo.

Reported by: Jurrien Koopmans <jjkoopmans@home.nl>


# 753d686d 14-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: s/BSD/.Bx/ where appropriate.


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# a4c37c81 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 70d51341 09-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


# 5cdd6aaa 05-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: fixed markup, sorted xrefs.


# b63a0586 03-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

mdoc(7) police: fix spacing and punctuation issues.


# a910f192 23-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Remove duplicate words.


# 1c8d1174 16-Jun-2001 David Malone <dwmalone@FreeBSD.org>

Give inetd the ability to manage unix domain sockets. Details of
how to use this feature are in the man page. This is based on work
by Lyndon Nerenberg.

(The only difficult part about this patch is the fact that you
can't fchown a unix domain socket, which means the sockets must be
put in a secure directory).

Reviewed by: dillon


# 8657581b 07-Jun-2001 Maxim Sobolev <sobomax@FreeBSD.org>

Correct cross-reference:
portmap.8 --> rpcbind.8

Submitted by: .Xr testing script


# 9a0b3389 04-Jun-2001 David Malone <dwmalone@FreeBSD.org>

This patch cleans up the ident stuff in inetd. The code which has
been patched so many times it was a bit of a mess. There are style,
code and man page cleanups. The following are the functional changes:

The RFC only permits the returning of 4 possible error
codes, make sure we only return these (PR 27636).

Use MAXLOGNAME to determine the longest usernames.

Add a -i flag, which returns the uid instead of the username
(this is from a PR 25787, which also contained alot of the
cleanups in this patch).

PR: 25787, 27636
Partially Submitted by: Arne.Dag.Fidjestol@idi.ntnu.no
Reviewed by: Arne.Dag.Fidjestol@idi.ntnu.no, green
MFC after: 3 weeks


# 74e14107 26-May-2001 David Malone <dwmalone@FreeBSD.org>

Don't spell requester as requestor.


# c2d03ea8 28-Feb-2001 Ruslan Ermilov <ru@FreeBSD.org>

Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.


# 610a5778 01-Feb-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: split punctuation characters + misc fixes.


# 6ef18ba8 22-Jan-2001 David Malone <dwmalone@FreeBSD.org>

Don't mention /etc/protocols in inetd documentation or comments, as inetd
doesn't actually use it.

PR: 24307
Submitted by: opentrax@email.com


# 8b5c4af3 27-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

Prepare for mdoc(7)NG.


# 38db6bf3 05-Dec-2000 David Malone <dwmalone@FreeBSD.org>

Add a -F option to the builtin ident service, which allows .fakeid files
to contain the name of other valid users.

PR: 22837
Submitted by: Andreas Gerstenberg <andy@andy.de>
Reviewed by: green
Reviewed by: sheldonh


# e97407b4 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# b8a4b6cd 29-Oct-2000 Nick Hibma <n_hibma@FreeBSD.org>

Be explicit about the fact that you can only specify one IP address/hostname


# 1b65d153 03-Aug-2000 David Malone <dwmalone@FreeBSD.org>

Explain "-c" option more exactly and state the default in the man
page.

Add ability to run "inetd -R 0" to disable the default connection
per minute limit of 256 connections. Document this in man page.

Don't use maxchild as a boolean - instead check if it is greater
than zero.

Reviewed by: sheldonh
Based on a patch by: Alexander Langer <alex@big.endian.de>


# 2968046e 03-Aug-2000 David Malone <dwmalone@FreeBSD.org>

specifer -> specifier


# 6e26837e 26-Apr-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Clarify the use of the auth service's -d option for specifying
a fallback username.

Reviewed by: green


# 7ef719fb 27-Mar-2000 Brian Feldman <green@FreeBSD.org>

Allow using "-d username" without "-r". Example:
auth stream tcp nowait root internal auth -d "Only fools trust ident"


# 4049dbb5 22-Mar-2000 Ruslan Ermilov <ru@FreeBSD.org>

"can received" -> "can receive".


# 46c67093 01-Mar-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Clarify the facility used for logging with and without the wrapping
options.

PR: 17017
Submitted by: Doug Barton <Doug@gorean.org>


# b588cf27 29-Feb-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove broken hard sentence breaks, which mess up the typeset output.


# a35bd5f6 28-Jan-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Fix English, mdoc and layout of the previous commit, as requested by
the committer (shin). While I don't have permission for this change
from the inetd maintainer (des), I assume that shin has permission
and I'm just fixing his contribution up for him.

Okay, I couldn't resist, I made some extra changes:

* Replace ".Tn FreeBSD" with .Fx
* Make the illegal TCPMUX and IPSEC sections legal subsections
of the IMPLEMENTATION NOTES section.

Requested by: shin


# 0cac72f4 25-Jan-2000 Yoshinobu Inoue <shin@FreeBSD.org>

several tcp apps IPv6 update
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project


# e2b7d857 23-Jan-2000 Philippe Charnier <charnier@FreeBSD.org>

Do not dot terminate sentences inside FILES section. Lowercase
inside error messages.


# 18338e9e 19-Jan-2000 Brian Feldman <green@FreeBSD.org>

Implement -g and -d options in my ident code. The -g flag uses a random
garbage value for the username (hex garbage, that is), and the -d flag
provides a default username for fallback purposes if the user cannot be
looked up. That is very useful for the case where inetd auth is
running on a NAT box.

While I'm here updating the manpage, clean up an English error and a
few small nits.


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 2404a15a 24-Jul-1999 Brian Feldman <green@FreeBSD.org>

Correct a groff error in macro usage ("foo : bar" becomes "``foo: bar''").
Document the auth -n flag.


# 3467b848 23-Jul-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Document the -o and -t options to the internal auth service and give an
example of their usage in the sample config. Merge the two examples
for the green internal auth service.

This commit failed the first time around because Brian beat me to the
punch on inetd.8 . I like my descriptions better and I'm pretty sure
Brian won't mind.


# 763c4877 23-Jul-1999 Brian Feldman <green@FreeBSD.org>

As per DES's prodding, document _all_ the arguments to inetd's auth
service. This includes the -o "operating system" argument and the -t
"timeout" argument.


# 2ab0563d 16-Jul-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Document the new {auth,ident,tap} service and provide examples in the
configuration file.

Requested by: green


# 715400fa 11-Jul-1999 Brian Feldman <green@FreeBSD.org>

Fix ``:''.

PR: 12589


# 10d03f50 09-Jul-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Allow internal and external wrapping to be enabled independantly of
each other. Instead of allowing the -w option to be specified twice,
we now take -w (wrap external) and -W (wrap internal).

Discussed with: markm


# eb0fde47 02-Jul-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Allow service alias names from /etc/services to be used when specifying
internal services in inetd.conf .

The inetd(8) manpage used to say that the official name of a service
_must_ be used, yet inetd itself was hardcoded to used a service alias for
the auth service, namely ident!

Rather than change inetd.conf and break existing configurations on next
upgrade, we now allow service aliases as well as official names. This
allows the software to work as expected and still support existing
configurations.

This should not breaking existing wrapped configurations either and the
inetd(8) manpage already states that it is the service name specified in
inetd.conf that is used for calls to hosts_access(3).

PR: 11796
Reported by: Alex Charalabidis <alex@wnm.net>
Approved by: des


# 27fd1dba 02-Jul-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Clarify that the services name, as specified in inetd.conf, for an
internal service should be used as the daemon name when constructing
hosts_access(5) rules.


# 1efeefd5 30-Jun-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Ommitted in previous commit message:

Submitted by: David Malone <dwmalone@maths.tcd.ie>


# c48c2d6d 30-Jun-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Enable wrapping for dgram services and fix logging so that -l really
does log all connections.


# 6e4989b2 27-Jun-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Fix the SYNOPSIS to reflect that the -w option can be specified twice.

Requested by: obrien
Approved by: mpp


# 54f5ebed 27-Jun-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Add command-line option (-w), specified once to enable wrapping and
twice to enable wrapping for internal wrapping as well. If the option is
not specified wrapping is turned off so that inetd will behave exactly
as it used to before TCP Wrappers was imported.

Change etc/defaults/rc.conf so as to encourage wrapping on new systems.

Clarify the use of TCP Wrappers in the IMPLEMENTATION NOTES of the
manual page.

Approved by: jkh


# 274811a7 21-Jun-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Use Dq mdoc tag for double-quoted words.


# 1181cf3c 17-Jun-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Various fixes for inetd's TCP Wrappers support:

1) Handle forking and non-forking internal services correctly.
Turn on wrapping for internal services because it works now.
2) Preserve server names for each service on HUP.
3) Honour hosts_options(5) severity option.
4) Add IMPLEMENTATION NOTES section to clarify TCP Wrappers
usage and limitations.

This change may cause previously allowed builtin services (e.g. daytime)
to be denied in existing configurations.

PR: 12097
Reviewed by: markm
1)
Reported by: Pierre Beyssac <pb@fasterix.freenix.org>
2)
Submitted by: Masachika ISHIZUKA <ishizuka@ish.org>
3)
Submitted by: David Malone <dwmalone@maths.tcd.ie>


# fad9a477 01-May-1999 David E. O'Brien <obrien@FreeBSD.org>

MFS: sort reference list and embelish history.


# d06590a5 11-Apr-1999 Mark Murray <markm@FreeBSD.org>

Fix the "internal" wrapping as well as a nasty bug involving
the daemon name vs the path. Also fix some warnings and improve
the wrapper section of the man page.

Nice debugging work by: Sheldon Hearn


# 9980037e 28-Mar-1999 Mark Murray <markm@FreeBSD.org>

Now inetd(8) has direct support for tcp_wrappers! Not working at the
moment is support for the internal serfvices, so these are not
enabled. Volunteers welcome!


# 1499abee 09-Jun-1998 Poul-Henning Kamp <phk@FreeBSD.org>

Spelling fixes.

PR: 6903
Reviewed by: phk
Submitted by: Josh Gilliam <josh@quick.net>


# 40907429 15-May-1998 Pierre Beyssac <pb@FreeBSD.org>

Small typo in T/TCP patch ("speicfy" -> "specify").


# c6c38f1d 14-May-1998 Guido van Rooij <guido@FreeBSD.org>

On request of Garrett, ad a way to specify that a service should be
reachable via T/TCP
Reviewed by: Garrett Wollman


# 10ad031e 13-Apr-1998 Garrett Wollman <wollman@FreeBSD.org>

Document the requirement for TCPMUX to also be enabled as an internal
service if any external TCPMUX servers are desired.

PR: 826


# ffb7094e 24-Feb-1998 Paul Traina <pst@FreeBSD.org>

Make maxchild and max child-per-minute default values configurable from
the command line or Makefile.


# 3e2e58f1 29-Oct-1997 Dima Ruban <dima@FreeBSD.org>

Add possibility to specify maximum number of connections per minute
for a given IP address.
This should be very effective against DoS attacks.


# b34683ca 28-Oct-1997 Andrey A. Chernov <ache@FreeBSD.org>

Implement group part now, final syntax is:
user[:group][/login-class]


# 186a5319 27-Oct-1997 Andrey A. Chernov <ache@FreeBSD.org>

Implement login classes sepcification as user[/loginclass]

By default inetd run things with the same limits as from /etc/rc
(daemon class) to not break anything as in good old days.


# c1a2e93e 19-Sep-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3).


# 59fe2c14 02-Aug-1997 Bruce Evans <bde@FreeBSD.org>

Import Lite2's src/usr.sbin, except for timed. All changed files
except one unimportant one have already left the vendor branch.


# 476602a9 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# bfd34a4a 19-Jan-1997 Wolfram Schneider <wosch@FreeBSD.org>

Sort cross references.


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 0661be0b 10-Nov-1996 Julian Elischer <julian@FreeBSD.org>

Reviewed by: Bill fenner
Submitted by: Archie Cobbs (Archie@whistle.com)

Changes to allow inted to control the number of servers to
start on each service. This is a defence against a denial of service attack
in which the system is made unusable by
an external party. It also allows the behaviour of
small memory systems to be more accuratly predicted, by
bounding the extent to which processes can multiply.


# 7356460f 09-Aug-1996 Julian Elischer <julian@FreeBSD.org>

Reviewed by: various
Submitted by: archie@whistle.com

changes to allow inetd to bind to a single interface
for more complicated options see xinetd in ports.

Obtained from: whistle.com


# e50d7759 07-Feb-1996 Garrett Wollman <wollman@FreeBSD.org>

Call setsockopt(SO_PRIVSTATE) to renounce SS_PRIV on all the sockets
we create. (Nothing being called from inetd should use it anyway,
but you can never be too careful.)

Translate the man page back into -mdoc.


# 4a8d0283 30-Jan-1996 Mike Pritchard <mpp@FreeBSD.org>

Fix a bunch of spelling errors in a bunch of man pages.


# 9fe96cbb 12-Oct-1995 Garrett Wollman <wollman@FreeBSD.org>

Record PID in /var/run/inetd.pid and document same.


# ee812eb2 09-Oct-1995 David Greenman <dg@FreeBSD.org>

Correct the "default rate" - it's 256/minute not 1000/minute.


# 71704f34 21-Dec-1994 Garrett Wollman <wollman@FreeBSD.org>

Disable UDP service looping attack.


# bee39b42 11-Sep-1994 Geoff Rehmet <csgr@FreeBSD.org>

- increase TOOMANY, in line with 1.x
- add logging option from 1.x


# 55b91f3a 11-Sep-1994 Geoff Rehmet <csgr@FreeBSD.org>

Bring in handling of RPC services from 1.x
(Guess who forgot to replace his inetd until today ;-)


# dea673e9 25-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite usr.sbin Sources