Skip to contentSkip to conversation

Filtering with MAC Address

LARTC Marcio Fraisleben Dias 4 participants 5 messages Aug 1, 2002 – Aug 2, 2002

lore
Share & tools
lore
#0 lore raw

Can someone help me to do 'tc filter' by MAC Address? I use HTB in my setup and it works wonderfully for IP, but I need to shape NAT connections, and I can't do it using IP addresses. Any suggestions welcome!

Marcio Fraisleben Dias
NetUnião Ltda.
Internet Banda Larga - Soluções em Networking
(55) 42 523 4100

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 4 lines · Marcio Fraisleben Dias

Can someone help me to do 'tc filter' by MAC Address? I use HTB in my setup and it works wonderfully for IP, but I need to shape NAT connections, and I can't do it using IP addresses. Any suggestions welcome!

I was never able to figure it out either so if someone can help with this I'd appreciate it.

Best regards,
Adam Fineberg

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Marcio Fraisleben Dias
Quoted 8 lines · Adam B. Fineberg
Quoted 4 lines · Marcio Fraisleben Dias

Can someone help me to do 'tc filter' by MAC Address? I use HTB in my setup and it works wonderfully for IP, but I need to shape NAT connections, and I can't do it using IP addresses. Any suggestions welcome!

I was never able to figure it out either so if someone can help with this I'd appreciate it.

You can filtering on source mac address with iptables : -m mac --mac-source xx:xx:xx:xx:xx:xx. That you wat you can mark the packets with -j MARK --set-mark 123 and use the fw filter.

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Marcio Fraisleben Dias
Quoted 1 line

You can filtering on source mac address with iptables : -m

mac --mac-source

Quoted 2 lines

xx:xx:xx:xx:xx:xx. That you wat you can mark the packets with -j MARK --set-mark 123 and use the fw filter.

My problem was I need to filter on the destination mac address and I couldn't figure a way to do that. Is there a --mac-destination?

Adam

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Marcio Fraisleben Dias

Maybe you can use ebtables
http://users.pandora.be/bart.de.schuymer/ebtables/

ebtables are iptables which understand ethernet protocol.

Quoted 9 lines · Adam B. Fineberg
Quoted 1 line

You can filtering on source mac address with iptables : -m

mac --mac-source

Quoted 2 lines

xx:xx:xx:xx:xx:xx. That you wat you can mark the packets with -j MARK --set-mark 123 and use the fw filter.

My problem was I need to filter on the destination mac address and I couldn't figure a way to do that. Is there a --mac-destination?

Adam

--
`)_|_(' PSIkappa
I k psi _at_ atlantis.sk

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/