Todo #765


Patch: Add custom DHCP configuration

Added by Chris Buechler almost 12 years ago. Updated about 4 years ago.

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


Estimated time:
Plus Target Version:
Release Notes:


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).


Actions #1

Updated by Ermal Luçi over 11 years ago

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

Actions #2

Updated by Scott Ullrich over 11 years ago

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

Actions #3

Updated by Scott Ullrich over 11 years ago

  • Status changed from New to Feedback
Actions #4

Updated by Scott Ullrich over 11 years ago

I just emailed Jonathan to check this ticket.

Actions #5

Updated by Jonathan Dieter over 11 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.

Actions #6

Updated by Chris Buechler over 11 years ago

  • Status changed from Feedback to Resolved
Actions #7

Updated by Jonathan Dieter about 11 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.

Actions #8

Updated by Florent Poinsaut over 8 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.


Actions #9

Updated by Stéphane Lapie about 4 years ago

It seems this is still not integrated in pfSense 2.4.


Also available in: Atom PDF