source: postlfs/security/tcpwrappers.xml@ ee122615

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 ee122615 was 59048cd9, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Remove xinetd

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

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