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