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