From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Redirecting ports in a bridge
Date: Tue, 22 Apr 2008 14:24:13 -0500 [thread overview]
Message-ID: <480E3B5D.3020103@riverviewtech.net> (raw)
In-Reply-To: <480DFFFF.7090807@juntadeandalucia.es>
On 04/22/08 10:10, Javier Prieto Martínez wrote:
> Well.. I don't speak English very well, so it's easy to misunderstand my
> posts :-)
That's ok. You are doing just fine. :)
> In your graph, "S" is my LAN with my all my servers and local
> workstations. When I say that "I don't want to mess with the real IPs",
> I mean I don't want to make any change within my LAN.
*nod*
Just to make sure that I understand you correctly, you do not want to
have to re-configure IP addresses on servers when you add or remove the
appliance but you do not care if a given server sees the traffic as
being to its self rather than the original address. I.e.
C -> S1 (client sends traffic)
C -> S1 (router routes traffic)
C -> S1 (appliance receives traffic)
C -> S2 (and changes it to S2 )
C -> S2 (server 2 receives traffic)
S2 -> C (server 2 replies to traffic)
S2 -> C (appliance receives traffic)
S1 -> C (and changes it to S1 )
S1 -> C (router routes traffic)
S1 -> C (client receives traffic)
The key point is that S2 sees the traffic as being to (destination IP)
its self, rather than to S1.
If this is ok with you, then DNATing / SNATing will work just fine.
> The point of the redirection is that, when I need to make a change in
> one of my servers, I'd like my appliance to redirect all the traffic
> coming from the extranet ("C") to another server. For example, if I have
> to stop the web server while upgrading, I'd like all the traffic coming
> from outside to reach another web server with a catched version of my
> web page.
*nod*
> The proccess should be something like that:
>
> * C starts a connection to S1, port 80
> * R routes that packet to my LAN
> * A captures that packet, and changes the destintation to S2, port 80
> * S2 generates a response to C
> * A captures that packet, and changes its source to S1, port 80
> * R routes that packet to the outside network
> * C gets a packet from S1, port 80
*nod*
> I'm making some tests with EBTables in my lab enviroment.
> I'll tell you the results.
Ok. Let me know if you need any thing else.
Remember that you will need to DNAT the inbound traffic and SNAT the
outbound traffic too.
Also, if you are redirecting the traffic (originally to the downed
server) to another up and functioning server, you have to be careful not
to interfere with the other servers normally functioning traffic.
You can very simply write an EBTables rule to SNAT the traffic as it
passes through the appliance. However you have to make sure that you
only SNAT the traffic that was originally DNATed and not all the traffic
from S2.
> Thanks a lot.
You are welcome.
Grant. . . .
next prev parent reply other threads:[~2008-04-22 19:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 9:27 Redirecting ports in a bridge Javier Prieto Martínez
2008-04-18 10:35 ` Jan Engelhardt
2008-04-18 10:55 ` Javier Prieto Martínez
2008-04-18 11:29 ` Jan Engelhardt
2008-04-18 11:41 ` Javier Prieto Martínez
2008-04-18 12:26 ` Marc Cozzi
2008-04-18 12:34 ` Javier Prieto Martínez
2008-04-23 15:25 ` Jan Engelhardt
2008-04-18 14:38 ` Grant Taylor
2008-04-21 6:55 ` Javier Prieto Martínez
2008-04-22 1:30 ` Grant Taylor
2008-04-22 6:15 ` Javier Prieto Martínez
2008-04-22 14:29 ` Grant Taylor
2008-04-22 15:10 ` Javier Prieto Martínez
2008-04-22 19:24 ` Grant Taylor [this message]
2008-04-23 15:24 ` Jan Engelhardt
2008-04-23 17:16 ` Grant Taylor
2008-04-23 18:48 ` Jan Engelhardt
2008-04-23 18:57 ` Grant Taylor
2008-04-24 6:15 ` Javier Prieto Martínez
2008-04-18 14:34 ` Grant Taylor
2008-04-18 14:44 ` Grant Taylor
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=480E3B5D.3020103@riverviewtech.net \
--to=gtaylor@riverviewtech.net \
--cc=netfilter@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox