Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-28-2003, 08:02 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
DHCP and Gateway

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.


Old 08-28-2003, 08:22 PM   #2
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
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,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp does not set gateway pantoniades Linux - Networking 4 02-14-2006 06:26 AM
DHCP, Gateway and DNS server depam Linux - Networking 3 10-05-2005 08:33 PM
No gateway from DHCP when using wireless tnine9 Linux - Wireless Networking 0 01-30-2005 02:00 PM
Setting up a gateway/dhcp server. chaosego Linux - Wireless Networking 33 09-26-2004 08:50 AM
linux gateway and DHCP weazy Linux - Networking 3 03-19-2003 05:30 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration