From: Shai Tahar <shait@storwize.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: netfilter-devel@vger.kernel.org, bdschuym@pandora.be,
shai.tahar@storwize.com
Subject: Re: new target - ebtables dynamic snat, kernel and userspace patch
Date: Thu, 24 Sep 2009 11:30:40 +0300 [thread overview]
Message-ID: <4ABB2E30.8080107@storwize.com> (raw)
In-Reply-To: <alpine.LSU.2.00.0909241011400.13479@obet.zrqbmnf.qr>
in case you manipulate the data in the connection, such as in tproxy
scenario (squid etc')
a new connection goes out (with the same tuple) but the mac address is
diffrent (the source mac is the device interface)
assuming A,B,C are mac address and 1,2,3 are ip address
[user]<--->[transparent bridge]<--->[server]
A1 B2 C3
user initiates a connection A1--->C3
the connection is redirected into B2, the connection is terminated as a
socket to a local application on the traparent bridge machine.
a new connection goes out from B2, masked as B1--->C3 (the target
changes B1 into A1)
in return, the server answers A1 C3--->A1, the connection is redirected
into the localhost
the data then forwarded to the user B3--->A1 (the target changes B3 int C3)
Shai Tahar
Storwize
Jan Engelhardt wrote:
> On Thursday 2009-09-24 09:43, Shai Tahar wrote:
>
>
>> ---- README ---
>> ebt_dyn_snat - ebtable dynamic snat
>> Authors:
>> Shai Tahar <shai.tahar@storwize.com>
>>
>> Changes source mac address according to source ip address based on local
>> arp table
>> to be used when source ip address is snated
>>
>> Copyright (C) 2009 Storwize
>>
>> ebtables target for transparent bridge
>> [user]<--->[transparent bridge]<--->[server]
>>
>> if the transparent bridge maskes user ip address towards the server,
>> the bridge normally would replace the source mac address
>>
>
> Well, if you want to have the client's original MAC address in the
> packet, do not SNAT it. It (seems) as simple as that.
>
next prev parent reply other threads:[~2009-09-24 8:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 7:43 new target - ebtables dynamic snat, kernel and userspace patch Shai Tahar
2009-09-24 8:12 ` Jan Engelhardt
2009-09-24 8:30 ` Shai Tahar [this message]
2009-09-24 11:26 ` Amos Jeffries
2009-09-25 1:04 ` Philip Craig
2009-09-24 20:24 ` Bart De Schuymer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ABB2E30.8080107@storwize.com \
--to=shait@storwize.com \
--cc=bdschuym@pandora.be \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=shai.tahar@storwize.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.