Re: [bwm-tools-tech] Bandwidth monitor
Brought to you by:
nkukard
From: Nigel K. <nk...@lb...> - 2004-07-09 16:18:35
|
On Fri, Jul 09, 2004 at 04:14:44PM +0200, Kobe Lenjou wrote: > You are party right. >=20 > The point of bwm_tool is that you first categorize your traffic any way= =20 > IPtables let you do, so you can divide FTP from HTTP and put P2P traffic= =20 > aside in it's own class, you can also categorize on source IP. This is= =20 > handy if your clients have fixed Ip's (or ranges of IP's). Dear fan club... (*snicker*... *falls off chair*) :-) Anyway.... Kobe, that I think is be best solution... me, being as I am like to take the most complex route.... 1. there is a iptables match called connbytes, if you match traffic with this say at 32k... you could roughly determine if the person is downloading something (or viewing a large webpage) 2. when you match the traffic, you can use CONNMARK to mark it & restore the mark 3. if this mark matches that used in bwmd it will limit that traffic havn't used connbytes yet as it looks like it affects connlimit or something, but in theory it works. -Nigel |