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 | <!ENTITY xinetd-download-http "http://www.xinetd.org/xinetd-&xinetd-version;.tar.gz">
|
---|
8 | <!ENTITY xinetd-download-ftp "&gentoo-ftp-repo;/xinetd-&xinetd-version;.tar.gz">
|
---|
9 | <!ENTITY xinetd-md5sum "567382d7972613090215c6c54f9b82d9">
|
---|
10 | <!ENTITY xinetd-size "301 KB">
|
---|
11 | <!ENTITY xinetd-buildsize "4.4 MB">
|
---|
12 | <!ENTITY xinetd-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="xinetd" xreflabel="xinetd-&xinetd-version;">
|
---|
16 | <?dbhtml filename="xinetd.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>xinetd-&xinetd-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="xinetd">
|
---|
26 | <primary sortas="a-Xinetd">Xinetd</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to xinetd</title>
|
---|
31 |
|
---|
32 | <para><application>xinetd</application> is the eXtended InterNET services
|
---|
33 | daemon, a secure replacement for <command>inetd</command>.</para>
|
---|
34 |
|
---|
35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
36 | <itemizedlist spacing="compact">
|
---|
37 | <listitem>
|
---|
38 | <para>Download (HTTP): <ulink url="&xinetd-download-http;"/></para>
|
---|
39 | </listitem>
|
---|
40 | <listitem>
|
---|
41 | <para>Download (FTP): <ulink url="&xinetd-download-ftp;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download MD5 sum: &xinetd-md5sum;</para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download size: &xinetd-size;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Estimated disk space required: &xinetd-buildsize;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated build time: &xinetd-time;</para>
|
---|
54 | </listitem>
|
---|
55 | </itemizedlist>
|
---|
56 |
|
---|
57 | <bridgehead renderas="sect3">xinetd Dependencies</bridgehead>
|
---|
58 |
|
---|
59 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
60 | <para role="optional"><xref linkend="tcpwrappers"/> and
|
---|
61 | <ulink url="http://www.avahi.org">Avahi</ulink></para>
|
---|
62 |
|
---|
63 | <para condition="html" role="usernotes">User Notes:
|
---|
64 | <ulink url="&blfs-wiki;/xinetd"/></para>
|
---|
65 |
|
---|
66 | </sect2>
|
---|
67 |
|
---|
68 | <sect2 role="installation">
|
---|
69 | <title>Installation of xinetd</title>
|
---|
70 |
|
---|
71 | <para>Install <application>xinetd</application> by running the following
|
---|
72 | commands:</para>
|
---|
73 |
|
---|
74 | <screen><userinput>./configure --prefix=/usr --with-loadavg &&
|
---|
75 | make</userinput></screen>
|
---|
76 |
|
---|
77 | <para>This package does not come with a test suite.</para>
|
---|
78 |
|
---|
79 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
80 |
|
---|
81 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 role="configuration">
|
---|
86 | <title>Configuring xinetd</title>
|
---|
87 |
|
---|
88 | <sect3 id="xinetd-config">
|
---|
89 | <title>Config Files</title>
|
---|
90 |
|
---|
91 | <para><filename>/etc/xinetd.conf</filename> and
|
---|
92 | <filename class='directory'>/etc/xinetd.d/*</filename></para>
|
---|
93 |
|
---|
94 | <indexterm zone="xinetd xinetd-config">
|
---|
95 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
96 | </indexterm>
|
---|
97 |
|
---|
98 | <indexterm zone="xinetd xinetd-config">
|
---|
99 | <primary sortas="e-etc-xinetd.d">/etc/xinetd.d/*</primary>
|
---|
100 | </indexterm>
|
---|
101 |
|
---|
102 | </sect3>
|
---|
103 |
|
---|
104 | <sect3>
|
---|
105 | <title>Configuration Information</title>
|
---|
106 |
|
---|
107 | <para>Ensure the path to all daemons is
|
---|
108 | <filename class="directory">/usr/sbin</filename>, rather than the default
|
---|
109 | path of <filename class="directory">/usr/etc</filename>, and install the
|
---|
110 | <application>xinetd</application> configuration files by running the
|
---|
111 | following commands as the <systemitem class="username">root</systemitem>
|
---|
112 | user:</para>
|
---|
113 |
|
---|
114 | <screen role="root"><userinput>cat > /etc/xinetd.conf << "EOF"
|
---|
115 | <literal># Begin /etc/xinetd
|
---|
116 | # Configuration file for xinetd
|
---|
117 | #
|
---|
118 |
|
---|
119 | defaults
|
---|
120 | {
|
---|
121 | instances = 60
|
---|
122 | log_type = SYSLOG daemon
|
---|
123 | log_on_success = HOST PID USERID
|
---|
124 | log_on_failure = HOST USERID
|
---|
125 | cps = 25 30
|
---|
126 | }
|
---|
127 |
|
---|
128 | # All service files are stored in the /etc/xinetd.d directory
|
---|
129 | #
|
---|
130 | includedir /etc/xinetd.d
|
---|
131 | # End /etc/xinetd</literal>
|
---|
132 | EOF</userinput></screen>
|
---|
133 |
|
---|
134 | <para>All of the following files have the statement, "disable = yes".
|
---|
135 | To activate any of the services, this statement will need to be changed
|
---|
136 | to "disable = no".</para>
|
---|
137 |
|
---|
138 | <note>
|
---|
139 | <para>The following files are listed to demonstrate classic
|
---|
140 | <application>xinetd</application> applications. In many cases, these
|
---|
141 | applications are not needed. In some cases, the applications are
|
---|
142 | considered security risks. For example, <command>telnet</command>,
|
---|
143 | <command>rlogin</command>, <command>rexec</command>, and
|
---|
144 | <command>rsh</command> transmit unencrypted usernames and passwords
|
---|
145 | over the network and can be easily replaced with a more secure
|
---|
146 | alternative: <command>ssh</command>.</para>
|
---|
147 | </note>
|
---|
148 |
|
---|
149 | <screen role="root"><?dbfo keep-together="auto"?><userinput>install -v -d -m755 /etc/xinetd.d &&
|
---|
150 | cat > /etc/xinetd.d/login << "EOF" &&
|
---|
151 | <literal># Begin /etc/xinetd.d/login
|
---|
152 |
|
---|
153 | service login
|
---|
154 | {
|
---|
155 | disable = yes
|
---|
156 | socket_type = stream
|
---|
157 | protocol = tcp
|
---|
158 | wait = no
|
---|
159 | user = root
|
---|
160 | server = /usr/sbin/in.rlogind
|
---|
161 | log_type = SYSLOG local4 info
|
---|
162 | }
|
---|
163 |
|
---|
164 | # End /etc/xinetd.d/login</literal>
|
---|
165 | EOF
|
---|
166 | cat > /etc/xinetd.d/shell << "EOF" &&
|
---|
167 | <literal># Begin /etc/xinetd.d/shell
|
---|
168 |
|
---|
169 | service shell
|
---|
170 | {
|
---|
171 | disable = yes
|
---|
172 | socket_type = stream
|
---|
173 | wait = no
|
---|
174 | user = root
|
---|
175 | instances = UNLIMITED
|
---|
176 | flags = IDONLY
|
---|
177 | log_on_success += USERID
|
---|
178 | server = /usr/sbin/in.rshd
|
---|
179 | }
|
---|
180 |
|
---|
181 | # End /etc/xinetd.d/shell</literal>
|
---|
182 | EOF
|
---|
183 | cat > /etc/xinetd.d/exec << "EOF" &&
|
---|
184 | <literal># Begin /etc/xinetd.d/exec
|
---|
185 |
|
---|
186 | service exec
|
---|
187 | {
|
---|
188 | disable = yes
|
---|
189 | socket_type = stream
|
---|
190 | wait = no
|
---|
191 | user = root
|
---|
192 | server = /usr/sbin/in.rexecd
|
---|
193 | }
|
---|
194 |
|
---|
195 | # End /etc/xinetd.d/exec</literal>
|
---|
196 | EOF
|
---|
197 | cat > /etc/xinetd.d/comsat << "EOF" &&
|
---|
198 | <literal># Begin /etc/xinetd.d/comsat
|
---|
199 |
|
---|
200 | service comsat
|
---|
201 | {
|
---|
202 | disable = yes
|
---|
203 | socket_type = dgram
|
---|
204 | wait = yes
|
---|
205 | user = nobody
|
---|
206 | group = tty
|
---|
207 | server = /usr/sbin/in.comsat
|
---|
208 | }
|
---|
209 |
|
---|
210 | # End /etc/xinetd.d/comsat</literal>
|
---|
211 | EOF
|
---|
212 | cat > /etc/xinetd.d/talk << "EOF" &&
|
---|
213 | <literal># Begin /etc/xinetd.d/talk
|
---|
214 |
|
---|
215 | service talk
|
---|
216 | {
|
---|
217 | disable = yes
|
---|
218 | socket_type = dgram
|
---|
219 | wait = yes
|
---|
220 | user = root
|
---|
221 | server = /usr/sbin/in.talkd
|
---|
222 | }
|
---|
223 |
|
---|
224 | # End /etc/xinetd.d/talk</literal>
|
---|
225 | EOF
|
---|
226 | cat > /etc/xinetd.d/ntalk << "EOF" &&
|
---|
227 | <literal># Begin /etc/xinetd.d/ntalk
|
---|
228 |
|
---|
229 | service ntalk
|
---|
230 | {
|
---|
231 | disable = yes
|
---|
232 | socket_type = dgram
|
---|
233 | wait = yes
|
---|
234 | user = root
|
---|
235 | server = /usr/sbin/in.ntalkd
|
---|
236 | }
|
---|
237 |
|
---|
238 | # End /etc/xinetd.d/ntalk</literal>
|
---|
239 | EOF
|
---|
240 | cat > /etc/xinetd.d/telnet << "EOF" &&
|
---|
241 | <literal># Begin /etc/xinetd.d/telnet
|
---|
242 |
|
---|
243 | service telnet
|
---|
244 | {
|
---|
245 | disable = yes
|
---|
246 | socket_type = stream
|
---|
247 | wait = no
|
---|
248 | user = root
|
---|
249 | server = /usr/sbin/in.telnetd
|
---|
250 | bind = 127.0.0.1
|
---|
251 | log_on_failure += USERID
|
---|
252 | }
|
---|
253 |
|
---|
254 | service telnet
|
---|
255 | {
|
---|
256 | disable = yes
|
---|
257 | socket_type = stream
|
---|
258 | wait = no
|
---|
259 | user = root
|
---|
260 | # server = /usr/sbin/in.telnetd
|
---|
261 | bind = 192.231.139.175
|
---|
262 | redirect = 128.138.202.20 23
|
---|
263 | log_on_failure += USERID
|
---|
264 | }
|
---|
265 |
|
---|
266 | # End /etc/xinetd.d/telnet</literal>
|
---|
267 | EOF
|
---|
268 | cat > /etc/xinetd.d/ftp << "EOF" &&
|
---|
269 | <literal># Begin /etc/xinetd.d/ftp
|
---|
270 |
|
---|
271 | service ftp
|
---|
272 | {
|
---|
273 | disable = yes
|
---|
274 | socket_type = stream
|
---|
275 | wait = no
|
---|
276 | user = root
|
---|
277 | server = /usr/sbin/in.ftpd
|
---|
278 | server_args = -l
|
---|
279 | instances = 4
|
---|
280 | log_on_success += DURATION USERID
|
---|
281 | log_on_failure += USERID
|
---|
282 | access_times = 2:00-8:59 12:00-23:59
|
---|
283 | nice = 10
|
---|
284 | }
|
---|
285 |
|
---|
286 | # End /etc/xinetd.d/ftp</literal>
|
---|
287 | EOF
|
---|
288 | cat > /etc/xinetd.d/tftp << "EOF" &&
|
---|
289 | <literal># Begin /etc/xinetd.d/tftp
|
---|
290 |
|
---|
291 | service tftp
|
---|
292 | {
|
---|
293 | disable = yes
|
---|
294 | socket_type = dgram
|
---|
295 | wait = yes
|
---|
296 | user = root
|
---|
297 | server = /usr/sbin/in.tftpd
|
---|
298 | server_args = -s /tftpboot
|
---|
299 | }
|
---|
300 |
|
---|
301 | # End /etc/xinetd.d/tftp</literal>
|
---|
302 | EOF
|
---|
303 | cat > /etc/xinetd.d/finger << "EOF" &&
|
---|
304 | <literal># Begin /etc/xinetd.d/finger
|
---|
305 |
|
---|
306 | service finger
|
---|
307 | {
|
---|
308 | disable = yes
|
---|
309 | socket_type = stream
|
---|
310 | wait = no
|
---|
311 | user = nobody
|
---|
312 | server = /usr/sbin/in.fingerd
|
---|
313 | }
|
---|
314 |
|
---|
315 | # End /etc/xinetd.d/finger</literal>
|
---|
316 | EOF
|
---|
317 | cat > /etc/xinetd.d/systat << "EOF" &&
|
---|
318 | <literal># Begin /etc/xinetd.d/systat
|
---|
319 |
|
---|
320 | service systat
|
---|
321 | {
|
---|
322 | disable = yes
|
---|
323 | socket_type = stream
|
---|
324 | wait = no
|
---|
325 | user = nobody
|
---|
326 | server = /usr/bin/ps
|
---|
327 | server_args = -auwwx
|
---|
328 | only_from = 128.138.209.0
|
---|
329 | log_on_success = HOST
|
---|
330 | }
|
---|
331 |
|
---|
332 | # End /etc/xinetd.d/systat</literal>
|
---|
333 | EOF
|
---|
334 | cat > /etc/xinetd.d/netstat << "EOF" &&
|
---|
335 | <literal># Begin /etc/xinetd.d/netstat
|
---|
336 |
|
---|
337 | service netstat
|
---|
338 | {
|
---|
339 | disable = yes
|
---|
340 | socket_type = stream
|
---|
341 | wait = no
|
---|
342 | user = nobody
|
---|
343 | server = /usr/ucb/netstat
|
---|
344 | server_args = -f inet
|
---|
345 | only_from = 128.138.209.0
|
---|
346 | log_on_success = HOST
|
---|
347 | }
|
---|
348 |
|
---|
349 | # End /etc/xinetd.d/netstat</literal>
|
---|
350 | EOF
|
---|
351 | cat > /etc/xinetd.d/echo << "EOF" &&
|
---|
352 | <literal># Begin /etc/xinetd.d/echo
|
---|
353 |
|
---|
354 | service echo
|
---|
355 | {
|
---|
356 | disable = yes
|
---|
357 | type = INTERNAL
|
---|
358 | id = echo-stream
|
---|
359 | socket_type = stream
|
---|
360 | protocol = tcp
|
---|
361 | user = root
|
---|
362 | wait = no
|
---|
363 | }
|
---|
364 |
|
---|
365 | service echo
|
---|
366 | {
|
---|
367 | disable = yes
|
---|
368 | type = INTERNAL
|
---|
369 | id = echo-dgram
|
---|
370 | socket_type = dgram
|
---|
371 | protocol = udp
|
---|
372 | user = root
|
---|
373 | wait = yes
|
---|
374 | }
|
---|
375 |
|
---|
376 | # End /etc/xinetd.d/echo</literal>
|
---|
377 | EOF
|
---|
378 | cat > /etc/xinetd.d/chargen << "EOF" &&
|
---|
379 | <literal># Begin /etc/xinetd.d/chargen
|
---|
380 |
|
---|
381 | service chargen
|
---|
382 | {
|
---|
383 | disable = yes
|
---|
384 | type = INTERNAL
|
---|
385 | id = chargen-stream
|
---|
386 | socket_type = stream
|
---|
387 | protocol = tcp
|
---|
388 | user = root
|
---|
389 | wait = no
|
---|
390 | }
|
---|
391 |
|
---|
392 | service chargen
|
---|
393 | {
|
---|
394 | disable = yes
|
---|
395 | type = INTERNAL
|
---|
396 | id = chargen-dgram
|
---|
397 | socket_type = dgram
|
---|
398 | protocol = udp
|
---|
399 | user = root
|
---|
400 | wait = yes
|
---|
401 | }
|
---|
402 |
|
---|
403 | # End /etc/xinetd.d/chargen</literal>
|
---|
404 | EOF
|
---|
405 | cat > /etc/xinetd.d/daytime << "EOF" &&
|
---|
406 | <literal># Begin /etc/xinetd.d/daytime
|
---|
407 |
|
---|
408 | service daytime
|
---|
409 | {
|
---|
410 | disable = yes
|
---|
411 | type = INTERNAL
|
---|
412 | id = daytime-stream
|
---|
413 | socket_type = stream
|
---|
414 | protocol = tcp
|
---|
415 | user = root
|
---|
416 | wait = no
|
---|
417 | }
|
---|
418 |
|
---|
419 | service daytime
|
---|
420 | {
|
---|
421 | disable = yes
|
---|
422 | type = INTERNAL
|
---|
423 | id = daytime-dgram
|
---|
424 | socket_type = dgram
|
---|
425 | protocol = udp
|
---|
426 | user = root
|
---|
427 | wait = yes
|
---|
428 | }
|
---|
429 |
|
---|
430 | # End /etc/xinetd.d/daytime</literal>
|
---|
431 | EOF
|
---|
432 | cat > /etc/xinetd.d/time << "EOF" &&
|
---|
433 | <literal># Begin /etc/xinetd.d/time
|
---|
434 |
|
---|
435 | service time
|
---|
436 | {
|
---|
437 | disable = yes
|
---|
438 | type = INTERNAL
|
---|
439 | id = time-stream
|
---|
440 | socket_type = stream
|
---|
441 | protocol = tcp
|
---|
442 | user = root
|
---|
443 | wait = no
|
---|
444 | }
|
---|
445 |
|
---|
446 |
|
---|
447 | service time
|
---|
448 | {
|
---|
449 | disable = yes
|
---|
450 | type = INTERNAL
|
---|
451 | id = time-dgram
|
---|
452 | socket_type = dgram
|
---|
453 | protocol = udp
|
---|
454 | user = root
|
---|
455 | wait = yes
|
---|
456 | }
|
---|
457 |
|
---|
458 | # End /etc/xinetd.d/time</literal>
|
---|
459 | EOF
|
---|
460 | cat > /etc/xinetd.d/rstatd << "EOF" &&
|
---|
461 | <literal># Begin /etc/xinetd.d/rstatd
|
---|
462 |
|
---|
463 | service rstatd
|
---|
464 | {
|
---|
465 | disable = yes
|
---|
466 | type = RPC
|
---|
467 | flags = INTERCEPT
|
---|
468 | rpc_version = 2-4
|
---|
469 | socket_type = dgram
|
---|
470 | protocol = udp
|
---|
471 | server = /usr/sbin/rpc.rstatd
|
---|
472 | wait = yes
|
---|
473 | user = root
|
---|
474 | }
|
---|
475 |
|
---|
476 | # End /etc/xinetd.d/rstatd</literal>
|
---|
477 | EOF
|
---|
478 | cat > /etc/xinetd.d/rquotad << "EOF" &&
|
---|
479 | <literal># Begin /etc/xinetd.d/rquotad
|
---|
480 |
|
---|
481 | service rquotad
|
---|
482 | {
|
---|
483 | disable = yes
|
---|
484 | type = RPC
|
---|
485 | rpc_version = 1
|
---|
486 | socket_type = dgram
|
---|
487 | protocol = udp
|
---|
488 | wait = yes
|
---|
489 | user = root
|
---|
490 | server = /usr/sbin/rpc.rstatd
|
---|
491 | }
|
---|
492 |
|
---|
493 | # End /etc/xinetd.d/rquotad</literal>
|
---|
494 | EOF
|
---|
495 | cat > /etc/xinetd.d/rusersd << "EOF" &&
|
---|
496 | <literal># Begin /etc/xinetd.d/rusersd
|
---|
497 |
|
---|
498 | service rusersd
|
---|
499 | {
|
---|
500 | disable = yes
|
---|
501 | type = RPC
|
---|
502 | rpc_version = 1-2
|
---|
503 | socket_type = dgram
|
---|
504 | protocol = udp
|
---|
505 | wait = yes
|
---|
506 | user = root
|
---|
507 | server = /usr/sbin/rpc.rusersd
|
---|
508 | }
|
---|
509 |
|
---|
510 | # End /etc/xinetd.d/rusersd</literal>
|
---|
511 | EOF
|
---|
512 | cat > /etc/xinetd.d/sprayd << "EOF" &&
|
---|
513 | <literal># Begin /etc/xinetd.d/sprayd
|
---|
514 |
|
---|
515 | service sprayd
|
---|
516 | {
|
---|
517 | disable = yes
|
---|
518 | type = RPC
|
---|
519 | rpc_version = 1
|
---|
520 | socket_type = dgram
|
---|
521 | protocol = udp
|
---|
522 | wait = yes
|
---|
523 | user = root
|
---|
524 | server = /usr/sbin/rpc.sprayd
|
---|
525 | }
|
---|
526 |
|
---|
527 | # End /etc/xinetd.d/sprayd</literal>
|
---|
528 | EOF
|
---|
529 | cat > /etc/xinetd.d/walld << "EOF" &&
|
---|
530 | <literal># Begin /etc/xinetd.d/walld
|
---|
531 |
|
---|
532 | service walld
|
---|
533 | {
|
---|
534 | disable = yes
|
---|
535 | type = RPC
|
---|
536 | rpc_version = 1
|
---|
537 | socket_type = dgram
|
---|
538 | protocol = udp
|
---|
539 | wait = yes
|
---|
540 | user = nobody
|
---|
541 | group = tty
|
---|
542 | server = /usr/sbin/rpc.rwalld
|
---|
543 | }
|
---|
544 |
|
---|
545 | # End /etc/xinetd.d/walld</literal>
|
---|
546 | EOF
|
---|
547 | cat > /etc/xinetd.d/irc << "EOF"
|
---|
548 | <literal># Begin /etc/xinetd.d/irc
|
---|
549 |
|
---|
550 | service irc
|
---|
551 | {
|
---|
552 | disable = yes
|
---|
553 | socket_type = stream
|
---|
554 | wait = no
|
---|
555 | user = root
|
---|
556 | flags = SENSOR
|
---|
557 | type = INTERNAL
|
---|
558 | bind = 192.168.1.30
|
---|
559 | deny_time = 60
|
---|
560 | }
|
---|
561 |
|
---|
562 | # End /etc/xinetd.d/irc</literal>
|
---|
563 | EOF</userinput></screen>
|
---|
564 |
|
---|
565 | <indexterm zone="xinetd xinetd-config">
|
---|
566 | <primary sortas="e-etc-xinetd.d-login">/etc/xinetd.d/login</primary>
|
---|
567 | </indexterm>
|
---|
568 |
|
---|
569 | <indexterm zone="xinetd xinetd-config">
|
---|
570 | <primary sortas="e-etc-xinetd.d-shell">/etc/xinetd.d/shell</primary>
|
---|
571 | </indexterm>
|
---|
572 |
|
---|
573 | <indexterm zone="xinetd xinetd-config">
|
---|
574 | <primary sortas="e-etc-xinetd.d-exec">/etc/xinetd.d/exec</primary>
|
---|
575 | </indexterm>
|
---|
576 |
|
---|
577 | <indexterm zone="xinetd xinetd-config">
|
---|
578 | <primary sortas="e-etc-xinetd.d-comsat">/etc/xinetd.d/comsat</primary>
|
---|
579 | </indexterm>
|
---|
580 |
|
---|
581 | <indexterm zone="xinetd xinetd-config">
|
---|
582 | <primary sortas="e-etc-xinetd.d-talk">/etc/xinetd.d/talk</primary>
|
---|
583 | </indexterm>
|
---|
584 |
|
---|
585 | <indexterm zone="xinetd xinetd-config">
|
---|
586 | <primary sortas="e-etc-xinetd.d-ntalk">/etc/xinetd.d/ntalk</primary>
|
---|
587 | </indexterm>
|
---|
588 |
|
---|
589 | <indexterm zone="xinetd xinetd-config">
|
---|
590 | <primary sortas="e-etc-xinetd.d-telnet">/etc/xinetd.d/telnet</primary>
|
---|
591 | </indexterm>
|
---|
592 |
|
---|
593 | <indexterm zone="xinetd xinetd-config">
|
---|
594 | <primary sortas="e-etc-xinetd.d-ftp">/etc/xinetd.d/ftp</primary>
|
---|
595 | </indexterm>
|
---|
596 |
|
---|
597 | <indexterm zone="xinetd xinetd-config">
|
---|
598 | <primary sortas="e-etc-xinetd.d-tftp">/etc/xinetd.d/tftp</primary>
|
---|
599 | </indexterm>
|
---|
600 |
|
---|
601 | <indexterm zone="xinetd xinetd-config">
|
---|
602 | <primary sortas="e-etc-xinetd.d-systat">/etc/xinetd.d/systat</primary>
|
---|
603 | </indexterm>
|
---|
604 |
|
---|
605 | <indexterm zone="xinetd xinetd-config">
|
---|
606 | <primary sortas="e-etc-xinetd.d-finger">/etc/xinetd.d/finger</primary>
|
---|
607 | </indexterm>
|
---|
608 |
|
---|
609 | <indexterm zone="xinetd xinetd-config">
|
---|
610 | <primary sortas="e-etc-xinetd.d-netstat">/etc/xinetd.d/netstat</primary>
|
---|
611 | </indexterm>
|
---|
612 |
|
---|
613 | <indexterm zone="xinetd xinetd-config">
|
---|
614 | <primary sortas="e-etc-xinetd.d-echo">/etc/xinetd.d/echo</primary>
|
---|
615 | </indexterm>
|
---|
616 |
|
---|
617 | <indexterm zone="xinetd xinetd-config">
|
---|
618 | <primary sortas="e-etc-xinetd.d-chargen">/etc/xinetd.d/chargen</primary>
|
---|
619 | </indexterm>
|
---|
620 |
|
---|
621 | <indexterm zone="xinetd xinetd-config">
|
---|
622 | <primary sortas="e-etc-xinetd.d-daytime">/etc/xinetd.d/daytime</primary>
|
---|
623 | </indexterm>
|
---|
624 |
|
---|
625 | <indexterm zone="xinetd xinetd-config">
|
---|
626 | <primary sortas="e-etc-xinetd.d-time">/etc/xinetd.d/time</primary>
|
---|
627 | </indexterm>
|
---|
628 |
|
---|
629 | <indexterm zone="xinetd xinetd-config">
|
---|
630 | <primary sortas="e-etc-xinetd.d-rstatd">/etc/xinetd.d/rstatd</primary>
|
---|
631 | </indexterm>
|
---|
632 |
|
---|
633 | <indexterm zone="xinetd xinetd-config">
|
---|
634 | <primary sortas="e-etc-xinetd.d-rquotad">/etc/xinetd.d/rquotad</primary>
|
---|
635 | </indexterm>
|
---|
636 |
|
---|
637 | <indexterm zone="xinetd xinetd-config">
|
---|
638 | <primary sortas="e-etc-xinetd.d-ruserd">/etc/xinetd.d/ruserd</primary>
|
---|
639 | </indexterm>
|
---|
640 |
|
---|
641 | <indexterm zone="xinetd xinetd-config">
|
---|
642 | <primary sortas="e-etc-xinetd.d-sprayd">/etc/xinetd.d/sprayd</primary>
|
---|
643 | </indexterm>
|
---|
644 |
|
---|
645 | <indexterm zone="xinetd xinetd-config">
|
---|
646 | <primary sortas="e-etc-xinetd.d-walld">/etc/xinetd.d/walld</primary>
|
---|
647 | </indexterm>
|
---|
648 |
|
---|
649 | <indexterm zone="xinetd xinetd-config">
|
---|
650 | <primary sortas="e-etc-xinetd.d-irc">/etc/xinetd.d/irc</primary>
|
---|
651 | </indexterm>
|
---|
652 |
|
---|
653 | <para>The format of the <filename>/etc/xinetd.conf</filename> is
|
---|
654 | documented in the <filename>xinetd.conf.5</filename> man page. Further
|
---|
655 | information can be found at <ulink url="http://www.xinetd.org"/>.</para>
|
---|
656 |
|
---|
657 | </sect3>
|
---|
658 |
|
---|
659 | <sect3 id="xinetd-init">
|
---|
660 | <title>Boot Script</title>
|
---|
661 |
|
---|
662 | <para>As the <systemitem class="username">root</systemitem> user, install
|
---|
663 | the <filename>/etc/rc.d/init.d/xinetd</filename> init script included in
|
---|
664 | the <xref linkend="bootscripts"/> package.</para>
|
---|
665 |
|
---|
666 | <indexterm zone="xinetd xinetd-init">
|
---|
667 | <primary sortas="f-xinetd">xinetd</primary>
|
---|
668 | </indexterm>
|
---|
669 |
|
---|
670 | <screen role="root"><userinput>make install-xinetd</userinput></screen>
|
---|
671 |
|
---|
672 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
673 | use the new boot script to start <command>xinetd</command>:</para>
|
---|
674 |
|
---|
675 | <screen role="root"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
|
---|
676 |
|
---|
677 | <para>Checking the <filename>/var/log/daemon.log</filename> file
|
---|
678 | should prove quite entertaining. This file may contain entries
|
---|
679 | similar to the following:</para>
|
---|
680 |
|
---|
681 | <screen><literal>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
|
---|
682 | executable [line=29]
|
---|
683 | Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
|
---|
684 | DISABLING SERVICE [line=29]
|
---|
685 | Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
|
---|
686 | executable [line=42]</literal></screen>
|
---|
687 |
|
---|
688 | <para>These errors are because most of the servers
|
---|
689 | <command>xinetd</command> is trying to control are not
|
---|
690 | installed yet.</para>
|
---|
691 |
|
---|
692 | </sect3>
|
---|
693 |
|
---|
694 | </sect2>
|
---|
695 |
|
---|
696 | <sect2 role="content">
|
---|
697 | <title>Contents</title>
|
---|
698 |
|
---|
699 | <segmentedlist>
|
---|
700 | <segtitle>Installed Programs</segtitle>
|
---|
701 | <segtitle>Installed Libraries</segtitle>
|
---|
702 | <segtitle>Installed Directories</segtitle>
|
---|
703 |
|
---|
704 | <seglistitem>
|
---|
705 | <seg>itox, xconv.pl, and xinetd</seg>
|
---|
706 | <seg>None</seg>
|
---|
707 | <seg>/etc/xinetd.d/</seg>
|
---|
708 | </seglistitem>
|
---|
709 | </segmentedlist>
|
---|
710 |
|
---|
711 | <variablelist>
|
---|
712 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
713 | <?dbfo list-presentation="list"?>
|
---|
714 | <?dbhtml list-presentation="table"?>
|
---|
715 |
|
---|
716 | <varlistentry id="itox">
|
---|
717 | <term><command>itox</command></term>
|
---|
718 | <listitem>
|
---|
719 | <para>is a utility used for converting
|
---|
720 | <filename>inetd.conf</filename> files to
|
---|
721 | <filename>xinetd.conf</filename> format.</para>
|
---|
722 | <indexterm zone="xinetd itox">
|
---|
723 | <primary sortas="b-itox">itox</primary>
|
---|
724 | </indexterm>
|
---|
725 | </listitem>
|
---|
726 | </varlistentry>
|
---|
727 |
|
---|
728 | <varlistentry id="xconv.pl">
|
---|
729 | <term><command>xconv.pl</command></term>
|
---|
730 | <listitem>
|
---|
731 | <para>is a <application>Perl</application> script used for
|
---|
732 | converting <filename>inetd.conf</filename> files to
|
---|
733 | <filename>xinetd.conf</filename> format, similar to
|
---|
734 | <command>itox</command>.</para>
|
---|
735 | <indexterm zone="xinetd xconv.pl">
|
---|
736 | <primary sortas="b-xconv.pl">xconv.pl</primary>
|
---|
737 | </indexterm>
|
---|
738 | </listitem>
|
---|
739 | </varlistentry>
|
---|
740 |
|
---|
741 | <varlistentry id="xinetd-prog">
|
---|
742 | <term><command>xinetd</command></term>
|
---|
743 | <listitem>
|
---|
744 | <para>is the Internet services daemon.</para>
|
---|
745 | <indexterm zone="xinetd xinetd-prog">
|
---|
746 | <primary sortas="b-xinetd">xinetd</primary>
|
---|
747 | </indexterm>
|
---|
748 | </listitem>
|
---|
749 | </varlistentry>
|
---|
750 |
|
---|
751 | </variablelist>
|
---|
752 |
|
---|
753 | </sect2>
|
---|
754 |
|
---|
755 | </sect1>
|
---|