DHCP weirdness after 23.09 upgrade
-
-
I assume this file is the same across most of the various hardware.
I have a SG-1100 backup that is currently on 23.05.1, If the file is the same I could pull it from it. If it is hardware specific, then I will have to jump back to 23.05.1 on my SG-5100 to pull it.
Do you happen to know?
Phizix
-
@Phizix the 1100 and 2100 and 3100 are Arm CPUs so that won’t work. If you had reinstalled at some point and have ZFS you could revert to an old boot environment temporarily.
-
@Phizix said in DHCP weirdness after 23.09 upgrade:
How does one replace the binary with the one from 23.05.1?
For me I just booted the zfs 23.05.1 on my VM, grabbed the file via sftp.. Then stopped dhcpd on my sg4860, copied the current dhcpd to dhcpd.old and then via sftp put the dhcpd from my vm on my 4860 and then restarted it..
I am going to have to do a bit of research - but I could understand why some clients might not like an answer from some random port when it sent to 67.. Have to fire up the rfc and see if client is just not up to date on what is should do.. It is odd, and if doesn't like it renew why does it take it on discover. Or is the discover coming from 67? Very interesting situation for sure.
edit:
It was actually a nice test of booting to an old zfs.. which worked out great. -
My SG-5100 is on ZFS, so I should be able to boot to the previous 23.05.1 environment and grab it.
I did not know if all the files were hardware specific or not.
I don't think it will be too hard, but if it had not been hardware specific then it would have almost been trivial to grab it.
Thanks for the response!
Phizix
-
@johnpoz said in DHCP weirdness after 23.09 upgrade:
It was actually a nice test of booting to an old zfs.. which worked out great.
The boot environment feature is so clutch. Just awesome
-
I'm seeing similar problems while applying "DHCP enforcement" through my wifi infrastructure - the controllers aren't recognizing the DHCP transactions and are kicking clients off even after they receive DHCP leases. Switching to Kea isn't an option for me yet since I'm running redundant pairs. The behavior is reliably reproducible on 23.09 and doesn't exist on 23.05.1.
-
I may have to do this soon. It appears my garage door opener is not getting an IP. DOH!!
-
If anyone has a non-ZFS-based way to patch/work around the issue at scale (not all my affected boxes have been moved to ZFS yet, and there are a lot, so a binary swap would be challenging) I'd be super amped to hear about it.
-
@beatvjiking As long as you pay attention to architecture you can just use a random 23.05.1 install, get the file and then deploy to all your boxes. Anything below the 4000 series is ARM though, so be careful not to deploy x86 binaries to those.
-
OK, looking back at the Garage Door opener logs, it lost IP long before the 23.09 upgrade.
Looks like I have some troubleshooting to do.
Phizix
-
-
Where can we download 23.05 to get the previous binary?
-
@lopezi If you have ZFS you can revert to an earlier boot environment.
https://docs.netgate.com/pfsense/en/latest/backup/zfsbe/index.htmlIf not and you have Netgate hardware you can request an old image and install it. (Also gets you ZFS)
If you don’t have Netgate hardware then one way might be to install 2.6, then upgrade to 23.05? If it lets you choose Previous Stable while upgrading…?
-
@SteveITS No, not on Netgate hardware but I did upgrade from CE to Plus a few versions back but my install is still using UFS so no ZFS boot for me.
If I go to System -> Update -> Update Settings I can select 23.05.1 but I don't want to revert my whole system. However, if I can get the endpoints that this is pulling from, I could download the package in theory. Anyone know the endpoints?
-
@johnpoz said in DHCP weirdness after 23.09 upgrade:
For me I just booted the zfs 23.05.1 on my VM, grabbed the file via sftp.
You might not need to reboot to fetch a file from a previous ZFS Boot Environment. Try looking for the ZFS snapshot of your previous root in
/.zfs/snapshot
. It will be named after the date and time it was created.For example, on my 23.09 system:
ls -l /usr/local/sbin/dhcpd -r-xr-xr-x 1 root wheel 3084656 Oct 6 00:44 /usr/local/sbin/dhcpd ls -l /.zfs/snapshot/2023-11-09-11:07:11-0/usr/local/sbin/dhcpd -r-xr-xr-x 1 root wheel 3111960 Feb 17 2023 /.zfs/snapshot/2023-11-09-11:07:11-0/usr/local/sbin/dhcpd
The
/.zfs
directory won't appear in a regularls
listing. -
@mathiasringhof
https://redmine.pfsense.org/issues/15011#note-14
"The fix will be included in 23.09/2.7.1 in the next ports build, after which runningpfSense-repoc; pkg upgrade
will pick it up."Sounds like it will be slipstreamed in for those who haven't upgraded yet...?