Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Ryan Beisner" <ryanb@thedataarc.com>
To: netfilter@lists.netfilter.org
Subject: WAP11:  1-to-1 NAT (DMZ)
Date: Wed, 18 Sep 2002 17:59:54 -0500	[thread overview]
Message-ID: <003701c25f67$1a21fb20$64dc0a0a@dataarc> (raw)

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

In Watchguard's Firebox system, there is a term called 1-to-1 NAT, a new one to me.  This is used in reference to a packet filtering router protecting a DMZ from the WWW.  Its principle is the same applied to achieve my "virtual host."

        iptables -A PREROUTING -t nat -d 10.20.0.4 -j DNAT --to 192.168.168.2
        iptables -A POSTROUTING -t nat -d 192.168.168.2 -j SNAT --to 10.20.0.4

Now I want to enable certain ports (for instance, 22 and 80) and deny everything else.  
When is the appropriate time to add protocol filters, before or after these two lines?  And what would they look like?

192.168.168.2 is a Linksys WAP11 behind the firewall
10.20.0.4 is a Virtual IP on the external interface (which is already firewalled down the line).





Thanks!
-Ryan Beisner

[-- Attachment #2: Type: text/html, Size: 1741 bytes --]

                 reply	other threads:[~2002-09-18 22:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='003701c25f67$1a21fb20$64dc0a0a@dataarc' \
    --to=ryanb@thedataarc.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