Project

General

Profile

Actions

Todo #765

closed

Patch: Add custom DHCP configuration

Added by Chris Buechler over 13 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
DHCP (IPv4)
Target version:
Start date:
07/28/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

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


Files

Actions #1

Updated by Ermal Luçi over 13 years ago

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

Actions #2

Updated by Scott Ullrich over 13 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 13 years ago

  • Status changed from New to Feedback
Actions #4

Updated by Scott Ullrich over 13 years ago

I just emailed Jonathan to check this ticket.

Actions #5

Updated by Jonathan Dieter over 13 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 13 years ago

  • Status changed from Feedback to Resolved
Actions #7

Updated by Jonathan Dieter about 13 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 10 years ago

Hello,

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.

Regards,

Actions #9

Updated by Stéphane Lapie about 6 years ago

It seems this is still not integrated in pfSense 2.4.

Actions

Also available in: Atom PDF