* [LARTC] filtering
@ 2005-04-25 10:52 Grace Baldonasa
2005-04-25 11:35 ` Andy Furniss
2005-04-26 12:06 ` Leo
0 siblings, 2 replies; 3+ messages in thread
From: Grace Baldonasa @ 2005-04-25 10:52 UTC (permalink / raw)
To: lartc
Hi,
Can I use mac address as classifiers in the filters?
Grace
_______________________________________________
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] filtering
2005-04-25 10:52 [LARTC] filtering Grace Baldonasa
@ 2005-04-25 11:35 ` Andy Furniss
2005-04-26 12:06 ` Leo
1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2005-04-25 11:35 UTC (permalink / raw)
To: lartc
Grace Baldonasa wrote:
> Hi,
>
> Can I use mac address as classifiers in the filters?
Yes for dst mac A1:B2:C3:D4:E5:F6 it's
tc filter add dev eth0 parent 1:0 protocol ip prio 1 \
u32 match u16 0x0800 0xFFFF at -2 \
match u32 0xC3D4E5F6 0xFFFFFFFF at -12 \
match u16 0xA1B2 0xFFFF at -14 \
flowid 1:1
For src I assume you can just change the offsets - I've not tried it as
there is an iptables match for src MAC.
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
* Re: [LARTC] filtering
2005-04-25 10:52 [LARTC] filtering Grace Baldonasa
2005-04-25 11:35 ` Andy Furniss
@ 2005-04-26 12:06 ` Leo
1 sibling, 0 replies; 3+ messages in thread
From: Leo @ 2005-04-26 12:06 UTC (permalink / raw)
To: lartc
Hi Grace,
I guess the best(most flexible) way is to use iptables(netfilter) to
mark the packets and then use tc filter to match the marks.
"Traffic-Control-HOWTO" should answer most of your questions.
http://linux-ip.net/articles/Traffic-Control-HOWTO/index.html
Leo
Grace Baldonasa wrote:
> Hi,
>
> Can I use mac address as classifiers in the filters?
>
> Grace
> _______________________________________________
> 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
end of thread, other threads:[~2005-04-26 12:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-25 10:52 [LARTC] filtering Grace Baldonasa
2005-04-25 11:35 ` Andy Furniss
2005-04-26 12:06 ` Leo
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.