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

Re: matching tcp ports




Hi Armando,


> 
>    # To 192.4.20.222 port 6011 (0x177b)
>    #
>    $TC filter add dev eth0 parent 1:0 prio 1 u32 \
>       match ip dst 192.4.20.222/32 match tcp dst 0x177b 0xffff flowid 1:3
> 
>    # Default traffic to 192.4.20.222
>    #
>    $TC filter add dev eth0 parent 1:0 prio 1 u32 \
>       match ip dst $HOST_A_IP/32 flowid 1:4

Try making the dropping priority of the default class filter to 2 or 3,
like

$TC filter add dev eth0 parent 1:0 prio 4 u32 \
       match ip dst $HOST_A_IP/32 flowid 1:4
Cheers,
Muneyb.
_________________________________________________________
Muneyb Minhazuddin - Telecommunications Research Engineer    
CSIRO Telecommunication and Industrial Physics                
Marsfield, NSW, Australia.                                    
                                                             
Phone no. : 61 2 9372 4113
FAX       : 61 2 9372 4490          
e-mail    : mminhazu@tip.csiro.au  
Home Page : http://www.atnf.csiro.au/~mminhazu
---------------------------------------------------------