LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP and Gateway (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-and-gateway-86777/)

Renfro 08-28-2003 07:02 PM

DHCP and Gateway
 
:newbie: First, I am sorry if this question has been brought up before. I recently install RH9 and I am trying to setup my server to be the network firewall, dhcp server, and internet gateway. I have spent three or four nights until 4am trying to do so :-) My internet connection is on eth0 and my network is on eth1. I tried firestarter and several different scripts from Linux for Dummies (shame) with no luck. Any help you could provide would be much appreciated.

Thanks,

James

mlp68 08-28-2003 07:22 PM

You mention several problems, but your subject line is about dhcp. For the dhcp part, it's just a config file. On Redhat, you need the dhcpd RPM installed (careful, there's a dhcpcd rpm which is the client software, you need the server).

Edit the template /etc/dhcpd.conf to reflect your setup, start the service, and you are done.

In the file there are entries for the gateway, ip range, fixed IP's, etc, and the man page is actually very detailed.

For the firewall part, there are many good howto's and also several good posts around here. For the gateway, all you need to do is to enable ip forwarding. Several methods available, I use a file /etc/sysctl.conf where you change a forward entry from 0 to 1 (that takes effect after a reboot, or you can force it by sysctl -p).

Hope it helps,

mlp


All times are GMT -5. The time now is 07:06 PM.