Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Problem in setting NAT using IP tables for kernel 2.4.x
Date: Tue, 5 Apr 2005 11:43:47 -0400	[thread overview]
Message-ID: <20050405154347.GA2805@bender.817west.com> (raw)
In-Reply-To: <54d79d81050402214135b12fa5@mail.gmail.com>

On Sun, Apr 03, 2005 at 11:11:47AM +0530, Rahul Hirve wrote:
> hi all 
> 	I am using uClinux to test nat on IXDP425 the setup is use is as shown below
> 
> LAN
> with subnet <-------------[ixp0:10.0.10.11/23 (IXDP425) ixp1:
> 192.168.0.1/24]----------->PC with 10.0.10.0/23					 				             
>             IP 192.168.0.4/24
>                                                                       
>                           Default Gateway 192.168.0.1
> 
>                                                         
> now here th IXDP425 acting as router with ip_forward = 1
> ixp0(eth1) with IP 10.0.10.11 is acting as WAN port connecting to LAN
> of subnet 10.0.10.0/23 and
> 
> ixp1(eth0) is acting as LAN port connecting to PC of IP 192.168.0.4
> with default gateway as 192.168.0.1

<--snip-->

> LOOPBACK=lo
> LAN=ixp1
> WAN=ixp0

<--snip-->

> iptables -t nat -A POSTROUTING -s 192.168.0.4 -o ${LAN} -j SNAT --to 10.0.10.11

shouldn't that be "-o $WAN"

-j

--
"Stewie: Well, I'd love to stay and chat, but you're a bitch."
        --Family Guy


      reply	other threads:[~2005-04-05 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-03  5:41 Problem in setting NAT using IP tables for kernel 2.4.x Rahul Hirve
2005-04-05 15:43 ` 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=20050405154347.GA2805@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox