Easy win: Enable Kea run_script plugin
-
I have a fairly straightforward suggestion which is easy to enable and doesn't require any GUI changes.
The reason behind it: I've finally got IPv6 at home for the first time (yes, in 2024!), but it's a dynamic prefix so it's (nearly) impossible to make static mappings, along with the need for DNS to be elsewhere, rather than pfsense be the Lan's DNS server.I have this working on another system with KEA DHCP + ULA, but since KEA is on the pfsense box itself, it would make sense to enable the DHCP -> external DNS mapping there and have no further need for the ULA. And this will also work for Kea dhcp4.
- Enable kea
libdhcp_run_script.so
(part of the standard install)
"hooks-libraries": [ { "library": "/path/to/kea/hooks/libdhcp_run_script.so", "parameters": { "name": "/path/to/kea6_script.sh", "sync": false } } ],
kea6_script.sh
would contain something along the lines of:
#pseudo code for file in `ls /path/to/dhcp6-scriptsdir.d/` do; exec file
/path/to/dhcp6-scriptsdir.d/
would contain my script(s), and I could just put something in there which does the DNS update remotely usingnsupdate
or something more fancy with a cgi script andcurl https://mydns.example.com/dnsupdate?host=$HOST&IP6=$IP
Can anyone suggest reasons for not doing this? And how do I get the developers attention?
- Enable kea
-
@thermo for the second question, feature requests can be made at redmine.pfSense.org.
-
@SteveITS Thanks, created a ticket at https://redmine.pfsense.org/issues/15666
-
Turns out it wasn't too difficult to do myself.
PR: https://github.com/pfsense/pfsense/pull/4693