From owner-freebsd-questions@FreeBSD.ORG Mon Mar 22 11:53:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D27A610656C0 for ; Mon, 22 Mar 2010 11:53:22 +0000 (UTC) (envelope-from ghirai@ghirai.com) Received: from ghirai.com (ghirai.com [91.204.208.13]) by mx1.freebsd.org (Postfix) with ESMTP id 9DAB08FC16 for ; Mon, 22 Mar 2010 11:53:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ghirai.com (Postfix) with ESMTPSA id 5BD7C16F47; Mon, 22 Mar 2010 11:53:04 +0000 (GMT) Date: Mon, 22 Mar 2010 13:53:10 +0200 From: Ghirai To: Vincent Hoffman Message-Id: <20100322135310.93d206ce.ghirai@ghirai.com> In-Reply-To: <4BA67994.1000506@unsane.co.uk> References: <4BA67994.1000506@unsane.co.uk> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.7; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Dan Naumov , freebsd-questions@freebsd.org Subject: Re: sftp server with speed throttling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2010 11:53:22 -0000 On Sun, 21 Mar 2010 19:55:00 +0000 Vincent Hoffman wrote: > On 21/03/2010 13:53, Dan Naumov wrote: > > What are my options if I want to run an sftp server with speed > > throttling? My understanding is that openssh (which includes sftp) > > in base does not support this directly, so I would have to either > > use a custom kernel with ALTQ (and I would really rather stick to > > GENERIC so I can use freebsd-update) which sounds like a bit too > > much configuration work or pass sftp traffic through PF and > > throttle it (ugly, would also affect ssh traffic). > > > > Are there any sftp servers with directly built-in functionality for > > this? I just would to be able to set limits for upload speed > > globally for the entire server and preferably to also be able to do > > speed settings on a per-user basis. > > > A quick google indicates there are at least 2 sftp servers with this > functionality, > http://www.proftpd.org/docs/contrib/mod_sftp.html > http://mysecureshell.sourceforge.net/en/index.html > > Proftpd with mod_sftp needs the proftp-devel port so I'm guessing its > still in testing but at least its in ports. > No idea about the mysecureshell program, its not in ports. > > I havent actually tried with of these so no idea how well they work, > good luck. > I used pure-ftpd, and it's pretty awesome. http://www.pureftpd.org/project/pure-ftpd