From: Joel Newkirk <netfilter@newkirk.us>
To: Ryan Beisner <ryanb@thedataarc.com>, netfilter@lists.netfilter.org
Subject: Re: DMZ Scenario
Date: Thu, 14 Nov 2002 20:29:57 -0500 [thread overview]
Message-ID: <200211142029.57679.netfilter@newkirk.us> (raw)
In-Reply-To: <000c01c28c3e$ab3603a0$64dc0a0a@i>
On Thursday 14 November 2002 07:33 pm, Ryan Beisner wrote:
> Hi
>
> I have successfully installed a mail + web server in my new dmz, filtered
> by netfilter in Redhat 7.3. My problem is, the request addresses show up
> as the dmz interface's ip address (of the packet filter box). This
> $ipt -A PREROUTING -t nat -d $PRESext -j DNAT --to $PRESdmz
> $ipt -A POSTROUTING -t nat -d $PRESdmz -j SNAT --to $PRESext
> $ipt -A PREROUTING -t nat -d $KEYext -j DNAT --to $KEYdmz
> $ipt -A POSTROUTING -t nat -d $KEYdmz -j SNAT --to $KEYext
Drop the SNAT rules. In the PRE you take anything coming in the 'real' IP and
change it's destination to the dmz IP. But in the POST you take those same
packets and change their source to the real IP. If you drop the POST rules,
then the packets will just pass on to $PRESdmz with their (presumably) real
source IP intact.
j
next prev parent reply other threads:[~2002-11-15 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-15 0:33 DMZ Scenario Ryan Beisner
2002-11-15 1:29 ` Joel Newkirk [this message]
2002-11-15 2:57 ` ryan @ thedataarc
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=200211142029.57679.netfilter@newkirk.us \
--to=netfilter@newkirk.us \
--cc=netfilter@lists.netfilter.org \
--cc=ryanb@thedataarc.com \
/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