source: basicnet/netprogs/tcpwrappers.xml@ 25475f5

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 25475f5 was 25475f5, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Typo fix. Basicnet.

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

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