From mboxrd@z Thu Jan 1 00:00:00 1970 From: james jones Date: Mon, 12 May 2003 16:39:19 +0000 Subject: RE: [LARTC] Limit bandwidth per client Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org ~From: Stuart Mackintosh ~Date: 12 May 2003 17:08:10 +0100 ~Subject: [LARTC] Limit bandwidth per client ~Hi all, ~I have an installation where each user on subnet 192.168.1.0/24 is ~connected via a multiplexer. ~The problem is that if any client uses more than about 48Kb/s, the ~multiplexer crashes. ~I need to limit each client to under this rate, say 32Kb/s. I have ~seen ~examples on creating a class per host but is there a simple way of ~saying "any host from 192.168.1.0/24" so I dont have 253 rules? Yeah, I think I can answer this :-). Upload mark iptables -t mangle -A FORWARD -s 192.168.0.0/24 -j MARK --set-mark 4 Download mark iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/24 -d 192.168.0.0/24 -j MARK --set-mark 5 Then if you are using htb: just make your root qdisk, classes, filters, and then the qdisk. James ~Many thanks. ~stuart ~-- ~ | http://www.opusvl.com ~ | T: 08717 50 40 02 ~ | F: 08717 50 40 03 ~ | E: sm@opusvl.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/