Accessing internet through 2 gateways?
Hi,
I am trying to get a linux server to act as a router to pass traffic through to my actual ADSL router so that I can access the internet from it. A diagram of the topology goes something like:
My PC (192.168.2.2) Server (eth0 - 192.168.1.13)----------> ADSL Router (192.168.1.1)
^-------------------(eth1 - 192.168.2.1 )
I have gotten the Server to pass local network traffic, so I can get from 192.168.2.2 to 192.168.1.4 for example, but I can't get to the internet, whereas I can get from 192.168.1.13 to the internet. How do i get 'My PC' to get access to the internet? I have used masquerading to get this fair and am stuck as to where to go next.
Thanks for all you help in advance,
|