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

Jason Opperisano opie at 817west.com
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
> 
> 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



More information about the netfilter mailing list