View Single Post
  #1   (View Single Post)  
Old 1st November 2008
zelut zelut is offline
Port Guard
 
Join Date: Oct 2008
Posts: 11
Default dhcpd within ezjail?

I've not been able to get dhcpd working properly within a jail. I have a number of other jails setup, but dhcpd doesn't seem to respond to any requests.

It will start up and the process is active in top, etc. When I have another client ask for an address however nothing happens. No output in the logs regarding dhcpd either.

I have this in my jail /etc/rc.conf:
Code:
## dhcpd options
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="hme0"
dhcpd_withumask="022"

dhcpd_chuser_enable="YES" # runs w/o privileges?
dhcpd_withuser="dhcpd" # user name to run as
dhcpd_withgroup="dhcpd" # group name to run as
dhcpd_chroot_enable="NO" # runs chrooted?
dhcpd_devfs_enable="NO" # use devfs if available?
#dhcpd_makedev_enable="YES"
dhcpd_rootdir="/var/db/dhcpd"
dhcpd_includedir=""
#dhcpd_jail_enable="YES"
dhcpd_hostname="hostname.domain.tld"
dhcpd_ipaddress="192.168.0.13"
I've also got the following in my dhcpd.conf:

Code:
option domain-name "domain.tld";
option domain-name-servers 192.168.0.13;
default-lease-time 600;
max-lease-time 7200;

authoritative;
ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.20 192.168.0.29;
  option domain-name-servers 192.168.0.13;
  option domain-name "domain.tld";
  option routers 192.168.0.1;
  option broadcast-address 192.168.0.255;
  default-lease-time 6000;
  max-lease-time 7200;
}
thanks in advance
Reply With Quote