Problem in setting NAT using IP tables for kernel 2.4.x

Jason Opperisano opie at
Tue Apr 5 17:43:47 CEST 2005

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
> with subnet <-------------[ixp0: (IXDP425) ixp1:
>]----------->PC with					 				             
>             IP
>                           Default Gateway
> now here th IXDP425 acting as router with ip_forward = 1
> ixp0(eth1) with IP is acting as WAN port connecting to LAN
> of subnet and
> ixp1(eth0) is acting as LAN port connecting to PC of IP
> with default gateway as


> LAN=ixp1
> WAN=ixp0


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

shouldn't that be "-o $WAN"


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

More information about the netfilter mailing list