Networking involving a NAT box and Linksys router.
Hello,
I have been trying to establish a network that involves a NAT box and Linsksys router.
Here is the current setup:
================
I have a high speed internet connection (from wall outlet connected to eth0 of my NAT box - a Fedora Core 4 Linux box). eth0 is configured with a static IP. There is another network card eth1 in the NAT box that goes to the WAN port of a Linksys router (Model WRT54G). I have connected 2 other systems to this router using ethernet cables.
Requirement:
========
I need to access the internet from the computers connected to the Linksys router. (FYI, I want to use the wireless functionality provided by the router. If this was not the case, I could go ahead and use a swtich as you would all agree :) ).
Current IP address assignment for these cards and router:
=====================================
NAT box:
----------
eth0 - Static IP
Mask - 255.255.255.248
Gateway - 65.182.61.41
DNS 1- 65.182.32.35
DNS 2 -65.182.32.146
eth1 - 192.168.100.1
Mask - 255.255.255.0
Gateway - eth0
DNS 1- 65.182.32.35
DNS 2 -65.182.32.146
Linksys Router -
a) (as seen from outside)
(assigned a static IP)
192.168.100.2
Mask - 255.255.255.0
Gateway - 192.168.100.1
DNS 1- 65.182.32.35
DNS 2 -65.182.32.146
b) Router IP - 192.168.101.1
Mask - 255.255.255.0
Computer 1 connected to the router - 192.168.101.2
Mask - 255.255.255.0
Gateway - 192.168.101.1
DNS 1- 65.182.32.35
DNS 2 -65.182.32.146
Note:
a) With this setup, I am able to ping to 192.168.101.2, 192.168.101.1, 192.168.100.2, 192.168.100.1 and to the static IP assigned by the ISP( that is of eth0).
b) I have created IP tables that will allow traffic from internal n/w.
c) I am not able to access the internet from the m/cs connected to the router. :(
HELP WANTED:
==========
If anyone can help me with the configuration, I would greatly appreciate this. Or if you can direct me to any resources that talks about this kind of stuff, I can read them.
Thank you :)