Date: Tue, 16 Mar 2010 09:13:47 +0000 From: krad <kraduk@googlemail.com> To: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> Cc: FreeBSD <freebsd-questions@freebsd.org>, Tsu-Fan Cheng <tfcheng@gmail.com> Subject: Re: limit bandwidth on sftp Message-ID: <d36406631003160213s639b4942w84fbb1fab6bedbd3@mail.gmail.com> In-Reply-To: <44634xpv38.fsf@be-well.ilk.org> References: <f84c38581003131244p215e5dbci35705b0087c5f466@mail.gmail.com> <44634xpv38.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 15 March 2010 13:34, Lowell Gilbert < freebsd-questions-local@be-well.ilk.org> wrote: > Tsu-Fan Cheng <tfcheng@gmail.com> 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/<http://be-well.ilk.org/%7Elowell/> > _______________________________________________ > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d36406631003160213s639b4942w84fbb1fab6bedbd3>