From: TJ S. <cas...@us...> - 2010-01-05 17:05:05
|
Update of /cvsroot/pdd/www.proftpd.org/docs/howto In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32094 Modified Files: ServerType.html Log Message: Updating website copy of ServerType howto. Index: ServerType.html =================================================================== RCS file: /cvsroot/pdd/www.proftpd.org/docs/howto/ServerType.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ServerType.html 17 Aug 2007 00:11:26 -0000 1.1 --- ServerType.html 5 Jan 2010 17:04:54 -0000 1.2 *************** *** 56,60 **** </pre> The <code>inetd.conf</code> man pages discuss these fields in greater detail. ! See the ProFTPD User's Guide for an <a href="http://proftpd.linux.co.uk/localsite/Userguide/linked/c1090.html#AEN1173">example</a> xinetd configuration. <p><a name="InetdIPv6"></a> --- 56,76 ---- </pre> The <code>inetd.conf</code> man pages discuss these fields in greater detail. ! ! <p> ! An example <code>xinetd</code> configuration is: ! <pre> ! service ftp ! { ! disable = no ! flags = REUSE ! socket_type = stream ! wait = no ! user = root ! server = /usr/sbin/proftpd ! server_args = -c /etc/proftpd.conf ! } ! </pre> ! The xinetd configuration is usually found in <code>/etc/xinetd.conf</code> ! or in the <code>/etc/xinetd.d/</code> directory. <p><a name="InetdIPv6"></a> *************** *** 154,158 **** configuration. ! <p> <b>Switching Modes</b><br> Changing from one <code>ServerType</code> mode to the other is a simple --- 170,174 ---- configuration. ! <p><a name="Switching"> <b>Switching Modes</b><br> Changing from one <code>ServerType</code> mode to the other is a simple *************** *** 185,188 **** --- 201,242 ---- is there. + <p><a name="FAQ"> + <b>Frequently Asked Questions</b><br> + + <font color=red>Question</font>: I have configured: + <pre> + IdentLookups off + ServerIdent off + </pre> + in my <code>proftpd.conf</code>, but my logins are still slow. Why?<br> + <font color=blue>Answer</font>: Another source of slow logins can be + <code>xinetd</code>, or <code>tcpwrappers</code> compiled for reverse DNS + lookups (<i>i.e.</i> with the <code>-DPARANOID</code> option). + + <p> + If you are using <code>ServerType inetd</code>, <i>and</i> you are using + <code>xinetd</code> to run <code>proftpd</code>, then you should check your + <code>/etc/xinetd.conf</code> (or <code>/etc/xinetd.d/proftpd</code> or + similar) file for the <code>USERID</code> parameter, <i>e.g.</i>: + <pre> + log_on_success += DURATION USERID + log_on_failure += USERID + </pre> + As per the <code>xinetd.conf</code> documentation, the use of + <code>USERID</code> in your configuration causes <code>xinetd</code> to do + an IDENTD lookup: + <pre> + USERID logs the user id of the remote user using + the RFC 1413 identification protocol. + This option is available only for multi- + threaded stream services. + </pre> + Removing <code>USERID</code> from your <code>xinetd</code> configuration + for proftpd often suffices to fix the slow logins. + + <p> + Another solution is simply to <a href="#Switching">switch</a> your + <code>ServerType</code> to "standalone". + <p> <hr> |