All of lore.kernel.org
 help / color / mirror / Atom feed
* MAC Address masking/NAT
@ 2008-10-17  6:13 Timothy Toole
  2008-10-17 17:15 ` Grant Taylor
  2008-10-18  2:52 ` Timothy Toole
  0 siblings, 2 replies; 5+ messages in thread
From: Timothy Toole @ 2008-10-17  6:13 UTC (permalink / raw)
  To: netfilter

Hello,

Apparently, I'm just not getting some of the tables and chains
concepts enough to make the following scenario work. Any help would be
greatly appreciated.

I have a bridge setup between two computer systems. To be more
detailed, the bridge (br0) is setup on a Linksys WRT54GL across two of
the switch ports that have been VLAN tagged (eth0.1 and eth0.2). In
this setup, Host A and Host B communicate as expected.

What I'd like to do is use iptables or ebtables to.... change the MAC
address of Host B as packets traverse the bridge. Host A will only see
the "changed" MAC address, not the actual one of Host B.

Here's a lame ascii art diagram:

              ____________________
             |                    |
             |        br0         |
             |                    |
             | eth0.1      eth0.2 |
             |__/______________\__|
               /                \
              /                  \ <--- Translate MAC to
             /                    \     11:11:11:22:22:22
            /                      \
           /                        \
       ___|___                    ___|___
      |       |                  |       |
      |   A   |                  |   B   |
      |_______|                  |_______|
MAC: 00:11:22:33:44:55      MAC:55:44:33:22:11:00

Can this be done? Also, if I don't know the MAC address of either
host, can a rule be written as a "catch-all" to change any MAC that's
plugged in?

Many Thanks.

-tim

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

end of thread, other threads:[~2008-10-18 23:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17  6:13 MAC Address masking/NAT Timothy Toole
2008-10-17 17:15 ` Grant Taylor
2008-10-18  2:52 ` Timothy Toole
2008-10-18 19:49   ` Grant Taylor
2008-10-18 23:22   ` Timothy Toole

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.