PDA

View Full Version : DHCP server help


ty_r_k
2004-04-18, 07:14 PM CDT
I recently built a server and installed fedora on it. I am trying to get it running as a dhcp server along with some other things but I am having a tough time getting it to push out information to my router.

Here is the path from the wall that I want my internet to travel.

Cable Modem
Linux server eth0
Linux server eth1
Linksys router
laptop and windows box

I can get online with my server but cant push dhcp through eth1. I have dhcp set up on eth0 to acquire my ip/dns/snm/gateway from my modem.

Set eth1 with a static ip, eth0 ip as the gateway dns and snm the same as eth0

Staticly set my router to recieve from eth1 but i would like to push dhcp through eth1 and use the dhcp in the router for my internal routing on my laptop and desktop.

I feel like im missing a program or something as the only time i have set up dhcp on a server is in win2000/server 03.

Any and all help would be greatly appreciated

kel
2004-04-20, 12:05 PM CDT
The setup you describe is not a wise move. Replicating the outside network through your 'server' doesn't really help you much, is complicated, and expands your security concerns.

What you should be thinking of is having your 'server' be a firewall to your inside
network, ala

Cable Modem
|
'Server eth0' ip given by CB
'Server eth1' ip # in private range
|
all of your gear

In this approach you set up your inside network as a private non-routing IP range (192.168.0.0/255.255.255.0 for example), serve up DHCP to all your boxes behind through eth1 and have your server box set up as a router for all packets inside to CB and the WWW.
- You then run a tight iptable/netfilter firewall on eth0 to help protect everything behind.
- You run DHCP from 'Server eth1' for your other gear.
- You are essentially running your own network and can do what you like inside.

There is a great deal of information about this on the web or folks here can help you with the various portions of the setup...

Jman
2004-04-20, 03:50 PM CDT
What is the model of the Linksys? If it has a dhcp server I would attach it to the modem and then put everything behind it including the server. I especially recommend it if the Linksys is one of those broadband routers.

The path Internet traffic would take would be this:
modem
Linksys router
server/desktop/laptop

This would remove your dhcp server from the picture, maybe for another task.

The Linksys router may assume it's the dhcp server, confusing things.

ty_r_k
2004-04-20, 04:07 PM CDT
I have no problem in setting private ip's once im behind the server. I was planning on setting eth1 for private and set the router to get its info from there then push out a static ip from the router. I tried it once and had no access through the router/through the server to the outside. Ill have to try it again and see if I had just entered in some wrong paths.

Thanks for the help