[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

dhcpd & Internet connection sharing

Hi all,
I have a linux machine connected to the cable-modem through my eth1. I want to use eth0 for my home network. This machine will act as the router. The client machines are mainly Windows 2000 Professional. I managed to setup the dhcpd server on my linux and the Windows client can successfully get an address from the server. I verified that using the debug mode for the dhcpd.
The problem is that I don't seem to have an internet connection sharing on the linux machine. The Windows clients cannot make it to the internet.

Any suggestions?
Thanks
0
hsaqallah
Asked:
hsaqallah
1 Solution
 
jlevieCommented:
Have you also configured the Linux box to masquerade the inside network onto your cable connection? Is the Linux box configured to route traffic (/proc/sys/net/ipv4/ip_forward
 = 1)? When assiging the DHCP leases to your inside machines did you specify the correct gateway IP (that of your eth0) as the default route? And are you telling the clients the correct IP for the  nameservers (probably the same IP that the Linux box has in /etc/resolv.conf).

You don't say what Linux you are using, so I can't tell if IPchains or IPtables is the appropriate firewall for masquerading. You'll likely find http://www.redhat.com/mirrors/LDP/HOWTO/IP-Masquerade-HOWTO/index.html 
to be helpful in setting you the Linux box as a gateway router.
0
 
CleanupPingCommented:
hsaqallah:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now