From: "William Olbrys" <william_olbrys@student.uml.edu>
To: netfilter@lists.netfilter.org
Subject: Static NAT
Date: Thu, 13 Feb 2003 08:04:51 -0500 [thread overview]
Message-ID: <30cd12e6eb.2e6eb30cd1@student.uml.edu> (raw)
Hello
I'm trying to set up my an internal network connected to a hub with
an uplink to a redhat 8 box running iptables. Each internal box would
have an internal ip, but i'm trying to get dnat and snat to change the
packets' IPs to available static addresses on my network. This way i
could have a nice firewall in place and take advantage of some other
services for these internal. I've been trying to do this for a couple of
days but with little luck. I know i set up the rest of the tables
correctly though because if I use MASQUERADE it works instantly, but i
need those IPs! :)
Here is a sample of my DNAT/SNAT entries for one machine.
echo -n "setting nat rules"
$IPTABLES -t nat -A PREROUTING -s 0.0.0.0/0 -d 129.63.106.11 -j DNAT
--to-destination 192.168.2.2
$IPTABLES -t nat -A POSTROUTING -s 192.168.2.2 -d 0.0.0.0/0 -j SNAT
--to-source 129.63.106.11
echo " Done"
is this really possible?
E2-O: The presence of this footer indicates the message has been scanned for viruses by the WebShield e500.
next reply other threads:[~2003-02-13 13:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-13 13:04 William Olbrys [this message]
2003-02-13 16:08 ` Static NAT Kevin McConnell
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=30cd12e6eb.2e6eb30cd1@student.uml.edu \
--to=william_olbrys@student.uml.edu \
--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.