Hi all,
This is my first attempt at setting up a NAT on a Linux cluster for school project. We are trying to forward the connection from the head node to the internal node. The head node is using Fedora Core 10 and I found what appeared to be great guides on setting this up:
http://www.howtoforge.com/nat_iptables and
http://meinit.nl/howto-use-nat-on-fe...-with-iptables. I followed both and had no issues configuring the iptables service and enabling the ethernet devices. The problem is the internal nodes can't ping external sites, only the head node which is connected via the Linksys switch. I made sure the Gateway IP of the internal nodes matched the IP of the internal NIC on the head node, however it doesn't appear to be of much use. Any suggestions? Does anything in my configuration jump out as being a problem? Thanks for any advice u might have.
eth0:
BOOTPROTO=none
PEERDNS=yes
TYPE=Ethernet
IPV6INIT=no
DEVICE=eth0
NETMASK=255.255.0.0 # Specify based on your requirement
BROADCAST=""
IPADDR=192.168.2.1 # Gateway of the LAN
NETWORK=192.168.0.0 # Optional
USERCTL=no
ONBOOT=yes
eth1:
# Intel Corporation 82541PI Gigabit Ethernet Controller
DEVICE=eth1
BOOTPROTO=dhcp
HWADDR=00:0e:0c:dd:3d:ca
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=yes
eth0 Link encap:Ethernet HWaddr 00:19
1:E5:E1:5C
inet addr:192.168.2.1 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::219:d1ff:fee5:e15c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:883 errors:0 dropped:0 overruns:0 frame:0
TX packets:609 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80012 (78.1 KiB) TX bytes:68961 (67.3 KiB)
Memory:90400000-90420000
eth1 Link encap:Ethernet HWaddr 00:0E:0C
D:3D:CA
inet addr:136.165.66.104 Bcast:136.165.67.255 Mask:255.255.254.0
inet6 addr: fe80::20e:cff:fedd:3dca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5220 errors:0 dropped:0 overruns:0 frame:0
TX packets:1544 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1382918 (1.3 MiB) TX bytes:409997 (400.3 KiB)
Client:
IP Addr: 192.168.1.0
Subnet Mask: 255.255.0.0
Default Gateway: 192.168.2.1
Preferred DNS: 136.165.253.57
Alternate DNS: 136.165.253.89