Re: how to define a port range?

Linux Advanced Routing and Traffic Control

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

 



On Mer 20 juillet 2005 16:11, Thorsten Gehrig a écrit :
> hi,
> i´am new in tcc (tcng). i try to define my qos for VoIP-Services.
> For this i wantto define a class for a port range 10000 till 15000.
>
> how is the right way?
> this down works:
> class (<$voip>) if tcp_sport => 10000 || tcp_sport <= 10000 ;
>
> are there any examples of real installations - maybe including VoIP,
> HTTP and P2P services?
>
> regards
> thorsten gehrig
>

Hi,

You may want to use the mask.
Go to the LART QoS Cookbook, and you'll see tc filter lines with:

"21 0xfffff"

If you want to match both 21 and 22, use: "22 0xffffe"

Regards,

Sylvain

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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