Filtering with MAC Address
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/
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/
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/
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/
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/