On 11/17/18 9:17 AM, Jan-Benedict Glaw wrote:
> In my LAN, I'm running a ntpsec instance which has pool servers
> configured. This (single) server is handed out via DHCP to client
> hosts. If there's ntpsec running on these clients, ntpsec won't make
> the single NTP server their peer. Instead, it remains in candidate
> state and time is not synced.

I have "tos minclock 4 minsane 3" in the default config. That is what is
preventing this from working.

In /etc/dhcp/dhclient-exit-hooks.d/ntpsec, change this line:
sed '/^[[:space:]]*\(server\|peer\|pool\)[[:space:]]/d' "$NTP_CONF"
to be:
sed '/^[[:space:]]*\(server\|peer\|pool|tos\)[[:space:]]/d' "$NTP_CONF"

Can you confirm that fixes the problem? If so, I'll upload this fix.

-- 
Richard

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to