Re: tc filter and ip match

Linux Advanced Routing and Traffic Control

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

 



I am not sure if you can have a NOT in filter. But you can have 2
classes one of which is default with restriction and make the filter
pass through the other one.

On 6/8/05, Glaucius Djalma Pereira Junior <glaucius@xxxxxxxxx> wrote:
> hi all
> 
> people, I'm using tc and htb to create classes and do some QoS , but i
> would like to know if i can do it:
> 
> after to create the classes I need to create the rules using tc filter :
> 
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
> 10.0.0.0/8 flowid 1:10
> 
> ok, this rule works with all packets going to 10.0.0.0/8, but how can
> i write a rule using  "!" or "not" , like :
> 
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
> NOT 10.0.0.0/8 flowid 1:10
> 
> ps.: I would not like to use iptables and mangle table.
> 
> did you understand ?
> 
> 
> best regards
> 
> 
> 
> --
> Glaucius Djalma Pereira Junior
> glaucius@xxxxxxxxx
> _______________________________________________
> LARTC mailing list
> LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
_______________________________________________
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