[LARTC] Police to xxx mbit with port range

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux