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