Quote:
Originally Posted by alexxxutz
I discovered that i can use TC and IPTABLES for limiting bandwidth on SSH per linux user.
First i added the command:
Code:
iptables -t mangle -A OUTPUT -p tcp -m owner --uid-owner test -j MARK --set-mark 1
to mark packet.
Then i used this script to limit bandwidth:
|
--uid-owner only works with OUTPUT or PREROUTING, yet the bash script sets up two tc flows for upload/download. The iptables command above only works for packets originating from the owner ("test" in that case), correct? Thus it only applies to upstream packets. How would I throttle download speed, too?