Re: [LARTC] Controlling BandWidth but in specific ports

Linux Advanced Routing and Traffic Control

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

 



Hello,

You mean to get ports 20, 21, 22, 25, 80, 110 and 3128 to share one "64Kbit link"? or each have it's own "64Kbit link"?

If you want them all to share one link, I don't know what others would say, but I'd go with marking those packets with netfilter and then using the fwmark filter. You could mark the rest with a different value so they go to another class.

You can see an example in section 13.1 in the HOWTO:
http://www.ds9a.nl/2.4Routing/HOWTO//cvs/2.4routing/output/2.4routing-13.html#ss13.1

   tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:1
Being the command needed to filter packets marked with the value 1 (handle 1), for example.

If you want each to get it's own 64kbps, I'd think you need to use the u32 filter for each 64kbps class, specifying which port belongs to which class.

Was this it?

Cheers,

Rodrigo


On Mon, May 07, 2001 at 11:41:30AM +0000, Alexandra Alvarado wrote:
> hello, I'm Alexandra
> 
> I have a problem i need somebody help to me, i need to control all ports
> minus 1 the 5003 how can i do that, or if it can't do it, I only need
> control the 20, 21, 22, 25, 80, 110, 3128 ports for all have 64Kbit
> shaped.
> 
> Can somebody give me some example, i don't know how to specific it in
> "tc filter"
> 
> 
> Thanks
> 
> Alexandra
> 
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/



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