1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!-- Development seems to be over and the xinetd.og site does not seem to exist any more. -->
|
---|
8 | <!-- <!ENTITY xinetd-download-http "http://www.xinetd.org/xinetd-&xinetd-version;.tar.gz"> -->
|
---|
9 | <!ENTITY xinetd-download-http " ">
|
---|
10 | <!ENTITY xinetd-download-ftp "&gentoo-ftp-repo;/xinetd-&xinetd-version;.tar.gz">
|
---|
11 | <!ENTITY xinetd-md5sum "77358478fd58efa6366accae99b8b04c">
|
---|
12 | <!ENTITY xinetd-size "308 KB">
|
---|
13 | <!ENTITY xinetd-buildsize "5.0 MB">
|
---|
14 | <!ENTITY xinetd-time "less than 0.1 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="xinetd" xreflabel="xinetd-&xinetd-version;">
|
---|
18 | <?dbhtml filename="xinetd.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>xinetd-&xinetd-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="xinetd">
|
---|
28 | <primary sortas="a-Xinetd">Xinetd</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to xinetd</title>
|
---|
33 |
|
---|
34 | <para><application>xinetd</application> is the eXtended InterNET services
|
---|
35 | daemon, a secure replacement for <command>inetd</command>.</para>
|
---|
36 |
|
---|
37 | &lfs74_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&xinetd-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&xinetd-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &xinetd-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &xinetd-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &xinetd-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &xinetd-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">xinetd Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
64 | <para role="required"><xref linkend="libtirpc"/></para>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
67 | <para role="optional"><ulink url="ftp://ftp.porcupine.org/pub/security/">tcpwrappers (deprecated)</ulink></para>
|
---|
68 |
|
---|
69 | <para condition="html" role="usernotes">User Notes:
|
---|
70 | <ulink url="&blfs-wiki;/xinetd"/></para>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 | <sect2 role="installation">
|
---|
75 | <title>Installation of xinetd</title>
|
---|
76 |
|
---|
77 | <para>Install <application>xinetd</application> by running the following
|
---|
78 | commands:</para>
|
---|
79 |
|
---|
80 | <screen><userinput>sed -i -e "/^LIBS/s/-lpset/& -ltirpc/" xinetd/Makefile.in &&
|
---|
81 | sed -i -e "/register unsigned count/s/register//" xinetd/itox.c &&
|
---|
82 |
|
---|
83 | ./configure --prefix=/usr --with-loadavg &&
|
---|
84 | make</userinput></screen>
|
---|
85 |
|
---|
86 | <para>This package does not come with a test suite.</para>
|
---|
87 |
|
---|
88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
89 |
|
---|
90 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2 role="commands">
|
---|
95 | <title>Command Explanations</title>
|
---|
96 |
|
---|
97 | <para><command>sed ... xinetd/Makefile.in</command>: Ensure the program
|
---|
98 | links against the libtirpc library.</para>
|
---|
99 |
|
---|
100 | <para><command>sed ... xinetd/itox.c</command>: Fix some compiler
|
---|
101 | warnings.</para>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="configuration">
|
---|
106 | <title>Configuring xinetd</title>
|
---|
107 |
|
---|
108 | <sect3 id="xinetd-config">
|
---|
109 | <title>Config Files</title>
|
---|
110 |
|
---|
111 | <para><filename>/etc/xinetd.conf</filename> and
|
---|
112 | <filename class='directory'>/etc/xinetd.d/*</filename></para>
|
---|
113 |
|
---|
114 | <indexterm zone="xinetd xinetd-config">
|
---|
115 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
116 | </indexterm>
|
---|
117 |
|
---|
118 | <indexterm zone="xinetd xinetd-config">
|
---|
119 | <primary sortas="e-etc-xinetd.d">/etc/xinetd.d/*</primary>
|
---|
120 | </indexterm>
|
---|
121 |
|
---|
122 | </sect3>
|
---|
123 |
|
---|
124 | <sect3>
|
---|
125 | <title>Configuration Information</title>
|
---|
126 |
|
---|
127 | <para>Ensure the path to all daemons is
|
---|
128 | <filename class="directory">/usr/sbin</filename>, rather than the default
|
---|
129 | path of <filename class="directory">/usr/bin</filename>, and install the
|
---|
130 | <application>xinetd</application> configuration files by running the
|
---|
131 | following commands as the <systemitem class="username">root</systemitem>
|
---|
132 | user:</para>
|
---|
133 |
|
---|
134 | <screen role="root"><userinput>cat > /etc/xinetd.conf << "EOF"
|
---|
135 | <literal># Begin /etc/xinetd
|
---|
136 | # Configuration file for xinetd
|
---|
137 |
|
---|
138 | defaults
|
---|
139 | {
|
---|
140 | instances = 60
|
---|
141 | log_type = SYSLOG daemon
|
---|
142 | log_on_success = HOST PID USERID
|
---|
143 | log_on_failure = HOST USERID
|
---|
144 | cps = 25 30
|
---|
145 | }
|
---|
146 |
|
---|
147 | # All service files are stored in the /etc/xinetd.d directory
|
---|
148 |
|
---|
149 | includedir /etc/xinetd.d
|
---|
150 |
|
---|
151 | # End /etc/xinetd</literal>
|
---|
152 | EOF</userinput></screen>
|
---|
153 |
|
---|
154 | <para>All of the following files have the statement, "disable = yes".
|
---|
155 | To activate any of the services, this statement will need to be changed
|
---|
156 | to "disable = no".</para>
|
---|
157 |
|
---|
158 | <note>
|
---|
159 | <para>The following files are listed to demonstrate several
|
---|
160 | <application>xinetd</application> applications. In many cases, these
|
---|
161 | applications are not needed. Some classic applications are
|
---|
162 | considered security risks. For example, <command>telnet</command>,
|
---|
163 | <command>rlogin</command>, <command>rexec</command>, and
|
---|
164 | <command>rsh</command> transmit unencrypted usernames and passwords
|
---|
165 | over the network and can be easily replaced with a more secure
|
---|
166 | alternative: <command>ssh</command>.</para>
|
---|
167 | </note>
|
---|
168 |
|
---|
169 | <screen role="root"><?dbfo keep-together="auto"?><userinput>install -v -d -m755 /etc/xinetd.d &&
|
---|
170 |
|
---|
171 | cat > /etc/xinetd.d/systat << "EOF" &&
|
---|
172 | <literal># Begin /etc/xinetd.d/systat
|
---|
173 |
|
---|
174 | service systat
|
---|
175 | {
|
---|
176 | disable = yes
|
---|
177 | socket_type = stream
|
---|
178 | wait = no
|
---|
179 | user = nobody
|
---|
180 | server = /usr/bin/ps
|
---|
181 | server_args = -auwwx
|
---|
182 | only_from = 128.138.209.0
|
---|
183 | log_on_success = HOST
|
---|
184 | }
|
---|
185 |
|
---|
186 | # End /etc/xinetd.d/systat</literal>
|
---|
187 | EOF
|
---|
188 |
|
---|
189 | cat > /etc/xinetd.d/echo << "EOF" &&
|
---|
190 | <literal># Begin /etc/xinetd.d/echo
|
---|
191 |
|
---|
192 | service echo
|
---|
193 | {
|
---|
194 | disable = yes
|
---|
195 | type = INTERNAL
|
---|
196 | id = echo-stream
|
---|
197 | socket_type = stream
|
---|
198 | protocol = tcp
|
---|
199 | user = root
|
---|
200 | wait = no
|
---|
201 | }
|
---|
202 |
|
---|
203 | service echo
|
---|
204 | {
|
---|
205 | disable = yes
|
---|
206 | type = INTERNAL
|
---|
207 | id = echo-dgram
|
---|
208 | socket_type = dgram
|
---|
209 | protocol = udp
|
---|
210 | user = root
|
---|
211 | wait = yes
|
---|
212 | }
|
---|
213 |
|
---|
214 | # End /etc/xinetd.d/echo</literal>
|
---|
215 | EOF
|
---|
216 |
|
---|
217 | cat > /etc/xinetd.d/chargen << "EOF" &&
|
---|
218 | <literal># Begin /etc/xinetd.d/chargen
|
---|
219 |
|
---|
220 | service chargen
|
---|
221 | {
|
---|
222 | disable = yes
|
---|
223 | type = INTERNAL
|
---|
224 | id = chargen-stream
|
---|
225 | socket_type = stream
|
---|
226 | protocol = tcp
|
---|
227 | user = root
|
---|
228 | wait = no
|
---|
229 | }
|
---|
230 |
|
---|
231 | service chargen
|
---|
232 | {
|
---|
233 | disable = yes
|
---|
234 | type = INTERNAL
|
---|
235 | id = chargen-dgram
|
---|
236 | socket_type = dgram
|
---|
237 | protocol = udp
|
---|
238 | user = root
|
---|
239 | wait = yes
|
---|
240 | }
|
---|
241 |
|
---|
242 | # End /etc/xinetd.d/chargen</literal>
|
---|
243 | EOF
|
---|
244 |
|
---|
245 | cat > /etc/xinetd.d/daytime << "EOF" &&
|
---|
246 | <literal># Begin /etc/xinetd.d/daytime
|
---|
247 |
|
---|
248 | service daytime
|
---|
249 | {
|
---|
250 | disable = yes
|
---|
251 | type = INTERNAL
|
---|
252 | id = daytime-stream
|
---|
253 | socket_type = stream
|
---|
254 | protocol = tcp
|
---|
255 | user = root
|
---|
256 | wait = no
|
---|
257 | }
|
---|
258 |
|
---|
259 | service daytime
|
---|
260 | {
|
---|
261 | disable = yes
|
---|
262 | type = INTERNAL
|
---|
263 | id = daytime-dgram
|
---|
264 | socket_type = dgram
|
---|
265 | protocol = udp
|
---|
266 | user = root
|
---|
267 | wait = yes
|
---|
268 | }
|
---|
269 |
|
---|
270 | # End /etc/xinetd.d/daytime</literal>
|
---|
271 | EOF
|
---|
272 |
|
---|
273 | cat > /etc/xinetd.d/time << "EOF" &&
|
---|
274 | <literal># Begin /etc/xinetd.d/time
|
---|
275 |
|
---|
276 | service time
|
---|
277 | {
|
---|
278 | disable = yes
|
---|
279 | type = INTERNAL
|
---|
280 | id = time-stream
|
---|
281 | socket_type = stream
|
---|
282 | protocol = tcp
|
---|
283 | user = root
|
---|
284 | wait = no
|
---|
285 | }
|
---|
286 |
|
---|
287 | service time
|
---|
288 | {
|
---|
289 | disable = yes
|
---|
290 | type = INTERNAL
|
---|
291 | id = time-dgram
|
---|
292 | socket_type = dgram
|
---|
293 | protocol = udp
|
---|
294 | user = root
|
---|
295 | wait = yes
|
---|
296 | }
|
---|
297 |
|
---|
298 | # End /etc/xinetd.d/time</literal>
|
---|
299 | EOF</userinput></screen>
|
---|
300 |
|
---|
301 | <indexterm zone="xinetd xinetd-config">
|
---|
302 | <primary sortas="e-etc-xinetd.d-login">/etc/xinetd.d/login</primary>
|
---|
303 | </indexterm>
|
---|
304 |
|
---|
305 | <indexterm zone="xinetd xinetd-config">
|
---|
306 | <primary sortas="e-etc-xinetd.d-shell">/etc/xinetd.d/shell</primary>
|
---|
307 | </indexterm>
|
---|
308 |
|
---|
309 | <indexterm zone="xinetd xinetd-config">
|
---|
310 | <primary sortas="e-etc-xinetd.d-exec">/etc/xinetd.d/exec</primary>
|
---|
311 | </indexterm>
|
---|
312 |
|
---|
313 | <indexterm zone="xinetd xinetd-config">
|
---|
314 | <primary sortas="e-etc-xinetd.d-comsat">/etc/xinetd.d/comsat</primary>
|
---|
315 | </indexterm>
|
---|
316 |
|
---|
317 | <indexterm zone="xinetd xinetd-config">
|
---|
318 | <primary sortas="e-etc-xinetd.d-talk">/etc/xinetd.d/talk</primary>
|
---|
319 | </indexterm>
|
---|
320 |
|
---|
321 | <indexterm zone="xinetd xinetd-config">
|
---|
322 | <primary sortas="e-etc-xinetd.d-ntalk">/etc/xinetd.d/ntalk</primary>
|
---|
323 | </indexterm>
|
---|
324 |
|
---|
325 | <indexterm zone="xinetd xinetd-config">
|
---|
326 | <primary sortas="e-etc-xinetd.d-telnet">/etc/xinetd.d/telnet</primary>
|
---|
327 | </indexterm>
|
---|
328 |
|
---|
329 | <indexterm zone="xinetd xinetd-config">
|
---|
330 | <primary sortas="e-etc-xinetd.d-ftp">/etc/xinetd.d/ftp</primary>
|
---|
331 | </indexterm>
|
---|
332 |
|
---|
333 | <indexterm zone="xinetd xinetd-config">
|
---|
334 | <primary sortas="e-etc-xinetd.d-tftp">/etc/xinetd.d/tftp</primary>
|
---|
335 | </indexterm>
|
---|
336 |
|
---|
337 | <indexterm zone="xinetd xinetd-config">
|
---|
338 | <primary sortas="e-etc-xinetd.d-systat">/etc/xinetd.d/systat</primary>
|
---|
339 | </indexterm>
|
---|
340 |
|
---|
341 | <indexterm zone="xinetd xinetd-config">
|
---|
342 | <primary sortas="e-etc-xinetd.d-finger">/etc/xinetd.d/finger</primary>
|
---|
343 | </indexterm>
|
---|
344 |
|
---|
345 | <indexterm zone="xinetd xinetd-config">
|
---|
346 | <primary sortas="e-etc-xinetd.d-netstat">/etc/xinetd.d/netstat</primary>
|
---|
347 | </indexterm>
|
---|
348 |
|
---|
349 | <indexterm zone="xinetd xinetd-config">
|
---|
350 | <primary sortas="e-etc-xinetd.d-echo">/etc/xinetd.d/echo</primary>
|
---|
351 | </indexterm>
|
---|
352 |
|
---|
353 | <indexterm zone="xinetd xinetd-config">
|
---|
354 | <primary sortas="e-etc-xinetd.d-chargen">/etc/xinetd.d/chargen</primary>
|
---|
355 | </indexterm>
|
---|
356 |
|
---|
357 | <indexterm zone="xinetd xinetd-config">
|
---|
358 | <primary sortas="e-etc-xinetd.d-daytime">/etc/xinetd.d/daytime</primary>
|
---|
359 | </indexterm>
|
---|
360 |
|
---|
361 | <indexterm zone="xinetd xinetd-config">
|
---|
362 | <primary sortas="e-etc-xinetd.d-time">/etc/xinetd.d/time</primary>
|
---|
363 | </indexterm>
|
---|
364 |
|
---|
365 | <indexterm zone="xinetd xinetd-config">
|
---|
366 | <primary sortas="e-etc-xinetd.d-rstatd">/etc/xinetd.d/rstatd</primary>
|
---|
367 | </indexterm>
|
---|
368 |
|
---|
369 | <indexterm zone="xinetd xinetd-config">
|
---|
370 | <primary sortas="e-etc-xinetd.d-rquotad">/etc/xinetd.d/rquotad</primary>
|
---|
371 | </indexterm>
|
---|
372 |
|
---|
373 | <indexterm zone="xinetd xinetd-config">
|
---|
374 | <primary sortas="e-etc-xinetd.d-ruserd">/etc/xinetd.d/ruserd</primary>
|
---|
375 | </indexterm>
|
---|
376 |
|
---|
377 | <indexterm zone="xinetd xinetd-config">
|
---|
378 | <primary sortas="e-etc-xinetd.d-sprayd">/etc/xinetd.d/sprayd</primary>
|
---|
379 | </indexterm>
|
---|
380 |
|
---|
381 | <indexterm zone="xinetd xinetd-config">
|
---|
382 | <primary sortas="e-etc-xinetd.d-walld">/etc/xinetd.d/walld</primary>
|
---|
383 | </indexterm>
|
---|
384 |
|
---|
385 | <indexterm zone="xinetd xinetd-config">
|
---|
386 | <primary sortas="e-etc-xinetd.d-irc">/etc/xinetd.d/irc</primary>
|
---|
387 | </indexterm>
|
---|
388 |
|
---|
389 | <para>The format of the <filename>/etc/xinetd.conf</filename> is
|
---|
390 | documented in the <filename>xinetd.conf.5</filename> man page. Further
|
---|
391 | information can be found at <ulink url="http://www.xinetd.org"/>.</para>
|
---|
392 |
|
---|
393 | </sect3>
|
---|
394 |
|
---|
395 | <sect3 id="xinetd-init">
|
---|
396 | <title>Boot Script</title>
|
---|
397 |
|
---|
398 | <para>As the <systemitem class="username">root</systemitem> user, install
|
---|
399 | the <filename>/etc/rc.d/init.d/xinetd</filename> init script included in
|
---|
400 | the <xref linkend="bootscripts"/> package.</para>
|
---|
401 |
|
---|
402 | <indexterm zone="xinetd xinetd-init">
|
---|
403 | <primary sortas="f-xinetd">xinetd</primary>
|
---|
404 | </indexterm>
|
---|
405 |
|
---|
406 | <screen role="root"><userinput>make install-xinetd</userinput></screen>
|
---|
407 |
|
---|
408 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
409 | use the new boot script to start <command>xinetd</command>:</para>
|
---|
410 |
|
---|
411 | <screen role="root"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
|
---|
412 |
|
---|
413 | <para>Check the <filename>/var/log/daemon.log</filename> to ensure the
|
---|
414 | appropriate services are started. If no services are enabled, the program
|
---|
415 | will not start without the <option>-stayalive</option> option.</para>
|
---|
416 |
|
---|
417 | <!--
|
---|
418 | <screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
|
---|
419 | executable [line=29]
|
---|
420 | Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
|
---|
421 | DISABLING SERVICE [line=29]
|
---|
422 | Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
|
---|
423 | executable [line=42]</literal></screen>
|
---|
424 |
|
---|
425 | <para>These errors are because most of the servers
|
---|
426 | <command>xinetd</command> is trying to control are not
|
---|
427 | installed yet.</para>
|
---|
428 | -->
|
---|
429 | </sect3>
|
---|
430 |
|
---|
431 | </sect2>
|
---|
432 |
|
---|
433 | <sect2 role="content">
|
---|
434 | <title>Contents</title>
|
---|
435 |
|
---|
436 | <segmentedlist>
|
---|
437 | <segtitle>Installed Programs</segtitle>
|
---|
438 | <segtitle>Installed Libraries</segtitle>
|
---|
439 | <segtitle>Installed Directories</segtitle>
|
---|
440 |
|
---|
441 | <seglistitem>
|
---|
442 | <seg>itox, xconv.pl, and xinetd</seg>
|
---|
443 | <seg>None</seg>
|
---|
444 | <seg>/etc/xinetd.d/</seg>
|
---|
445 | </seglistitem>
|
---|
446 | </segmentedlist>
|
---|
447 |
|
---|
448 | <variablelist>
|
---|
449 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
450 | <?dbfo list-presentation="list"?>
|
---|
451 | <?dbhtml list-presentation="table"?>
|
---|
452 |
|
---|
453 | <varlistentry id="itox">
|
---|
454 | <term><command>itox</command></term>
|
---|
455 | <listitem>
|
---|
456 | <para>is a utility used for converting
|
---|
457 | <filename>inetd.conf</filename> files to
|
---|
458 | <filename>xinetd.conf</filename> format.</para>
|
---|
459 | <indexterm zone="xinetd itox">
|
---|
460 | <primary sortas="b-itox">itox</primary>
|
---|
461 | </indexterm>
|
---|
462 | </listitem>
|
---|
463 | </varlistentry>
|
---|
464 |
|
---|
465 | <varlistentry id="xconv.pl">
|
---|
466 | <term><command>xconv.pl</command></term>
|
---|
467 | <listitem>
|
---|
468 | <para>is a <application>Perl</application> script used for
|
---|
469 | converting <filename>inetd.conf</filename> files to
|
---|
470 | <filename>xinetd.conf</filename> format, similar to
|
---|
471 | <command>itox</command>.</para>
|
---|
472 | <indexterm zone="xinetd xconv.pl">
|
---|
473 | <primary sortas="b-xconv.pl">xconv.pl</primary>
|
---|
474 | </indexterm>
|
---|
475 | </listitem>
|
---|
476 | </varlistentry>
|
---|
477 |
|
---|
478 | <varlistentry id="xinetd-prog">
|
---|
479 | <term><command>xinetd</command></term>
|
---|
480 | <listitem>
|
---|
481 | <para>is the Internet services daemon.</para>
|
---|
482 | <indexterm zone="xinetd xinetd-prog">
|
---|
483 | <primary sortas="b-xinetd">xinetd</primary>
|
---|
484 | </indexterm>
|
---|
485 | </listitem>
|
---|
486 | </varlistentry>
|
---|
487 |
|
---|
488 | </variablelist>
|
---|
489 |
|
---|
490 | </sect2>
|
---|
491 |
|
---|
492 | </sect1>
|
---|