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:
could not be found. Please check the name and try again"
Here is what I have done on the FC2 router:
net.ipv4.ip_forward = 1
net.ipv4.ip_dynaddr = 1
# Davicom Semiconductor, Inc.|21x4x DEC-Tulip compatible 10/100 Ethernet
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?