-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of the exit_with_hooks() function and its calls from src/opnsense/scripts/interfaces/dhclient-script #8175
Comments
|
Before writing this awful hack :-|, I tried using the newwanip event but was unsuccessful. I’m not concerned about the quality of my code since this firewall is a simple setup for domestic use, so code quality isn’t an issue. Besides, it’s working fine. What I need is to update to version 24.7, but with the removal of the exit_with_hooks() function, I first need to find a solution to this problem. If the solution is the newwanip event, could someone provide an example implementation to achieve what I’m currently doing with this awful hack? |
You might be able to put something together with the lease information collected in |
Indeed, the file /var/db/dhclient.leases. contains the information I need. Thank you!
However, how will I know when the IP address changes on the monitored WAN interface so I can then read the new IP and proceed with updating the DNS? This was the main advantage of using the exit_with_hooks() function—it was triggered immediately after the IP change on the WAN interface, leaving me only to read the new IP and update the DNS. I don’t mean to be difficult, but I’ve searched extensively and still don’t understand the actual need to remove this code from src/opnsense/scripts/interfaces/dhclient-script. Was there a security issue with it? If so, what was it? I’m even considering updating to version 24.7 and then restoring the original content of the dhclient-script, as I believe that would be the simplest and quickest solution, given that I couldn’t find any plausible justification for removing this code. |
With the removal of the exit_with_hooks() function and its calls from src/opnsense/scripts/interfaces/dhclient-script, I am stuck on version 23.7 because I used the /etc/dhclient-exit-hooks script to capture options received from my ISP's DHCP and forward them to the IPBX (Asterisk) server via DNS.
Below is an excerpt from my /etc/dhclient-exit-hooks.
How can I migrate to version 24.7 without losing this functionality? It is crucial for my environment.
The text was updated successfully, but these errors were encountered: