[d47e7ea9] | 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" [
|
---|
[d47e7ea9] | 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">
|
---|
[0d1d489] | 9 | <!ENTITY tcpwrappers-md5sum "e6fa25f71226d090f34de3f6b122fb5a">
|
---|
[b0c67c8b] | 10 | <!ENTITY tcpwrappers-size "97 KB">
|
---|
[c18c49fe] | 11 | <!ENTITY tcpwrappers-buildsize "1.09 MB">
|
---|
| 12 | <!ENTITY tcpwrappers-time "0.03 SBU">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[0f5698f] | 15 | <sect1 id="tcpwrappers" xreflabel="tcpwrappers-&tcpwrappers-version;">
|
---|
[0d1d489] | 16 | <?dbhtml filename="tcpwrappers.html"?>
|
---|
[bab92281] | 17 |
|
---|
[0d1d489] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[4dbbf634] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">tcp_wrappers_&tcpwrappers-version;.tar</keyword>
|
---|
| 23 | <keyword role="ftptdir">tcp_wrappers</keyword>
|
---|
| 24 | </keywordset>
|
---|
[0d1d489] | 25 | </sect1info>
|
---|
[bab92281] | 26 |
|
---|
[0d1d489] | 27 | <title>Tcpwrappers-&tcpwrappers-version;</title>
|
---|
[bab92281] | 28 |
|
---|
[0d1d489] | 29 | <indexterm zone="tcpwrappers">
|
---|
| 30 | <primary sortas="a-Tcpwrappers">Tcpwrappers</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Tcpwrappers</title>
|
---|
| 35 |
|
---|
[17e6d48] | 36 | <para>The <application>tcpwrappers</application> package provides daemon
|
---|
| 37 | wrapper programs that report the name of the client requesting network
|
---|
[bab92281] | 38 | services and the requested service.</para>
|
---|
| 39 |
|
---|
[0d1d489] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&tcpwrappers-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&tcpwrappers-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &tcpwrappers-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &tcpwrappers-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &tcpwrappers-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[2174baa] | 58 | <para>Estimated build time: &tcpwrappers-time;</para>
|
---|
| 59 | </listitem>
|
---|
[0d1d489] | 60 | </itemizedlist>
|
---|
[bab92281] | 61 |
|
---|
[0d1d489] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing='compact'>
|
---|
| 64 | <listitem>
|
---|
[17e6d48] | 65 | <para>Required Patch (Fixes some build issues and adds building of a
|
---|
| 66 | shared library): <ulink
|
---|
[0d1d489] | 67 | url="&patch-root;/tcp_wrappers-&tcpwrappers-version;-shared_lib_plus_plus-1.patch"/></para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[bab92281] | 70 |
|
---|
[0d1d489] | 71 | </sect2>
|
---|
[bab92281] | 72 |
|
---|
[0d1d489] | 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of Tcpwrappers</title>
|
---|
| 75 |
|
---|
[17e6d48] | 76 | <para>Install <application>tcpwrappers</application> with the following
|
---|
[0d1d489] | 77 | commands:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput>patch -Np1 -i ../tcp_wrappers-&tcpwrappers-version;-shared_lib_plus_plus-1.patch &&
|
---|
[0e92f49] | 80 | sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c &&
|
---|
[0d1d489] | 81 | make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux</userinput></screen>
|
---|
[bab92281] | 82 |
|
---|
[0d1d489] | 83 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[bab92281] | 84 |
|
---|
[0d1d489] | 85 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[bab92281] | 86 |
|
---|
[0d1d489] | 87 | </sect2>
|
---|
[bab92281] | 88 |
|
---|
[0d1d489] | 89 | <sect2 role="commands">
|
---|
| 90 | <title>Command Explanations</title>
|
---|
[bab92281] | 91 |
|
---|
[17e6d48] | 92 | <para><command>sed -i -e ... scaffold.c</command>: This command removes an
|
---|
| 93 | obsolete C declaration which causes the build to fail if using
|
---|
[0d1d489] | 94 | <application>GCC-3.4.x</application>.</para>
|
---|
[bab92281] | 95 |
|
---|
[0d1d489] | 96 | </sect2>
|
---|
[bab92281] | 97 |
|
---|
[0d1d489] | 98 | <sect2 role="configuration">
|
---|
| 99 | <title>Configuring Tcpwrappers</title>
|
---|
| 100 |
|
---|
| 101 | <sect3 id="tcpwrappers-config">
|
---|
| 102 | <title>Config Files</title>
|
---|
[bab92281] | 103 |
|
---|
[17e6d48] | 104 | <para><filename>/etc/hosts.allow</filename> and
|
---|
[0d1d489] | 105 | <filename>/etc/hosts.deny</filename></para>
|
---|
[bab92281] | 106 |
|
---|
[0d1d489] | 107 | <indexterm zone="tcpwrappers tcpwrappers-config">
|
---|
| 108 | <primary sortas="e-etc-hosts.allow">/etc/hosts.allow</primary>
|
---|
| 109 | </indexterm>
|
---|
[bab92281] | 110 |
|
---|
[0d1d489] | 111 | <indexterm zone="tcpwrappers tcpwrappers-config">
|
---|
| 112 | <primary sortas="e-etc-hosts.deny">/etc/hosts.deny</primary>
|
---|
| 113 | </indexterm>
|
---|
[bab92281] | 114 |
|
---|
[0d1d489] | 115 | <para>File protections: the wrapper, all files used by the wrapper,
|
---|
| 116 | and all directories in the path leading to those files, should be
|
---|
| 117 | accessible but not writable for unprivileged users (mode 755 or mode
|
---|
| 118 | 555). Do not install the wrapper set-uid.</para>
|
---|
[bab92281] | 119 |
|
---|
[17e6d48] | 120 | <para>As the <systemitem class="username">root</systemitem> user,
|
---|
[0d1d489] | 121 | perform the following edits on the
|
---|
| 122 | <filename>/etc/inetd.conf</filename> configuration file:</para>
|
---|
[bab92281] | 123 |
|
---|
[0d1d489] | 124 | <indexterm zone="tcpwrappers tcpwrappers-config">
|
---|
| 125 | <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
|
---|
| 126 | </indexterm>
|
---|
| 127 |
|
---|
| 128 | <screen><literal>finger stream tcp nowait nobody /usr/sbin/in.fingerd in.fingerd</literal></screen>
|
---|
| 129 |
|
---|
| 130 | <para>becomes:</para>
|
---|
[bab92281] | 131 |
|
---|
[0d1d489] | 132 | <screen><literal>finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd</literal></screen>
|
---|
| 133 |
|
---|
| 134 | <note>
|
---|
| 135 | <para>The <command>finger</command> server is used as an example here.</para>
|
---|
| 136 | </note>
|
---|
[bab92281] | 137 |
|
---|
[17e6d48] | 138 | <para>Similar changes must be made if <application>xinetd</application> is
|
---|
[bab92281] | 139 | used, with the emphasis being on calling <command>/usr/sbin/tcpd</command>
|
---|
[17e6d48] | 140 | instead of calling the service daemon directly, and passing the name of the
|
---|
[0d1d489] | 141 | service daemon to <command>tcpd</command>.</para>
|
---|
[bab92281] | 142 |
|
---|
[0d1d489] | 143 | <indexterm zone="tcpwrappers tcpwrappers-config">
|
---|
| 144 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
| 145 | </indexterm>
|
---|
[bab92281] | 146 |
|
---|
[0d1d489] | 147 | </sect3>
|
---|
[bab92281] | 148 |
|
---|
[0d1d489] | 149 | </sect2>
|
---|
[bab92281] | 150 |
|
---|
[0d1d489] | 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Library</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 158 |
|
---|
[0d1d489] | 159 | <seglistitem>
|
---|
| 160 | <seg>tcpd, tcpdchk, tcpdmatch, try-from, and safe_finger</seg>
|
---|
| 161 | <seg>libwrap.[so,a]</seg>
|
---|
| 162 | <seg>None</seg>
|
---|
| 163 | </seglistitem>
|
---|
| 164 | </segmentedlist>
|
---|
[bab92281] | 165 |
|
---|
[0d1d489] | 166 | <variablelist>
|
---|
| 167 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 168 | <?dbfo list-presentation="list"?>
|
---|
| 169 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 170 |
|
---|
[0d1d489] | 171 | <varlistentry id="tcpd">
|
---|
| 172 | <term><command>tcpd</command></term>
|
---|
| 173 | <listitem>
|
---|
[17e6d48] | 174 | <para>is the main access control daemon for all Internet services,
|
---|
[0d1d489] | 175 | which <command>inetd</command> or <command>xinetd</command>
|
---|
| 176 | will run instead of running the requested service daemon.</para>
|
---|
| 177 | <indexterm zone="tcpwrappers tcpd">
|
---|
| 178 | <primary sortas="b-tcpd">tcpd</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
[bab92281] | 182 |
|
---|
[0d1d489] | 183 | <varlistentry id="tcpdchk">
|
---|
| 184 | <term><command>tcpdchk</command></term>
|
---|
| 185 | <listitem>
|
---|
[17e6d48] | 186 | <para>is a tool to examine a <command>tcpd</command> wrapper
|
---|
[0d1d489] | 187 | configuration and report problems with it.</para>
|
---|
| 188 | <indexterm zone="tcpwrappers tcpdchk">
|
---|
| 189 | <primary sortas="b-tcpdchk">tcpdchk</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
[bab92281] | 193 |
|
---|
[0d1d489] | 194 | <varlistentry id="tcpdmatch">
|
---|
| 195 | <term><command>tcpdmatch</command></term>
|
---|
| 196 | <listitem>
|
---|
[17e6d48] | 197 | <para>is used to predict how the TCP wrapper
|
---|
[0d1d489] | 198 | would handle a specific request for a service.</para>
|
---|
| 199 | <indexterm zone="tcpwrappers tcpdmatch">
|
---|
| 200 | <primary sortas="b-tcpdmatch">tcpdmatch</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
[bab92281] | 204 |
|
---|
[0d1d489] | 205 | <varlistentry id="try-from">
|
---|
| 206 | <term><command>try-from</command></term>
|
---|
| 207 | <listitem>
|
---|
[17e6d48] | 208 | <para>can be called via a remote shell command to find out if the
|
---|
[0d1d489] | 209 | host name and address are properly recognized.</para>
|
---|
| 210 | <indexterm zone="tcpwrappers try-from">
|
---|
| 211 | <primary sortas="b-try-from">try-from</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[bab92281] | 215 |
|
---|
[0d1d489] | 216 | <varlistentry id="safe_finger">
|
---|
| 217 | <term><command>safe_finger</command></term>
|
---|
| 218 | <listitem>
|
---|
[17e6d48] | 219 | <para>is a wrapper for the <command>finger</command> utility, to
|
---|
[0d1d489] | 220 | provide automatic reverse name lookups.</para>
|
---|
| 221 | <indexterm zone="tcpwrappers safe_finger">
|
---|
| 222 | <primary sortas="b-safe_finger">safe_finger</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
[bab92281] | 226 |
|
---|
[0d1d489] | 227 | <varlistentry id="libwrap">
|
---|
| 228 | <term><filename class='libraryfile'>libwrap.[so,a]</filename></term>
|
---|
| 229 | <listitem>
|
---|
[17e6d48] | 230 | <para>contains the API functions required by
|
---|
| 231 | the <application>tcpwrappers</application> programs as well as other programs
|
---|
[0d1d489] | 232 | to become <quote><application>tcpwrappers</application>-aware</quote>.</para>
|
---|
| 233 | <indexterm zone="tcpwrappers libwrap">
|
---|
| 234 | <primary sortas="c-libwrap">libwrap.[so,a]</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
[bab92281] | 238 |
|
---|
[0d1d489] | 239 | </variablelist>
|
---|
| 240 |
|
---|
| 241 | </sect2>
|
---|
[0f5698f] | 242 |
|
---|
| 243 | </sect1>
|
---|
| 244 |
|
---|