summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-04-06 20:08:09 +0200
committersmos <seth.mos@dds.nl>2012-04-06 20:08:09 +0200
commit092462dc10d1a429d14fa9c783307e4be8b84910 (patch)
tree08c38a796ca83b4fe55dce5fe834608c30c7919b /etc
parent0416d9a0eb3a0bee08fa09d151344452f288bdef (diff)
downloadpfsense-092462dc10d1a429d14fa9c783307e4be8b84910.zip
pfsense-092462dc10d1a429d14fa9c783307e4be8b84910.tar.gz
Add a dhcpleases monitor to the DHCPv6 server which will trigger automatic creation of routes into the routing table so that prefix delegation will just work.
Redmine ticket #2347
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index e41f5ed..b5f84f4 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -264,6 +264,7 @@ function services_dhcpd_configure() {
fwrite($fd, "cp /lib/libc.so.* {$g['dhcpd_chroot_path']}/lib/\n");
fwrite($fd, "cp /usr/local/sbin/dhcpd {$g['dhcpd_chroot_path']}/usr/local/sbin/\n");
fwrite($fd, "chmod a+rx {$g['dhcpd_chroot_path']}/usr/local/sbin/dhcpd\n");
+
if(!trim($status))
fwrite($fd, "mount -t devfs devfs {$g['dhcpd_chroot_path']}/dev\n");
fclose($fd);
@@ -1005,6 +1006,7 @@ EOD;
if(count($dhcpdv6ifs) > 0) {
mwexec("/usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot {$g['dhcpd_chroot_path']} -cf /etc/dhcpdv6.conf -pf {$g['varrun_path']}/dhcpdv6.pid " .
join(" ", $dhcpdv6ifs));
+ mwexec("/usr/local/sbin/dhcpleases -c "/usr/local/bin/php -f /usr/local/sbin/prefixes.php|/bin/sh" -p {$g['dhcpd_chroot_path']}/var/run/dhcpd6.pid -l {$g['dhcpd_chroot_path']}/var/db/dhcpd6.leases");
}
if ($g['booting']) {
OpenPOWER on IntegriCloud