source: basicnet/netprogs/tcpwrappers.xml@ c18c49fe

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 c18c49fe was c18c49fe, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated build entities and added indexing tags to the tcpwrappers instructions

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

  • Property mode set to 100644
File size: 7.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
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">
8 <!ENTITY tcpwrappers-download-ftp "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_&tcpwrappers-version;.tar.gz">
9 <!ENTITY tcpwrappers-md5 "e6fa25f71226d090f34de3f6b122fb5a">
10 <!ENTITY tcpwrappers-size "97 KB">
11 <!ENTITY tcpwrappers-buildsize "1.09 MB">
12 <!ENTITY tcpwrappers-time "0.03 SBU">
13]>
14
15<sect1 id="tcpwrappers" xreflabel="tcpwrappers-&tcpwrappers-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="tcpwrappers.html"?>
21<title>tcpwrappers-&tcpwrappers-version;</title>
22<indexterm zone="tcpwrappers">
23<primary sortas="a-Tcpwrappers">Tcpwrappers</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>tcpwrappers</application></title>
27
28<para>The <application>tcpwrappers</application> package provides daemon
29wrapper programs that report the name of the client requesting network
30services and the requested service.</para>
31
32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP): <ulink
35url="&tcpwrappers-download-http;"/></para></listitem>
36<listitem><para>Download (FTP): <ulink
37url="&tcpwrappers-download-ftp;"/></para></listitem>
38<listitem><para>Download MD5 Sum: &tcpwrappers-md5;</para></listitem>
39<listitem><para>Download size: &tcpwrappers-size;</para></listitem>
40<listitem><para>Estimated disk space required:
41&tcpwrappers-buildsize;</para></listitem>
42<listitem><para>Estimated build time:
43&tcpwrappers-time;</para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title>Additional downloads</title>
47<itemizedlist spacing='compact'>
48<listitem><para>Required Patch (Fixes some build issues and adds building of a
49shared library): <ulink
50url="&patch-root;/tcp_wrappers-&tcpwrappers-version;-shared_lib_plus_plus-1.patch"/>
51</para></listitem>
52</itemizedlist>
53</sect3>
54
55</sect2>
56
57<sect2>
58<title>Installation of <application>tcpwrappers</application></title>
59
60<para>Install <application>tcpwrappers</application> with the following
61commands:</para>
62
63<screen><userinput><command>patch -Np1 -i ../tcp_wrappers-&tcpwrappers-version;-shared_lib_plus_plus-1.patch &amp;&amp;
64sed -i -e "s,^extern char \*malloc();,/* &amp; */," scaffold.c &amp;&amp;
65make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux &amp;&amp;
66make install</command></userinput></screen>
67
68</sect2>
69
70<sect2>
71<title>Command explanations</title>
72
73<para><command>sed -i -e ... scaffold.c</command>: This command removes an
74obsolete C declaration which causes the build to fail if using
75<application><acronym>GCC</acronym>-3.4.x</application>.</para>
76
77</sect2>
78
79<sect2>
80<title>Configuring <application>tcpwrappers</application></title>
81
82<sect3 id="tcpwrappers-config"><title>Config files</title>
83<para><filename>/etc/hosts.allow</filename> and
84<filename>/etc/hosts.deny</filename></para>
85<indexterm zone="tcpwrappers tcpwrappers-config">
86<primary sortas="e-etc-hosts.allow">/etc/hosts.allow</primary></indexterm>
87<indexterm zone="tcpwrappers tcpwrappers-config">
88<primary sortas="e-etc-hosts.deny">/etc/hosts.deny</primary></indexterm>
89
90<para>File protections: the wrapper, all files used by the wrapper,
91and all directories in the path leading to those files, should be
92accessible but not writable for unprivileged users (mode 755 or mode
93555). Do not install the wrapper set-uid.</para>
94
95<para>Then perform the following edits on the
96<filename>/etc/inetd.conf</filename> configuration file:</para>
97<indexterm zone="tcpwrappers tcpwrappers-config">
98<primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary></indexterm>
99
100<screen><userinput>finger stream tcp nowait nobody /usr/sbin/in.fingerd in.fingerd</userinput></screen>
101<para>becomes:</para>
102<screen><userinput>finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd</userinput></screen>
103
104<note><para>The finger server is used as an example here.</para></note>
105
106<para>Similar changes must be made if <application>xinetd</application> is
107used, with the emphasis being on calling <command>/usr/sbin/tcpd</command>
108instead of calling the service daemon directly, and passing the name of the
109service daemon to <command>tcpd</command>.</para>
110<indexterm zone="tcpwrappers tcpwrappers-config">
111<primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary></indexterm>
112</sect3>
113
114</sect2>
115
116<sect2>
117<title>Contents</title>
118
119<segmentedlist>
120<segtitle>Installed Programs</segtitle>
121<segtitle>Installed Library</segtitle>
122<segtitle>Installed Directories</segtitle>
123
124<seglistitem>
125<seg>tcpd, tcpdchk, tcpdmatch, try-from and safe_finger</seg>
126<seg>libwrap.[so,a]</seg>
127<seg>None</seg>
128</seglistitem>
129</segmentedlist>
130
131<variablelist>
132<bridgehead renderas="sect3">Short Descriptions</bridgehead>
133<?dbfo list-presentation="list"?>
134
135<varlistentry id="tcpd">
136<term><command>tcpd</command></term>
137<listitem><para>is the main access control daemon for all Internet services,
138which <command>inetd</command> or <command>xinetd</command> will run instead
139of running the requested service daemon.</para>
140<indexterm zone="tcpwrappers tcpd">
141<primary sortas="b-tcpd">tcpd</primary>
142</indexterm></listitem>
143</varlistentry>
144
145<varlistentry id="tcpdchk">
146<term><command>tcpdchk</command></term>
147<listitem><para>is a tool to examine a <command>tcpd</command> wrapper
148configuration and report problems with it.</para>
149<indexterm zone="tcpwrappers tcpdchk">
150<primary sortas="b-tcpdchk">tcpdchk</primary>
151</indexterm></listitem>
152</varlistentry>
153
154<varlistentry id="tcpdmatch">
155<term><command>tcpdmatch</command></term>
156<listitem><para>is used to predict how the <acronym>TCP</acronym> wrapper
157would handle a specific request for a service.</para>
158<indexterm zone="tcpwrappers tcpdmatch">
159<primary sortas="b-tcpdmatch">tcpdmatch</primary>
160</indexterm></listitem>
161</varlistentry>
162
163<varlistentry id="try-from">
164<term><command>try-from</command></term>
165<listitem><para>can be called via a remote shell command to find out if the
166host name and address are properly recognized.</para>
167<indexterm zone="tcpwrappers try-from">
168<primary sortas="b-try-from">try-from</primary>
169</indexterm></listitem>
170</varlistentry>
171
172<varlistentry id="safe_finger">
173<term><command>safe_finger</command></term>
174<listitem><para>is a wrapper for the <command>finger</command> utility, to
175provide automatic reverse name lookups.</para>
176<indexterm zone="tcpwrappers safe_finger">
177<primary sortas="b-safe_finger">safe_finger</primary>
178</indexterm></listitem>
179</varlistentry>
180
181<varlistentry id="libwrap">
182<term><filename class='libraryfile'>libwrap.[so,a]</filename></term>
183<listitem><para>contains the <acronym>API</acronym> functions required by
184the <application>tcpwrappers</application> programs as well as other programs
185to become <quote><application>tcpwrappers</application>-aware</quote>.</para>
186<indexterm zone="tcpwrappers libwrap">
187<primary sortas="c-libwrap">libwrap.[so,a]</primary>
188</indexterm></listitem>
189</varlistentry>
190
191</variablelist>
192
193</sect2>
194
195</sect1>
196
Note: See TracBrowser for help on using the repository browser.