Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - kabi-chan

#1
I do something similar in my own setup.

Try placing your script in /var/dhcpd/usr/local/sbin/oncommit instead, and then updating your on commit hook to use the path /usr/local/sbin/oncommit

Also, instead of editing the .inc files, which will get overwritten on an update, you should create a separate .conf file in the folder /usr/local/etc/dhcpd.opnsense.d/ (for v4) or /usr/local/etc/dhcpd6.opnsense.d/ (for v6) as suggested by the documentation here: https://docs.opnsense.org/manual/dhcp.html#advanced-settings