kwoody at citytel.net
Fri Jun 30 03:19:51 UTC 2006
Have an old dhcp server under FBSD 4.8R using dhcpd 3.0.1rc11 built from
ports, using the Netreg system. Its been working just fine since about
Feb of 2004.
Need to move everything to a new machine soon so moving to FBSD 6.0
and having some problems with dhcp.
With FBSD 6, I portsnap'd the ports tree then built dhcp from
there, no jail, no chroot.
Getting this error:
unable to create icmp socket: Operation not permitted
Jun 29 19:55:00 netreg dhcpd: Can't open /var/db/dhcpd.leases for append.
Ok so hunt around dhcp-users, freebsd lists and while I find a few things
nothing directly that seems to help.
So deinstall the port and get then build from sources.
Builds installs no prob.
But still getting the above error. More searching, reading docs, it still
appears that dhcp is running in a jail or chrooted.
So dhcpd 3.0.3 under Freebsd 6.
uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator)
# /usr/sbin/dhcpd -cf /etc/dhcpd/dhcpd.conf
Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 2239 leases to leases file.
Listening on BPF/em1/00:14:22:1f:82:c3/126.96.36.199/27
Sending on BPF/em1/00:14:22:1f:82:c3/188.8.131.52/27
Sending on Socket/fallback/fallback-net
It starts ok.
# ps axu | grep dhcpd
root 48227 0.0 0.3 3892 3492 ?? Is 8:09PM 0:00.00
/usr/sbin/dhcpd -cf /etc/dhcpd/dhcpd.conf
Snip /var/log/messages 2 mins later:
Jun 29 20:11:00 netreg dhcpd: unable to create icmp socket: Operation not
Jun 29 20:11:00 netreg dhcpd: Can't open /var/db/dhcpd.leases for append.
# ls -l /var/db/dhcpd.leases
-rw-r--r-- 1 root wheel 474861 Jun 29 20:09 dhcpd.leases
My lease file.
dhcpd did something to the lease file when it started as the time stamp on
it is the same as the time for the process.
# ls -ld db
drwxr-xr-x 8 root wheel 512 Jun 29 20:09 db
I dont know where else to look on this and am a bit stumped and I'm
getting annoyed at all the messages from: Cron <operator at netreg>
Anyone give a guy a hand on this?
More information about the dhcp-users