All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John A. Sullivan III" <jsullivan@opensourcedevelopmentcorp.com>
To: Mussie Gebregziabiher <mussieg@comcast.net>,
	netfilter@lists.netfilter.org
Subject: RE: static nat with iptables
Date: Sun, 22 Feb 2004 23:34:55 -0500	[thread overview]
Message-ID: <1077510895.15548.3.camel@localhost> (raw)
In-Reply-To: <FD1B6DC5FFF43C4888DCC155FE8C1FFE224F35@7xch10ka.sevenspace.local>

Perhaps I misunderstood the e-mail but is the address to which you are
NATting on the same network as your public interface? I don't think
213.29.76.154/27 and 213.29.76.19/27 are on the same network - John

On Sun, 2004-02-22 at 15:59, Mussie Gebregziabiher wrote:
> Make sure that ip_forwarding is enabled. Not sure if it is enabled by
> default. 
> 
> cat /etc/sysctl.conf 
> 
> # Controls IP packet forwarding
> net.ipv4.ip_forward = 1
> 
> Good luck!
> 
> -MGG
> 
> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of John Black
> Sent: Sunday, February 22, 2004 10:13 AM
> To: netfilter@lists.netfilter.org
> Subject: Re: static nat with iptables
> 
> 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 )
>  
-- 
Open Source Development Corporation
Financially Sustainable open source development
http://www.opensourcedevelopmentcorp.com



  reply	other threads:[~2004-02-23  4:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <FD1B6DC5FFF43C4888DCC155FE8C1FFE9CCAE7@7xch10ka.sevenspace.local>
2004-02-22 20:59 ` static nat with iptables Mussie Gebregziabiher
2004-02-23  4:34   ` John A. Sullivan III [this message]
2004-02-22  7:09 zeinali
2004-02-22 15:13 ` John Black

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=1077510895.15548.3.camel@localhost \
    --to=jsullivan@opensourcedevelopmentcorp.com \
    --cc=mussieg@comcast.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.