[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY tcpwrappers-download-http "http://files.ichilton.co.uk/nfs/tcp_wrappers_&tcpwrappers-version;.tar.gz">
|
---|
[4f6275fd] | 8 | <!ENTITY tcpwrappers-download-ftp "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_&tcpwrappers-version;.tar.gz">
|
---|
[621e95c] | 9 | <!ENTITY tcpwrappers-md5 "e6fa25f71226d090f34de3f6b122fb5a">
|
---|
[b0c67c8b] | 10 | <!ENTITY tcpwrappers-size "97 KB">
|
---|
| 11 | <!ENTITY tcpwrappers-buildsize "1.04 MB">
|
---|
| 12 | <!ENTITY tcpwrappers-time "0.02 SBU">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[0f5698f] | 15 | <sect1 id="tcpwrappers" xreflabel="tcpwrappers-&tcpwrappers-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[00bb024c] | 20 | <?dbhtml filename="tcpwrappers.html"?>
|
---|
[0f5698f] | 21 | <title>tcpwrappers-&tcpwrappers-version;</title>
|
---|
| 22 |
|
---|
[d47e7ea9] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>tcpwrappers</application></title>
|
---|
| 25 |
|
---|
| 26 | <para>The <application>tcpwrappers</application> package provides daemon
|
---|
[b1623c2] | 27 | wrapper programs that report the name of the client requesting network
|
---|
| 28 | services and the requested service.</para>
|
---|
[d47e7ea9] | 29 |
|
---|
| 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink
|
---|
| 33 | url="&tcpwrappers-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink
|
---|
| 35 | url="&tcpwrappers-download-ftp;"/></para></listitem>
|
---|
[dc2f5ad] | 36 | <listitem><para>Download MD5 Sum: &tcpwrappers-md5;</para></listitem>
|
---|
[d47e7ea9] | 37 | <listitem><para>Download size: &tcpwrappers-size;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated Disk space required:
|
---|
| 39 | &tcpwrappers-buildsize;</para></listitem>
|
---|
| 40 | <listitem><para>Estimated build time:
|
---|
| 41 | &tcpwrappers-time;</para></listitem></itemizedlist>
|
---|
| 42 | </sect3>
|
---|
| 43 |
|
---|
| 44 | <sect3><title>Additional downloads</title>
|
---|
| 45 | <itemizedlist spacing='compact'>
|
---|
[07b157f4] | 46 | <listitem><para>Required Patch (Fixes some build issues and adds building of a shared library):
|
---|
[4f6275fd] | 47 | <ulink url="&patch-root;/tcp_wrappers-&tcpwrappers-version;-shared_lib_plus_plus-1.patch"/></para>
|
---|
| 48 | </listitem>
|
---|
[b600019] | 49 | <listitem><para>Required Patch (If compiled using <application>GCC</application>-3.4.x):
|
---|
| 50 | <ulink url="&patch-root;/tcp_wrappers-&tcpwrappers-version;-gcc34-1.patch"/></para>
|
---|
| 51 | </listitem>
|
---|
[d47e7ea9] | 52 | </itemizedlist>
|
---|
| 53 | </sect3>
|
---|
| 54 |
|
---|
| 55 | </sect2>
|
---|
| 56 |
|
---|
| 57 | <sect2>
|
---|
| 58 | <title>Installation of <application>tcpwrappers</application></title>
|
---|
| 59 |
|
---|
| 60 | <para>Install <application>tcpwrappers</application> with the following
|
---|
| 61 | commands:</para>
|
---|
| 62 |
|
---|
[4f6275fd] | 63 | <screen><userinput><command>patch -Np1 -i ../tcp_wrappers-&tcpwrappers-version;-shared_lib_plus_plus-1.patch &&
|
---|
[b600019] | 64 | patch -Np1 -i ../tcp_wrappers-&tcpwrappers-version;-gcc34-1.patch &&
|
---|
[d47e7ea9] | 65 | make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux &&
|
---|
| 66 | make install</command></userinput></screen>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2>
|
---|
| 71 | <title>Configuring <application>tcpwrappers</application></title>
|
---|
| 72 |
|
---|
| 73 | <sect3><title>Config files</title>
|
---|
| 74 | <para><filename>/etc/hosts.allow</filename>,
|
---|
| 75 | <filename>/etc/hosts.deny</filename></para>
|
---|
| 76 |
|
---|
| 77 | <para>File protections: the wrapper, all files used by the wrapper,
|
---|
| 78 | and all directories in the path leading to those files, should be
|
---|
| 79 | accessible but not writable for unprivileged users (mode 755 or mode
|
---|
| 80 | 555). Do not install the wrapper set-uid.</para>
|
---|
| 81 |
|
---|
| 82 | <para>Then perform the following edits on the
|
---|
| 83 | <filename>/etc/inetd.conf</filename> configuration file:</para>
|
---|
| 84 | <screen><userinput>finger stream tcp nowait nobody /usr/sbin/in.fingerd in.fingerd</userinput></screen>
|
---|
| 85 | <para>becomes:</para>
|
---|
| 86 | <screen><userinput>finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd</userinput></screen>
|
---|
| 87 |
|
---|
| 88 | <note><para>The finger server is used as an example here.</para></note>
|
---|
| 89 |
|
---|
[b600019] | 90 | <para>Similar changes must be made if <application>xinetd</application> is
|
---|
| 91 | used, with the emphasis being on calling <command>/usr/sbin/tcpd</command>
|
---|
| 92 | instead of calling the service daemon directly, and passing the name of the
|
---|
| 93 | service daemon to <command>tcpd</command>.</para>
|
---|
[d47e7ea9] | 94 | </sect3>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2>
|
---|
| 99 | <title>Contents</title>
|
---|
| 100 |
|
---|
| 101 | <para>The <application>tcpwrappers</application> package contains <command>
|
---|
| 102 | tcpd</command>, <command>tcpdchk</command>, <command>tcpdmatch</command>,
|
---|
[b600019] | 103 | <command>try-from</command>, <command>safe_finger</command> and the
|
---|
| 104 | <filename class='libraryfile'>libwrap</filename> libraries.</para>
|
---|
[d47e7ea9] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2><title>Description</title>
|
---|
| 108 |
|
---|
| 109 | <sect3><title>tcpd</title>
|
---|
| 110 | <para><command>tcpd</command> is the main access control daemon for all
|
---|
| 111 | Internet services, which <command>inetd</command> or
|
---|
| 112 | <command>xinetd</command> will run instead of running the
|
---|
| 113 | requested service daemon.</para></sect3>
|
---|
| 114 |
|
---|
| 115 | <sect3><title>tcpdchk</title>
|
---|
[b600019] | 116 | <para><command>tcpdchk</command> is a tool to examine a <command>tcpd</command>
|
---|
| 117 | wrapper configuration and report problems with it.</para></sect3>
|
---|
[d47e7ea9] | 118 |
|
---|
| 119 | <sect3><title>tcpdmatch</title>
|
---|
| 120 | <para><command>tcpdmatch</command> is used to predict how the tcp wrapper
|
---|
| 121 | would handle a specific request for a service.</para></sect3>
|
---|
| 122 |
|
---|
| 123 | <sect3><title>try-from</title>
|
---|
| 124 | <para><command>try-from</command> can be called via a remote shell command to
|
---|
| 125 | find out if the host name and address are properly recognized.</para></sect3>
|
---|
| 126 |
|
---|
| 127 | <sect3><title>safe_finger</title>
|
---|
[b600019] | 128 | <para><command>safe_finger</command> is a wrapper for the
|
---|
| 129 | <command>finger</command> utility, to provide automatic reverse name
|
---|
| 130 | lookups.</para></sect3>
|
---|
[d47e7ea9] | 131 |
|
---|
| 132 | </sect2>
|
---|
[0f5698f] | 133 |
|
---|
| 134 | </sect1>
|
---|
| 135 |
|
---|