glfs/basicnet/netprogs/tcpwrappers/tcpwrappers-config.xml

28 lines
1.0 KiB
XML
Raw Normal View History

<sect2>
<title>Configuring tcpwrappers</title>
<sect3><title>Config files</title>
<para><filename>/etc/hosts.allow</filename>,
<filename>/etc/hosts.deny</filename></para>
<para>File protections: the wrapper, all files used by the wrapper,
and all directories in the path leading to those files, should be
accessible but not writable for unprivileged users (mode 755 or mode
555). Do not install the wrapper set-uid.</para>
<para>
Then perform the following edits on the
<filename>/etc/inetd.conf</filename> configuration file :
<screen><userinput>finger stream tcp nowait nobody /usr/sbin/in.fingerd in.fingerd</userinput></screen>
becomes:
<screen><userinput>finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd</userinput></screen></para>
<note><para>The finger server is used as an example here.</para></note>
<para>Similar changes must be made if xinetd is used, with the
emphasis being on calling <command>/usr/sbin/tcpd</command> instead of calling the
service daemon directly, and passing the name of the service daemon to
tcpd.</para>
</sect3>
</sect2>