From: Alexander Samad <alex@samad.com.au>
To: netfilter@lists.netfilter.org
Subject: Re: DNAT to another Network?
Date: Wed, 07 Jul 2004 22:10:49 +1000 [thread overview]
Message-ID: <20040707121049.GA5416@samad.com.au> (raw)
In-Reply-To: <200407071129.i67BTbP22745@ps0.linanet.is>
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
On Wed, Jul 07, 2004 at 11:51:02AM -0000, Svavar ?rn Eysteinsson wrote:
> Hi everybody.
>
> I have one question about DNAT.
>
> I have a computer foo.com on an ipaddress xxx.xxx.xxx.xxx
>
> Is there any way for me to DNAT all traffic with destination to foo.com
> to another server out-of-town, e.g. computer foobar.com with zzz.zzz.zzz.zzz
> that
> is not on my public network.?
>
>
>
> Diagram : (showing where the traffic should go)
>
>
> Traffic with destination to Computer A
>
> INTERNET(ISP nr1) -------INTERNET(ISP nr2)
> | | |
> | | |
> Network A | Network B
> | | |
> | | |
> Firewall | Computer B (final destination)
> | |-----|
> ->Computer A
>
you can do iptables -t nat -I POSTROUTING -j -d foo.com DNAT --to-destination
xxx.xxx.xxx.xxx
the only problem is if the machine xxx.xxx.xxx.xxx can talk to the
originator with talking to the machine nat'ing, then you need an SNAT
rule as well.
> Best regards,
>
> Svavar O
> Reykjvik - Iceland
>
>
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2004-07-07 12:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-07 11:51 DNAT to another Network? Svavar Örn Eysteinsson
2004-07-07 12:07 ` Gavin Hamill
2004-07-07 12:22 ` Svavar Örn Eysteinsson
2004-07-07 13:40 ` Gavin Hamill
2004-07-07 12:10 ` Alexander Samad [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=20040707121049.GA5416@samad.com.au \
--to=alex@samad.com.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox