-
Notifications
You must be signed in to change notification settings - Fork 156
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
dhclient keeps complaining about unknown DHCP option #219
Comments
Feel free to take this to FreeBSD, this is a minor annoyance at best. |
A patch has been suggested for FreeBSD, which silences warnings for this specific DHCP option; the same has been done for other DHCP options before. Once this gets merged (if it does, see below), receiving this particular DHCP option will not cause any more error messages in the log. There seems to be some discussion among the FreeBSD folks regarding this approach, as the list of options to ignore is likely to grow further. The workaround for this kind of behavior is to add
in the I just took a look at the GUI (Interfaces > [{$IFNAME}] > DHCP client configuration), and even in Advanced mode, the GUI does not offer an option for this – I would have to use Config File Override and supply an entire config file from scratch. Should the fix get rejected in FreeBSD, I would suggest exposing the |
The fix has been committed to FreeBSD today and should be on stable branches in two weeks. That would scratch my present itch and I would, for the moment, no longer have an acute need to add |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
I keep getting the following error message in the log every time the IP config on the external interface is renewed (15 minutes with my ISP):
To Reproduce
Steps to reproduce the behavior:
0x7d
is known to work)Expected behavior
I would expect dhclient to silently ignore any options it does not understand (standard parser behavior). If it does log a message at all, the log level should be Debug or Information at most, not Error.
Describe alternatives you considered
Reconfigure the DNS server to not set any obscure options OPNsense does not need or understand. However, the DNS server is beyond my control (I probably won’t get my ISP to configure their DHCP server the way I think it should be), and since lease times are such that renewals happen every 15 minutes, this really clutters up the logs. There may certainly be legit use cases why a DHCP server would specify DHCP options which OPNsense does not understand.
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant log files
See above – it is really just one line.
Additional context
I’ve verified DHCP traffic with a packet capture tool, and the DHCP offer indeed does have the unsupported option in it.
The log entry has been around for a few versions and might have been present ever since I started using OPNsense on that particular ISP.
Should this not be the right place to file an issue against dhclient in OPNsense, feel free to move it or let me know where to report this.
Environment
OPNsense 24.7.3_1-amd64
The text was updated successfully, but these errors were encountered: