From: "John Black" <black@arbbs.net>
To: netfilter@lists.netfilter.org
Subject: Re: static nat with iptables
Date: Sun, 22 Feb 2004 09:13:06 -0600 [thread overview]
Message-ID: <002201c3f956$60983f80$ed02fea9@black> (raw)
In-Reply-To: 000501c3f912$c70bc230$190da8c0@iomco.com
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
is your eth0 ip address a static ip or dynamic? if it is static try this:
iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED, RELATED -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -s 192.168.20.0/24 -o eth1 -j SNAT --to 213.29.76.153
Dear sir
Pls kindly help me
I have a private address like 192.168.20.19/24 and I have a public address like 213.29.76.153/27 im going to translate (STATIC NAT) my private ip address to public address (213.29.76.19) with iptables
Meanwhile my router is redhat linux 8.0 and have 2 network adapter like below
Eth0 192.168.20.1 /24 (connect to private network)
Eth1 213.29.76.154 /27 (connected to internet )
[-- Attachment #2: Type: text/html, Size: 2964 bytes --]
next prev parent reply other threads:[~2004-02-22 15:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-22 7:09 static nat with iptables zeinali
2004-02-22 15:13 ` John Black [this message]
[not found] <FD1B6DC5FFF43C4888DCC155FE8C1FFE9CCAE7@7xch10ka.sevenspace.local>
2004-02-22 20:59 ` Mussie Gebregziabiher
2004-02-23 4:34 ` John A. Sullivan III
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='002201c3f956$60983f80$ed02fea9@black' \
--to=black@arbbs.net \
--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.