[LARTC] How to invert tc matches?

Artūras Šlajus x11@h2o.sky.lt
Mon, 11 Oct 2004 12:11:20 +0300


Rene Bartsch wrote:
> Hi,
> 
> I want to use inverted matches with tc-filter. I tried to invert the
> matches with a "!", but this doesn't seem to be the correct syntax.
> 
> 
> The following rules don't work:
> 
> ---------------------------snip-----------------------------------------
> 
> $TC filter $ACTION dev $DEV protocol ip parent 1:0 u32 match ip src
> ${NETWORK[$i]} !match ip dst 192.168.0.0/24 flowid 1:$(($(($i+1))*10));
use fw filter and iptables marking
or just iptables and classify target