Skip to content
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

dhcpd: support ignore-client-uids (and other dhcpd options) #3673

Closed
comotion opened this issue Aug 27, 2019 · 3 comments · Fixed by #4954
Closed

dhcpd: support ignore-client-uids (and other dhcpd options) #3673

comotion opened this issue Aug 27, 2019 · 3 comments · Fixed by #4954
Labels
help wanted Contributor missing / timeout

Comments

@comotion
Copy link
Contributor

First of all, let me just say I'm very happy with OPNsense.

I've got some clients that boot into two modes one of which doesn't send uids, which means they get different IP addresses when they boot, and I lose connectivity to them, especially when the dns/dhcp map is out of sync due to caching.

I'd like to set the
ignore-client-uids
option on dhcpd so it can assign the same IP address always, but I cannot find a way to do so from the UI. Running OPNsense 19.7.

I've tried adding the option through changing the dhcpd.conf over ssh but it doesn't preserve over service restarts.

Is there any way to add custom options to dhcpd.conf through the ui?
Either to ignore-client-uids specifically or to add service-wide options to dhcpd.
Perhaps an option to do so can be added to future versions of OPNsense?

@fichtner fichtner added the help wanted Contributor missing / timeout label Nov 11, 2019
@AdSchellevis
Copy link
Member

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.

@psuter80
Copy link

psuter80 commented Jun 11, 2020

i was looking for the same option as we have lots of pxe booted clients where first the pxe rom gets a lease without uid and then the os gets another lease with uid. this leads to lots of occupied leases and ip changes during the boot process which can be troublesome. also dual-booted machines change ip's every time they are booted to the other OS.

i wrote a patch to add the ignore-client-uids option to the dhcp config. it can be enabled for each pool individually.

i would appreciate if someone could migrate this into the source tree and future opnsense releases, so that i don't have to patch my installation after every update.

the patch was written on 20.1 and it also works on 20.1.7

for those who want to patch it on their currently running opnsense instance, it can be done like so:

1.) download the file to /tmp/ignoreuid.txt
2.) cd / ; patch -p 1 < tmp/ignoreuid.txt
3.) repeate after every update

regards
Pascal
ignoreuid.txt

@comotion
Copy link
Contributor Author

that's pretty cool @psuter80 - maybe you could open a pull request for your patch? makes it easier for the devs to pick up the change.

comotion added a commit to comotion/opnsense-core that referenced this issue Apr 28, 2021
fichtner pushed a commit that referenced this issue Jun 4, 2021
(cherry picked from commit ec400a0)
(cherry picked from commit a0e2f26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributor missing / timeout
Development

Successfully merging a pull request may close this issue.

4 participants