| Summary: | net/chrony: After 3.4 update, chronyd server listener broken when bindaddress set in chrony.conf | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | ddrinnon | ||||
| Component: | Individual Port(s) | Assignee: | Bernhard Froehlich <decke> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | decke, morgan, yonas | ||||
| Priority: | --- | Keywords: | needs-qa, regression | ||||
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(yonas) |
||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232823 | ||||||
| Attachments: |
|
||||||
|
Description
ddrinnon
2018-11-29 18:30:53 UTC
I can confirm. Seeing the same thing. It's a real problem on a host with multiple jails, as chrony on the host is now listening on all jail IPs. Created attachment 199807 [details]
upstream patch
Does this patch fix it for you guys?
The patch fixes it for me. Thank you! [root@gateway01 /usr/local/etc]# sockstat -4|more USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS chronyd chronyd 20582 5 udp4 10.0.1.1:123 *:* [root@aux01 ~]# ntpdate 10.0.1.1 4 Dec 07:25:07 ntpdate[19211]: adjust time server 10.0.1.1 offset 0.002788 sec [root@aux01 ~]# chronyc sources 210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* gateway01.cdor.net 2 9 377 349 +310us[ +310us] +/- 30ms .... (In reply to Colin T. from comment #2) The patch works great! Thanks so much. I'll take it. A commit references this bug: Author: decke Date: Thu Dec 27 20:41:55 UTC 2018 New revision: 488567 URL: https://svnweb.freebsd.org/changeset/ports/488567 Log: net/chrony: Fix chrony running as server and using bindaddress On FreeBSD, sendmsg() fails when IP_SENDSRCADDR specifies a source address on a socket that is bound to the address. This prevents a server configured with the bindaddress directive from responding to clients. Add a new variable to check whether the server IPv4 socket is not bound before setting the source address. PR: 233644 Submitted by: Colin T <bugzilla@nulldir.e4ward.com> Reported by: ddrinnon@cdor.net Approved by: maintainer timeout (> 3 weeks) Obtained from: https://git.tuxfamily.org/chrony/chrony.git/commit/?id=6af39d63aa9323b4b8c39efe24ae0c88c949a901 Changes: head/net/chrony/Makefile head/net/chrony/files/patch-ntp__io.c It's committed now. Thanks to all involved people! |