Ive got 2 boxes on my network (RH7.3 and RH8) connected with a cross over cable.
RH7.3 is connected to the internet using a dial up connection but i cannot access the internet using the RH8 box!
My iptable rules on the RH7.3 box are as follows
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp dpt:smtp
DROP tcp -- anywhere anywhere tcp dpt:sunrpc
DROP tcp -- anywhere anywhere tcp dpt:x11
DROP tcp -- anywhere anywhere tcp dpt:sunrpc
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level warning
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
and there are no rules specified on my RH8 box.
Heres my /etc/sysconfig/network
Code:
NETWORKING=yes
FORWARD_IPV4=true
HOSTNAME='localhost.localdomain'
My /etc/sysconfig/network-sripts/ifcfg-eth0
Code:
DEVICE=eth0
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=yes
/etc/sysconfig/network on the RH8 box as follows
Code:
NETWORKING=yes
FORWARD_IPV4=true
HOSTNAME='localhost.localdomain'
GATEWAY=192.168.0.1
GATEWAY_IF=eth0
/etc/sysconfig/network-scripts/ifcfg-eth0 on the RH8 box
Code:
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=yes
My /etc/hosts on the RH7.3 box
Code:
127.0.0.1 localhost.localdomain localhost
192.168.0.1 localhost.server.com server
192.168.0.2 localhost.client.com client
And finally the /etc/resolv.conf on the RH7.3 box
Code:
server 192.168.0.1
client 192.168.0.2
search localdomain
This is my first attempt at setting up a network and im clueless as to what im doing wrong or what i have not done...
Anyone any ideas?
Thanks in advance