On Thu, Nov 30, 2006 at 04:04:13 +1100, John Clarke wrote:
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE
I should have also said that if the dual-homed host has a static address
on eth1 then you should use SNAT instead of MASQUERADE:
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j SNAT \
--to-source 10.0.0.1
Cheers,
John
--
Not all of us are willing to get the genital piercings to get the right
walk.
-- Paul Tomblin
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html