source: basicnet/netprogs/tcpwrappers.xml@ 0aeb696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5951 af4574ff-66df-0310-9fd7-8a98e5e911e0

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