MAC SNAT and DNAT for two bridges on the same device

"Hasan Rashid" <[email protected]> Thu, 31 Jan 2008 12:25:18 -0800
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0210024654==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0000_01C86404.572EA2A0"

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C86404.572EA2A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

 

I have two wireless repeaters 1 & 2 each with two radios. I am configuring
two bridges A&B on each device with one radio in each bridge group. Now, I
want to use one radio on each device for outgoing traffic only and the other
for incoming traffic. This will allow full duplex link between the two
devices by having one-way traffic on each bridge. I am using bridge A on
device 1 and bridge B on device 2 as outgoing bridges. 

 

Now here's what I am trying to figure out. How can I make packets coming on
bridge B on device 1 look like they are actually received on bridge A? How
can I use ebtables to change the MAC destination and source of a packet such
that it can be transmitted or appear to have been received on another bridge
on the same device? Any ideas? 

 

TIA!

 

Regards,

Hasan Rashid


------=_NextPart_000_0000_01C86404.572EA2A0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40"
xmlns:ns0=3D"urn:schemas-microsoft-com:office:smarttags">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:0in 0in 0in 0in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have two wireless repeaters 1 &amp; 2 each with two =
radios.
I am configuring two bridges A&amp;B on each device with one radio in =
each
bridge group. Now, I want to use one radio on each device for outgoing =
traffic
only and the other for incoming traffic. This will allow full duplex =
link
between the two devices by having one-way traffic on each bridge. I am =
using
bridge A on device 1 and bridge B on device 2 as outgoing bridges. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Now here&#8217;s what I am trying to figure out. How =
can I
make packets coming on bridge B on device 1 look like they are actually
received on bridge A? How can I use ebtables to change the MAC =
destination and
source of a packet such that it can be transmitted or appear to have =
been received
on another bridge on the same device? Any ideas? =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>TIA!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Regards,</span></font><o:p></o:p></p=
>

<p class=3DMsoNormal><b><font size=3D2 color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>=
Hasan
Rashid<o:p></o:p></span></font></b></p>

</div>

</body>

</html>

------=_NextPart_000_0000_01C86404.572EA2A0--



--===============0210024654==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0210024654==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ebtables-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebtables-user

--===============0210024654==--