3 tcpd, tcpdp \- waits for a TCP connection request and starts a server
18 is a daemon, that is, a user-space program that is normally started when the
19 operating system is started and that normally does not terminate until the
21 Conceptually, you can think of
23 as doing nothing but listening to a port for a connection attempt. Several
26 will typically be started, one for each service that is to be provided.
27 When a connection is detected the tcpd for that port
29 and then the child process
31 an instance of the server for that port.
33 The above description is simplified.
34 Normally two versions of the tcpd.c source code are compiled.
36 is the one that waits for a connection. When a connection occurs
41 was started with options or if the child detects that the access
44 exists, the child will
48 which checks that the connection attempt is from an allowed node or network,
49 or that it is not from a disallowed node or network.
51 also tries to look up the name corresponding to an IP address, and denies
52 the connection if a name cannot be found. Finally,
54 determines whether the connection is supposed to be logged.
55 If all is well, the child
61 the server for the service with any arguments specified on the command line
69 allow no more than the specified
79 .EX "tcpd telnet in.telnetd &" "wait for a telnet connection on the normal port"
80 .EX "tcpd 8000 in.httpd /etc/httpd8000.conf &" "wait for web page request on port 8000 and use a custom config file for the in.httpd program."
82 Note that command lines must be terminated with "&" to return control to the
83 calling process, leaving the daemon executing as a background process.
85 The above examples show how tcpd might be invoked from /etc/rc or
86 another script that runs during system initialization. You will also
87 see this in the supplied startup scripts:
88 .EX "daemonize tcpd shell in.rshd" "daemonize is a shell function that tests whether a daemon is present and starts it if so, using the & to start it in the background."
90 Another case that should be mentioned is that when a system administrator
91 wants to start (or restart) a daemon from a command line,
93 should be used, like this:
94 .EX "intr -d tcpd telnet in.telnetd &" "remove the daemon from a process group and connect its input to /dev/null and its output to /dev/log."
98 The access control file.
105 That daemons cannot daemonize themselves is a way in which Minix differs from
106 most other Unix-like systems.
108 Allowing access to your system from the net is dangerous. Be sure you
109 know what you are doing. Be sure the owner of your net knows what you are
110 doing. Don't enable services you don't need. Enable logging and look at your
113 None known, let us know...
115 Kees J. Bot <kjb@cs.vu.nl>
117 Man page by Al Woodhull <asw@woodhull.com>