source: archive/tcpwrappers.xml@ dfd51cd7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dfd51cd7 was 0d7900a, checked in by Randy McMurchy <randy@…>, 11 years ago

Removed extraneous spaces from blank lines and at the end of lines in the .xml

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

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