All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Mail List - Netfilter <netfilter@lists.netfilter.org>
Subject: Re: iptables: hide the real web server from users
Date: Thu, 15 Feb 2007 11:55:20 +0100	[thread overview]
Message-ID: <45D43C18.10100@plouf.fr.eu.org> (raw)
In-Reply-To: <45D32DD7.80006@riverviewtech.net>

Hello,

Grant Taylor a écrit :
> Tim Perton wrote:
> 
>> I want my users to do a request like
>> http://a.b.c.d/1.php and then machine A to make the
>> same request to System B, get the results and send
>> them back to the user transparently.
> 
> Technically you can do what you are wanting to do.  However there are a 
> few caveats that you need to be aware of when doing such.
> 
> 1)  System B will see System A as the connecting host, not the real client.

This can be avoided. See below.

> 2)  If System B is not ""behind System A (as you have described it to 
> not be) it will have to send the traffic back to System A which will 
> then send the traffic back to the client.

This is the reason of the 1). In order for B to send replies to A, A has 
to SNAT the forwarded connection with its own IP address. Unless you set 
up some tunnel or VPN between A and B and use it for the forwarded 
connexions (in both direction, so it may involve some advanced routing 
on A for return traffic), making B virtually "behind" A.

client ---internet--- system A (NAT) ===tunnel=== system B (server)


      parent reply	other threads:[~2007-02-15 10:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 12:53 iptables: hide the real web server from users Tim Perton
2007-02-14 13:08 ` Rodrigo Montoro (Sp0oKeR)
2007-02-14 14:40   ` Rob Sterenborg
2007-02-14 14:43   ` Robert LeBlanc
2007-02-14 15:44     ` Tim Perton
2007-02-23 11:05       ` Martijn Lievaart
2007-02-14 15:42 ` Grant Taylor
2007-02-14 16:36   ` Tim Perton
2007-02-14 17:59     ` Grant Taylor
2007-02-15 14:28       ` Tim Perton
2007-02-15 15:08         ` Pascal Hambourg
2007-02-15 10:55   ` Pascal Hambourg [this message]

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=45D43C18.10100@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=netfilter@lists.netfilter.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 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.