• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

throttle sftp connected to linux?

oog

Golden Member
hello,

i have a linux (gentoo) machine at home that i use to do various things. occasionally, while i'm away from home, i transfer files through sftp. i think that this file transfer puts additional load on my upstream bandwidth at home, and i would like to throttle it to a certain level if that's possible. does anyone have any pointers to how i would do this?

thanks!
 
There are throttling modules for netfilter, I believe. You could also use ALTQ on a BSD machine in front of the linux box. 😉
 
i started to take a look at netfilter, but most of the information i see on throttling is on a per-interface basis where the machine running the netfilter rules is acting as a router. is this possible to do on the same machine that is supporting the sftp?
 
Originally posted by: oog
i started to take a look at netfilter, but most of the information i see on throttling is on a per-interface basis where the machine running the netfilter rules is acting as a router. is this possible to do on the same machine that is supporting the sftp?

It should be possible. I can't think of a reason it wouldn't be...
 
Simple solution would be to create netfilter rule which matches traffic you want and marks it (-j MARK).
Now, with tc you should use TBF (with specified rate).

This might seem to be a little to much for such primitive task, however it is rather simple and you will be "ready" for any limiting/shaping you might need later.
On how do it, consult howto
 
Back
Top