PFSense tftp-server-name DHCP option

Discussion, tips and tricks for the different Unix flavors

PFSense tftp-server-name DHCP option

Postby curlee » Wed Jul 15, 2009 11:06 am

PfSense for some reason does not have a tftp-server-name DHCP option. To add this option:

Mount the file system writable
Code: Select all
mount -w /

Add this code at Line 238 in /etc/inc/services.inc
Code: Select all
if ($dhcpifconf['tftp-server-name'])
    $dhcpdconf .= " option tftp-server-name \"{#dhcpifconf['tftp-server-name']}\";\n";

Edit your config.xml and add this code under pfsense/dhcpd/lan (or whatever adapter you need a tfpt-server-name option):
Code: Select all
<tftp-server-name>X.X.X.X</tftp-server-name>
curlee
Site Admin
 
Posts: 49
Joined: Wed May 03, 2006 12:01 pm

Return to BSD/Linux/Unix

Who is online

Users browsing this forum: No registered users and 1 guest

cron