Todo #765

Patch: Add custom DHCP configuration

Added by Chris Buechler about 9 years ago. Updated over 1 year ago.

DHCP Server
Target version:
Start date:
Due date:
% Done:


Estimated time:


patch attached but should not be committed as is, should use base64 rather than cdata.

from Jonathan Dieter on support@

In current 2.0BETA3, it seems that there's no way to write one's own
configuration settings into dhcpd.conf. For example, if I want to
chain-load gPXE, there's nowhere to put the following:

if exists user-class and option user-class = "gPXE" {
filename "http://www.lesaz.loc/netboot/pxelinux.0";
} else {
filename "gpxe.pxe";

I've added a "Custom DHCP configuration" that will be inserted at the
end of the subnet declaration. To be honest, this feels a bit hackish
(why at that location), but I'm not sure of any better place to put it.

I did modify to make any name that ends as "_cdata" a CDATA
type, as that was the most logical way that I could think of to maintain
newlines. If there's a better way, please correct it (or let me know
and I'll correct it).


#1 Updated by Ermal Luçi almost 9 years ago

Can you please check if the latest version of snapshots does this for you?

#2 Updated by Scott Ullrich over 8 years ago

Bump. Please check to see if this is resolved. We would like to go to RC1 soon and this is lingering.

#3 Updated by Scott Ullrich over 8 years ago

  • Status changed from New to Feedback

#4 Updated by Scott Ullrich over 8 years ago

I just emailed Jonathan to check this ticket.

#5 Updated by Jonathan Dieter over 8 years ago

My apologies; I'm not actually going to be able to test this for at least a few more weeks. I don't have physical access to the machine, and it's the only gateway for the school that's using it.

#6 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

#7 Updated by Jonathan Dieter over 8 years ago

My apologies for the incredibly long delay. I've just tested the March 10 snapshot, and there doesn't seem to be anywhere to input freeform dhcp configurations. The closest I can find is "Additional BOOTP/DHCP options" which doesn't allow me to input the if statement in the original bug report.

#8 Updated by Florent Poinsaut over 5 years ago


I am aware that this Feature Request is 3 years old but I feel that the last comment by Jonathan Diete is true.
Anybody could tell me if this feature was abandoned and why?

Thanks a lot.


#9 Updated by Stéphane Lapie over 1 year ago

It seems this is still not integrated in pfSense 2.4.

Also available in: Atom PDF