[LARTC] how to define a port range?

Sylvain Bertrand sylvain at 2001-space-odyssey.net
Wed Jul 20 16:22:42 CEST 2005


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



More information about the LARTC mailing list