Hi all. I am having trouble sharing an internet connection and I'm running out of ideas. I have read a number of listings on this site, all to no avail. My setup is as follows:
Router is FC2 with eth0 to the LAN and ppp0 to internet (which works fine - I can establish an internet connection); eth0 goes through a D-Link Router/Switch (dhcp disabled, I have this configured on FC2 Router), which goes to my FC1 client machine on eth1. I can ping one of my ISP assigned nameservers from my FC1 client, but when I try to open a page from my browser I get:
"Alert:
www.google.com could not be found. Please check the name and try again"
Here is what I have done on the FC2 router:
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=crash
GATEWAYDEV=ppp0
/etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.ip_dynaddr = 1
/etc/sysconfig/network-scripts/ifcfg-eth0
# Davicom Semiconductor, Inc.|21x4x DEC-Tulip compatible 10/100 Ethernet
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:08:A1:07

0:85
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=crash
USERCTL=no
PEERDNS=yes
IPV6INIT=no
IPADDR=192.168.0.1
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
Rules added to iptables:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -s ! 192.168.0.0/24 -j DROP
All services/iptables have been saved and restarted.
ppp0 is setup to automatically obtain DNS info from provider.
My client eth1 is pointing to GATEWAY=192.168.0.1
Can someone see what's wrong/missing?
Thanks!