Hi, I want to POLICE to a certain bw in one direction only - over a range of 500 ports. Is this possible and if so could someone please give me some pointers to the configuration and any Kernel requirements necessary. Many thanks, Mark
On Sunday 10 February 2002 23:25, Mark beck wrote:> Hi, > > I want to POLICE to a certain bw in one direction only - over a range of > 500 ports. Is this possible and if so could someone please give me some > pointers to the configuration and any Kernel requirements necessary.RTFM : http://ds9a.nl/2.4Routing/HOWTO/cvs/2.4routing/output/2.4routing.html Stef -- stef.coene@docum.org More QOS info : http://www.docum.org/ Title : "Using Linux as bandwidth manager"
Oh so helpful! In the howto it only mentions how to do this on a single port basis - and I cant find TC documentation: # tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 80 0xffff flowid 10:1 I assume after the 80 we have a hex mask, so would the following match ports 10240->10751? # tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 10240 0x200 flowid 10:1 Thanks in advance, Mark At 11:04 11/02/2002 +0100, Stef Coene wrote:>On Sunday 10 February 2002 23:25, Mark beck wrote: > > Hi, > > > > I want to POLICE to a certain bw in one direction only - over a range of > > 500 ports. Is this possible and if so could someone please give me some > > pointers to the configuration and any Kernel requirements necessary. >RTFM : http://ds9a.nl/2.4Routing/HOWTO/cvs/2.4routing/output/2.4routing.html > >Stef > > >-- > >stef.coene@docum.org > More QOS info : http://www.docum.org/ > Title : "Using Linux as bandwidth manager"
On Monday 11 February 2002 23:32, Mark Beck wrote:> Oh so helpful! > > In the howto it only mentions how to do this on a single port basis - and I > cant find TC documentation: > > # tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport > 80 0xffff flowid 10:1 > > I assume after the 80 we have a hex mask, so would the following match > ports 10240->10751? > > # tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport > 10240 0x200 flowid 10:1Goog guess :-) But I never tried it myself. Stef -- stef.coene@docum.org More QOS info : http://www.docum.org/ Title : "Using Linux as bandwidth manager"