* [LARTC] tc filter and ip match
@ 2005-06-08 17:05 Glaucius Djalma Pereira Junior
2005-06-08 17:26 ` Kiruthika Selvamani
2005-06-08 21:48 ` Andy Furniss
0 siblings, 2 replies; 3+ messages in thread
From: Glaucius Djalma Pereira Junior @ 2005-06-08 17:05 UTC (permalink / raw)
To: lartc
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@gmail.com
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] tc filter and ip match
2005-06-08 17:05 [LARTC] tc filter and ip match Glaucius Djalma Pereira Junior
@ 2005-06-08 17:26 ` Kiruthika Selvamani
2005-06-08 21:48 ` Andy Furniss
1 sibling, 0 replies; 3+ messages in thread
From: Kiruthika Selvamani @ 2005-06-08 17:26 UTC (permalink / raw)
To: lartc
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@gmail.com> 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@gmail.com
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] tc filter and ip match
2005-06-08 17:05 [LARTC] tc filter and ip match Glaucius Djalma Pereira Junior
2005-06-08 17:26 ` Kiruthika Selvamani
@ 2005-06-08 21:48 ` Andy Furniss
1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2005-06-08 21:48 UTC (permalink / raw)
To: lartc
Glaucius Djalma Pereira Junior 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 ?
If you want 10.0.0.0/8 to be unshaped by htb and the rest go to 1:10,
don't set a default class and filter like -
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
10.0.0.0/8 flowid 1:99
tc filter add dev eth0 protocol ip parent 1:0 prio 2 u32 match u32 0 0
flowid 1:10
where 1:99 doesn't exist as an htb class.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-08 21:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-08 17:05 [LARTC] tc filter and ip match Glaucius Djalma Pereira Junior
2005-06-08 17:26 ` Kiruthika Selvamani
2005-06-08 21:48 ` Andy Furniss
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.