Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: NAT for locahost to IP LAN for mail services
Date: Fri, 28 Nov 2008 12:23:43 +0100	[thread overview]
Message-ID: <492FD4BF.6030101@plouf.fr.eu.org> (raw)
In-Reply-To: <98028b00811271627n45966505pf4fcd3aed4814700@mail.gmail.com>

Zagato a écrit :
> cant't i redirect the packect from 127.0.0.1 to 192.168.0.5 and then
> 192.168.0.3 ?... so 127.0.0.1 and 192.168.0.5 are in the same host and
> 0.3 its  another phisical PC.... this it's possible ?

Not using iptables. However it is possible using a TCP relay/proxy such 
as rinetd, socat, redir, stone, simpleproxy... which opens a listening 
socket on the local machine and forwards any connection to a remote 
host. This does not require NAT at all.

  reply	other threads:[~2008-11-28 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <98028b00811271443g51a06f71y14b605b9a8b7638f@mail.gmail.com>
2008-11-27 22:46 ` NAT for locahost to IP LAN for mail services Zagato
2008-11-27 23:42   ` Pascal Hambourg
2008-11-28  0:27     ` Zagato
2008-11-28 11:23       ` Pascal Hambourg [this message]
2008-11-29  4:06         ` Zagato
2008-11-29 10:30           ` Pascal Hambourg
2008-11-29 15:41             ` Zagato

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=492FD4BF.6030101@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --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