source: basicnet/netprogs/tcpwrappers.xml@ f420f67

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 f420f67 was bab92281, checked in by Randy McMurchy <randy@…>, 19 years ago

Removed spaces from blank lines and excess spaces from the end of XML data

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

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