From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 09:13:49 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 D816D1065687 for ; Tue, 16 Mar 2010 09:13:49 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 67F918FC08 for ; Tue, 16 Mar 2010 09:13:48 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e12so73944fga.13 for ; Tue, 16 Mar 2010 02:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=VCX3u87mOijMHKAWTTbbu8nE5Kv88x9eukvfgOyUkRc=; b=E/9PjIbvPeX4HJYZ7RrBFBjqWLKbcv8KPOVsU+XQu7v4L4nXcNc5UaWCwRS6pQbrnL ktnMFImIyWpDCxFd8Az0z8rnqJYyLRe3y7OOxzonwzZErc7VPK7m9nYfrTJSKYQKdMyj neXPU/PzOokJY9fzrcFqkOPtyyjaw+oduJpzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xPsE6x3AEYhGAGr1asExdcrje/SUT6P3+ijd7IlqrU8WiHaK80jo4UdoX+V0pOPrlk nne/hsvuyUyayjJRORiYUYd6SLW6nA2GLFpl/bazkWDrU1OP+m173o2tvUtRJ4/9ytno 5qvimr2E8wqUMq9B75wCBcOoSI8PRSNuZscI8= MIME-Version: 1.0 Received: by 10.239.187.129 with SMTP id l1mr1008686hbh.86.1268730828052; Tue, 16 Mar 2010 02:13:48 -0700 (PDT) In-Reply-To: <44634xpv38.fsf@be-well.ilk.org> References: <44634xpv38.fsf@be-well.ilk.org> Date: Tue, 16 Mar 2010 09:13:47 +0000 Message-ID: From: krad To: Lowell Gilbert Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD , Tsu-Fan Cheng Subject: Re: limit bandwidth on sftp 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: Tue, 16 Mar 2010 09:13:50 -0000 On 15 March 2010 13:34, Lowell Gilbert < freebsd-questions-local@be-well.ilk.org> wrote: > Tsu-Fan Cheng writes: > > > I need to limit my sftp session bandwidth to 20K, can someone show me > how > > to do it? thank you! > > There's no simple way to do that. > > scp has such a capability, though; maybe using that is your easiest option? > > -- > Lowell Gilbert, embedded/networking software engineer, Boston area > http://be-well.ilk.org/~lowell/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > You could limit port 22 with pf, ipfw etc. This would slow all you ssh traffic rather than just sftp which may or may not work for you. If you are clever with your rule sets you could guarantee bw for certain hosts so they dont loose a functional ssh session and/or you could bw limit it by source ip, rather than a global limit for port 22.