LinuxQuestions.org
Review your favorite Linux distribution.
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 06-20-2003, 10:37 AM   #1
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Rep: Reputation: 0
Angry Anyway to run DHCP without Shorewall?


I'm running Mandrake 9.1 and thier DHCP server setup automatically runs Shorewall. I have no need for a firewall, infact it's more of a headache then it's worth at this point.

When I turn shorewall off all the rest of the machines on the network have no internet access at all...

My Setup is pretty standard...
eth0 connects to my cable modem
eth1 connects to my hub, which several other windows machines dhcp from.

I just want to run DHCP without blocking ANY ports!!!!! Anyway to run it without Shorewall?!?!?
 
Old 06-20-2003, 11:43 AM   #2
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
Sorry, I guess this more belongs in the "Security" Forum... I guess you can close this... Anyone have an ANSWER though?!?!?!?
 
Old 06-20-2003, 11:58 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
I have dhpcd running without a firewall of any kind. just edit /etc/dhcpd.conf and run /usr/sbin/dhcpd -- at least on my slack boxes, that's the way to do it -- I assume dhpcd is hiding in the same place on Mandrake.
 
Old 06-20-2003, 12:07 PM   #4
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
Well, thank you for your assistance, however I'm not exactly sure what you mean... I've been around linux for some time now, but this FIrewall and DHCP stuff is all new to me. Could you be a bit more descriptive, maybe even post examples of what your refering to as far as what settings I should have in the dhcpd.conf, etc ...
 
Old 06-20-2003, 03:16 PM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
You need to read the following man pages:
dhcpd
dhcpd.conf
Blindly copying configuration files will just get you into trouble, things can be very site specific. There are numerous examples in the dhcpd.conf man page, some of which are, actually, usefull. Once you've edited /etc/dhcpd.conf to your satisfaction, you run (as root) /usr/sbin/dhcpd. It's a relatively smart daemon and will probably tell you if the settings are grossly wrong. If you've already set up your firewall and dhcpd stuff using shorewall, you may not have to bother with editing /etc/dhcpd.conf.
Once you've decided that the settings are right, you may want to make dhcpd run at startup. To do this, you have to add it to the startup scripts. There is probably some GUI config tool that will "help" you do this, but if you want to be certain it works, you can edit files in /etc/sysconf and /etc/rc#.d (# is a number, probably 3 for you).
 
Old 06-20-2003, 03:37 PM   #6
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
No one said anything about blindly copying configurations, I just wanted an example to see how a proper 2 eth card setup would look like.

Those man's are pages and pages long and go into the creation of the center of the universe and who knows what... all it did was confuse me more.

I learn best by seeing a correct example, and then from there I can learn what does what and make changes on my own...

Does anyone have a working dhcpd.conf example of a DHCP server running eth0 to the net and eth1 locally with no firewall invloved?

Last edited by Psykoral; 06-20-2003 at 04:17 PM.
 
Old 06-20-2003, 04:41 PM   #7
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#

# Standard configuration directives...
allow booting;
allow bootp;


ddns-update-style none;
option domain-name "valhalla.org";
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers 128.196.11.233;
option routers 192.168.0.2;
option vendor-class-identifier "PXEClient";
option vendor-encapsulated-options ff;
filename "pxelinux.0";


subnet 192.168.0.0 netmask 255.255.255.0 
{
  range 192.168.0.176 192.168.0.224;
  default-lease-time 600;
  max-lease-time 7200;
}

# Group the PXE bootable hosts together
group
{
  use-host-decl-names           on;
  option vendor-class-identifier "PXEClient";
  # PXE-specific configuration directives...
  next-server 192.168.0.2;
  option root-path "/export/root";
  filename "pxelinux.0";

  host Libretto
  {
    hardware ethernet 00:00:XX:XX:XX:XX;
    fixed-address 192.168.0.175;
  }
}

Last edited by moses; 06-20-2003 at 04:42 PM.
 
  


Reply


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
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM
dhcp when two firewalls in series: integrated firewall to router + shorewall iptable Emmanuel_uk Linux - Networking 3 08-15-2005 07:14 AM
shorewall and dhcp-server win32sux Linux - Networking 0 02-16-2004 02:05 AM
Anyway to run DHCP without Shorewall? (Firewall) Psykoral Linux - Security 3 07-11-2003 08:34 AM
How do you run netmeeting behind shorewall firewall cmisip Linux - Networking 6 02-26-2003 10:40 PM

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

All times are GMT -5. The time now is 02:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration