* DNAT on POSTROUTING or someother way?
@ 2003-04-02 22:34 Dag Gruneau
2003-04-03 15:29 ` Ralf Spenneberg
0 siblings, 1 reply; 2+ messages in thread
From: Dag Gruneau @ 2003-04-02 22:34 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DNAT on POSTROUTING or someother way?
2003-04-02 22:34 DNAT on POSTROUTING or someother way? Dag Gruneau
@ 2003-04-03 15:29 ` Ralf Spenneberg
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Spenneberg @ 2003-04-03 15:29 UTC (permalink / raw)
To: Dag Gruneau; +Cc: Netfilter
Am Don, 2003-04-03 um 00.34 schrieb Dag Gruneau:
> 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?
Well, that depends. By default I do not know of any additional way. If
you enable sourcerouting, it should be possible, though.
Ralf
>
>
> 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
>
>
--
Ralf Spenneberg
RHCE, RHCX
IPsec/PPTP Kernels for Red Hat Linux:
http://www.spenneberg.com/.net/.org/.de
Honeynet Project Mirror: http://honeynet.spenneberg.org
Snort Mirror: http://snort.spenneberg.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-03 15:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02 22:34 DNAT on POSTROUTING or someother way? Dag Gruneau
2003-04-03 15:29 ` Ralf Spenneberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox