netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mac-redirect
@ 2009-02-16 13:49 Victoria Muntean
  2009-02-16 14:33 ` mac-redirect Thomas Jacob
  2009-02-19 19:30 ` mac-redirect Jarek Poplawski
  0 siblings, 2 replies; 3+ messages in thread
From: Victoria Muntean @ 2009-02-16 13:49 UTC (permalink / raw)
  To: netfilter-devel, netdev

Which rule/module of iptable 1.4.3 can change dest mac of the packet ?
(in PreRouting)

Thanks
Viki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mac-redirect
  2009-02-16 13:49 mac-redirect Victoria Muntean
@ 2009-02-16 14:33 ` Thomas Jacob
  2009-02-19 19:30 ` mac-redirect Jarek Poplawski
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Jacob @ 2009-02-16 14:33 UTC (permalink / raw)
  To: Victoria Muntean; +Cc: netfilter-devel

On Mon, 2009-02-16 at 15:49 +0200, Victoria Muntean wrote:
> Which rule/module of iptable 1.4.3 can change dest mac of the packet ?
> (in PreRouting)

Since the destination MAC address is only determined by arp table
lookups after the routing decision has been taken, at least when you're
using you Linux box as a router, you can't do much about it in the pre
routing table. I am also not aware of a standard target that let's
you modify the destination mac in the post_routing table.

But if you are using your box as a bridge, you could you ebtables to do
some sort of MAC NAT. => http://ebtables.sourceforge.net/

The question is: what are you trying to achieve?


> Thanks
> Viki
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mac-redirect
  2009-02-16 13:49 mac-redirect Victoria Muntean
  2009-02-16 14:33 ` mac-redirect Thomas Jacob
@ 2009-02-19 19:30 ` Jarek Poplawski
  1 sibling, 0 replies; 3+ messages in thread
From: Jarek Poplawski @ 2009-02-19 19:30 UTC (permalink / raw)
  To: Victoria Muntean; +Cc: netfilter-devel, netdev

Victoria Muntean wrote, On 02/16/2009 02:49 PM:

> Which rule/module of iptable 1.4.3 can change dest mac of the packet ?
> (in PreRouting)

I guess you need to use ebtables dnat for this yet.


Cheers,
Jarek P.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-19 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16 13:49 mac-redirect Victoria Muntean
2009-02-16 14:33 ` mac-redirect Thomas Jacob
2009-02-19 19:30 ` mac-redirect Jarek Poplawski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).