On Thu, Jan 7, 2010 at 2:47 AM, Jonathan Dieter <jdie...@gmail.com> wrote: > In our school, we are currently using the ISC dhcp server on a CentOS > server, with the BIND DNS server running on the same server. We give > the computers in the school static addresses handed out over DHCP, and > unknown computers get addresses in a different range. > > I would like to migrate both DHCP and DNS over to pfsense as it is far > easier to administer than my current python-foo scripts, but I've hit a > wall with dhcpd.conf. > > All of our computers are set to netboot gpxe from our tftp server and > then use gpxe to load files from our web server (if you want to know > why, see http://cedarandthistle.wordpress.com/2009/10/09/pxe-and-gpxe). > The problem is that this requires an if-statement in dhcpd.conf. I can > add that using the Edit File menu option in pfsense, but if I add a new > computer using the web interface, the if-statement gets wiped. > > Is there any way to add the following if-statement directly into the web > interface in such a way that it won't get removed? >
Look in /etc/inc/services.inc under "write dhcpd.conf". You can hard code it there, though that won't survive upgrades, it will work. --------------------------------------------------------------------- To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org