Hi everyone,

Got a stupid question.

If I have 2 NICs on one machine:

eth0      192.168.0.1

and

eth1      10.0.0.1

and I want to let all the computers on eth0 network to talk to an internet connection on the 10.0.0.1 network, how would I use iptables and/or NAT to make this happen?

I have a theory but haven't tested it yet:

iptables -A FORWARD -j MASQUERADE -o eth0 -t nat

I think I am missing something.............???

Thanks

--
Scott Waller
Sales Account Manager

Lots of Watts Pty Ltd
2 Bridge St, Rydalmere NSW 2116
Ph:     (02) 9638 0302
Fx:     (02) 9638 0331
Mb:     0421 038 526
www.lotsofwatts.com.au

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to