From owner-freebsd-questions Mon Oct 18 3:21:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hecate.webcom.com (hecate.webcom.com [209.1.28.39]) by hub.freebsd.org (Postfix) with ESMTP id 0AA4B14CF7 for ; Mon, 18 Oct 1999 03:21:09 -0700 (PDT) (envelope-from graeme@echidna.com) Received: from kigal.webcom.com (kigal.webcom.com [209.1.28.57]) by hecate.webcom.com (8.9.1/8.9.1) with SMTP id DAA00283; Mon, 18 Oct 1999 03:21:09 -0700 Received: from [204.143.69.56] by inanna.webcom.com (WebCom SMTP 1.2.1) with SMTP id 35303687; Mon Oct 18 03:15 PDT 1999 Message-Id: <380B1E96.1B27@echidna.com> Date: Mon, 18 Oct 1999 06:20:22 -0700 From: Graeme Tait Organization: Echidna X-Mailer: Mozilla 2.02 (Win16; I) Mime-Version: 1.0 To: "Jason C. Wells" Cc: George Vagner , questions@freebsd.org Subject: Re: ftp autologout References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jason C. Wells wrote: > > On Sun, 17 Oct 1999, George Vagner wrote: > > >how do I make it so users that forget to log out using > >ftp get automatically logged out? > > ftpd -T timeout in inetd.conf or wherever you start ftpd. > > man ftpd I had a similar problem to the original poster. What appeared to be happening in my case was that client connections were failing in mid transfer. This can apparently leave ftpd in an indefinite wait. I was advised to try the following to clear out these connections: # sysctl -w net.inet.tcp.always_keepalive=1 This seems to have done the job. I believe it kills idle connections after 4 hours. From man ftpd: -T A client may also request a different timeout period; the maximum period allowed may be set to timeout seconds with the -T option. The default limit is 2 hours. -t The inactivity timeout period is set to timeout seconds (the de- fault is 15 minutes). The clients I've used don't automatically up the timeout from the value set by -t, and so connections normally timeout after 15 minutes. Even if the client does increase the timeout, it is constrained by the -T setting, which defaults to 2 hours. From George's original post, you can see connections still alive that are days old. I assume he hadn't changed either timeout setting for ftpd. -- Graeme Tait - Echidna To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message