On Thursday 29 December 2011 04:40 PM, Andrew Stone wrote:
Yeah I read that... It does not describe what I’m trying to accomplish… hence the confusion on my part… I’m trying to configure a one to many NAT. (One WAN address to a range of internal addresses)
What are you trying to achieve? Do you want to allow the the internal machines to access Internet? If so, SNAT is sufficient.
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o $WANIF -j SNAT --to-source a.b.c.241
Here I am assuming that 192.168.1.0/24 is your internal network and you want to allow all the machines. If you want to allow only a few machines, put a comma separated "address[/mask]" list.
Regards, Vignesh -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html