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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Marcio Fraisleben Dias wrote:>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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Thursday 01 August 2002 21:07, Adam B. Fineberg wrote:> Marcio Fraisleben Dias wrote: > >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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> You can filtering on source mac address with iptables : -mmac --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.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 / LARTC@mailman.ds9a.nl 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. On Thu, 1 Aug 2002, Adam B. Fineberg wrote:> > 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. > > 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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/