From: Dag Gruneau <dag@gruneau.com>
To: netfilter@lists.netfilter.org
Subject: DNAT on POSTROUTING or someother way?
Date: Thu, 3 Apr 2003 00:34:16 +0200 [thread overview]
Message-ID: <200304030034.17067.dag@gruneau.com> (raw)
Hello,
I need to hide several identical targets behind a host but have failed
to accomplish this. Hope someone on the list can help me.
The set-up is shown below (good old ASCII drawings). My objectiv
is to set up a testsite where several (more than the shown three)
etherbased targets are to be tested. Each target has a FIXED ip. One target
is attached to one ethernet port on the server. Every target has the same
ip address.
My question: is it possible to access the differnt targets from the
LAN side via ip 10.1.1.11-13. A DNAT in a nat POSTROUTING rule would do
it, but that's not allowed.
Is there any other way to accomplish this?
LAN side Test side
----------- Server
! Client1 !-----! ---------- -----------
----------- ! !10.1.1.11/24-----! Target1 !
10.0.0.1/24 ! ! ! -----------
! ! ! 10.1.1.1/24
! ! !
----------- ! ! ! -----------
! Client2 !-----!-------!10.1.1.12/24-----! Target2 !
----------- ! ! ! -----------
10.0.0.2/24 ! ! ! 10.1.1.1/24
! ! !
! ! ! -----------
----------- ! !10.1.1.13/24-----! Target3 !
! Client3 !-----! ---------- -----------
----------- 10.0.0.10/24 10.1.1.1/24
10.0.0.3/24
I am running kernel 2.4.19, soon 2.4.20 with iptables 1.2.7a
Thanks in advance
/Dag
next reply other threads:[~2003-04-02 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-02 22:34 Dag Gruneau [this message]
2003-04-03 15:29 ` DNAT on POSTROUTING or someother way? Ralf Spenneberg
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=200304030034.17067.dag@gruneau.com \
--to=dag@gruneau.com \
--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