OPNsense Forum

English Forums => 25.7 Series => Topic started by: kbocek on August 09, 2025, 09:08:14 PM

Title: NTP Fails
Post by: kbocek on August 09, 2025, 09:08:14 PM
Running OPNsense 25.7.1_1-amd64 so all patched up.

NTP Fails to run. Log says
2025-08-09T12:00:22-07:00
Error
ntpd
daemon child died with signal 11
2025-08-09T12:00:22-07:00
Error
ntpd
unable to create socket on bridge0 (11) for 192.168.0.10:123
2025-08-09T12:00:22-07:00
Error
ntpd
bind(31) AF_INET 192.168.0.10:123 flags 0x19 failed: Address already in use

And yet trying to find what might be using the port:

lsof -i :123
Yields nothing. Does anyone have any idea what is going on?
Title: Re: NTP Fails
Post by: BrandyWine on August 10, 2025, 02:00:43 AM
A socket and port are not the same thing.
Is there an actual 123 listener on the iface? "netstat", etc.
Title: Re: NTP Fails
Post by: patient0 on August 10, 2025, 08:05:59 AM
Quote from: kbocek on August 09, 2025, 09:08:14 PMYields nothing. Does anyone have any idea what is going on?
You want to check what runs on port UDP/123:

sockstat -ln -P udp | fgrep :123
Title: Re: NTP Fails
Post by: kbocek on August 10, 2025, 03:57:26 PM
Thank you for the reply. I figured out that this was an artifact of my attempt to add a second IP address to my LAN interface. Something I've never been able to get working but that's a subject for another thread.

In any case, ntp was attempting to attach to the bridge device which didn't work. Setting the ntp device to WAN fixed the problem.