On Thursday 29 January 2004 2:02 pm, Srinivasa Hebbar wrote: > Hello, > > I believe that the NAT PREROUTING and POSTROUTING will > always takes place for all the incoming/outgoing packets > irrespective of whether the packet is destined to the node or not. > > I have a situvation that if the dest. IP address of the packet is > for the local node, then apply NAT rule, otherwise it should simply > forward the packet according to the routing table. > > How can I achive the above? Place the destination address in the nat rule, eg: iptables -A PREROUTING -t nat -d ! my.ip.add.ress -j DNAT --to a.b.c.d This means "destination nat all packets which are not addressed to my.ip.add.ress and send them to a.b.c.d". Regards, Antony. -- "The joy of X!!?? I've always hated compiling graphical shite. You have a 10 line program, and it ends up depending on the entire known universe." - Philip Hands Please reply to the list; please don't CC me.