All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: Can't get access to local servers using external IP
Date: Sun, 15 Oct 2006 14:54:24 +0200	[thread overview]
Message-ID: <45322F80.3090502@plouf.fr.eu.org> (raw)
In-Reply-To: <453111A5.8000603@rtij.nl>

Hello,

Martijn Lievaart a écrit :
> 
> There are several ways you can make this work.
> 
> 1) When packets from $local_lan arrive destined for the webserver, not 
> only DNAT them, but SNAT them as well to an ip of the firewall. The 
> disadvantage is that the webserverlogs will not acurately report the 
> source address for these connections. This is probably what the linksys 
> did.

Hint : using NETMAP to do the source NAT, you can do a 1:1 mapping so 
you can retrieve the original source address.

[...]
> 6) Probably lots of other solutions I didn't think about.

If you access the server by name instead of by IP address :

7) Put the private address and the name in the /etc/hosts file of your 
workstations. Quick and dirty, does not scale.

8) Set up a "split DNS" server so the internal requests receive the 
private address and the external request receive the public address.


  parent reply	other threads:[~2006-10-15 12:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13  3:08 Can't get access to local servers using external IP Patrick Cummings
2006-10-14 16:34 ` Martijn Lievaart
2006-10-15  3:08   ` Patrick Cummings
2006-10-15 12:54   ` Pascal Hambourg [this message]
2006-10-15 18:05     ` Martijn Lievaart
2006-10-15 18:21       ` Pascal Hambourg

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=45322F80.3090502@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.