LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2003, 07:02 PM   #1
Renfro
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.

Thanks,

James
 
Old 08-28-2003, 07:22 PM   #2
mlp68
Member
 
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,

mlp
 
  


Reply



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 05:26 AM
DHCP, Gateway and DNS server depam Linux - Networking 3 10-05-2005 07:33 PM
No gateway from DHCP when using wireless tnine9 Linux - Wireless Networking 0 01-30-2005 01:00 PM
Setting up a gateway/dhcp server. chaosego Linux - Wireless Networking 33 09-26-2004 07:50 AM
linux gateway and DHCP weazy Linux - Networking 3 03-19-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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