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