All of lore.kernel.org
 help / color / mirror / Atom feed
* DNAT/MASQ Precedence
@ 2003-01-30 19:31 Katriel Traum
  2003-01-30 19:34 ` Athan
  0 siblings, 1 reply; 8+ messages in thread
From: Katriel Traum @ 2003-01-30 19:31 UTC (permalink / raw)
  To: netfilter

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello list,
I'm starting to set up a DMZ/LAN setup, and came across a problem/question.
The setup I want to do is a multi-homed firewall, with one intf. to a private 
LAN and another to a DMZ.
The FW will MASQ the LAN, and DNAT into the DMZ.

I want to redirect _all_ traffic into the DMZ (is that even possible?) and in 
the same time MASQ the LAN. The question is will they collide? If I use a 
ruleset such as:
iptables -A PREROUTING -i $INET_IF -j DNAT --to-destination $DMZ_IP 
iptables -A POSTROUTING -o $INET_IF -j MASQUERADE
(yes, there's only one computer in the DMZ)

Will I get return traffic into my lan? won't it be DNATed into the DMZ?

Thanks,

+katriel
pgp key: traum.org.il/gpg.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+OX2dDWy+Hv/461sRAqmWAJwJ5/vSBMlj/2dHS/seXuPrcTv81QCg/tan
C1xvdNg6gFpdAZRx84tsaR8=
=9ku+
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-01-31 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30 19:31 DNAT/MASQ Precedence Katriel Traum
2003-01-30 19:34 ` Athan
2003-01-31  9:58   ` Katriel Traum
2003-01-31 10:14     ` Athan
2003-01-31 13:14       ` Katriel Traum
2003-01-31 11:19         ` Athan
2003-01-31 13:41           ` Katriel Traum
2003-01-31 12:18             ` Athan

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.