Making NAT with iptables
Posted on 2005-04-06
I have two networks:
Net 1) X.B.X.0/24
Net 2) X.C.E.0/22
and one linux computer that I want to use iptables to make computers on Net 1 and Net 2 view each others.
My linux computer has two interfaces:
if 1) eth1 address X.B.X.45
if 2) eth0 address X.D.E.70 (connected thru router to Net 2).
For example I need that the computer X.B.X.110 (Net 1) make an ftp connection with computer X.C.E.5 (Net 2).
Or computer X.C.E.5 make an ssh conection with computern X.B.X.110.
All computers are linux.
Any help will be very appreciated.