From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: FW: Setting up 1:1 NAT for DMZ (Repost w/o HTML)
Date: Wed, 5 Jan 2005 17:13:08 -0500 [thread overview]
Message-ID: <20050105221308.GA25690@bender.817west.com> (raw)
In-Reply-To: <FC8AF9F27A8C6E4DAB2072FC162C421CFC2E5B@HILLEX.HILLNET.ad.hsd.k12.or.us>
On Wed, Jan 05, 2005 at 02:02:06PM -0800, Spidal, Glen wrote:
> >> Jason,
> >> Thanks so much. I'm new to bash scripting. In the statement below,
> >>for i in `seq 11 23`;
> >>which digits are the starting point and which ones are the number of
> loops?
the `seq 11 23` generates a list starting at 11, stopping at 23. "seq"
is an external linux command.
> >>Also, how do I set the subnet on the public Ips added using the ip add
> command
> >>in the script? Mine happens to be 255.255.255.192.
the "ip addr add 1.2.3.${i} dev $EXT_IF" statements will add the IP
addresses with a /32 mask--which is fine for the purposes of an alias
for NAT. it also keeps the firewall from ever using one of the alias IP's
as a source address when communicating on the locally-attached network.
only your primary IP on $EXT_IF needs to have the /27 mask.
-j
--
"Here we have an ordinary square.
Whoa! Slow down egghead!"
--The Simpsons
prev parent reply other threads:[~2005-01-05 22:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 22:02 FW: Setting up 1:1 NAT for DMZ (Repost w/o HTML) Spidal, Glen
2005-01-05 22:13 ` Jason Opperisano [this message]
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=20050105221308.GA25690@bender.817west.com \
--to=opie@817west.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 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.