Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Pat Erler on February 27, 2003, 08:40:33 PM

Title: slowing down outgoing traffic (no shaping)
Post by: Pat Erler on February 27, 2003, 08:40:33 PM
hi!

i'm in need to slow down a program which runs /on the server/ and which sends on specific ports on ppp0 until the upload bandwidth saturates. the problem is, i cannot fully control this behaviour at the program level itself, so i have to find a way to limit the used bandwidth afterwards.

my first thougt was CBQ, but this seems to limit the bandwidth only for traffic going /thru/ the server, not coming /from/ it.

so i thought about dropping every second packet on port X with an iptable rule "-m nth --every 2". not fully understanding the mechanisms of the firewall of SME 5.6 yet, i ask if someone could give me a hint where this rule is put best. i thought about somewhere in the PortOpening module which i installed and which opens the respective port in the first place...

regards,

PAT
Title: Re: slowing down outgoing traffic (no shaping)
Post by: hanscees on March 05, 2003, 11:16:40 PM
with cbq you can shape coming form the server fine.
see http://lartc.org/

The limit stuff is very unsuitable for what you want.

hanscees