Page MenuHomeVyOS Platform

System ntp servers are ignored if provided by DHCP (ISP)
Needs reporter action, NormalPublicBUG

Description

The NTP servers configured by "set system ntp server xxx" got ignored if one of the interfaces has received NTP servers via DHCP.

In fact, in my case it was even a security issue, as the DHCP provided server was several days in a past and SSL certificates (and other SSL time dependent VPN functions) has stopped to work, causing a service outage.

After some investigation, I've found the lines to blame in /etc/init.d/ntp

if [ -e /var/lib/ntp/ntp.conf.dhcp ]; then
	NTPD_OPTS="$NTPD_OPTS -c /var/lib/ntp/ntp.conf.dhcp"
fi

Removing the above lines, corrects the issue.

Please, update, if possible.

Details

Difficulty level
Unknown (require assessment)
Version
1.2.8
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Viacheslav changed the task status from Open to Needs testing.Jan 20 2024, 10:25 AM
Viacheslav triaged this task as Normal priority.
Viacheslav edited projects, added VyOS 1.5 Circinus; removed VyOS 1.2 Crux.
Viacheslav changed the task status from Needs testing to Needs reporter action.Tue, Apr 23, 5:44 PM
Viacheslav edited projects, added VyOS 1.3 Equuleus (1.3.7); removed VyOS 1.5 Circinus.
Viacheslav added a subscriber: Viacheslav.

Not actual for 1.5/1.4
@mrlocke Can you re-check the 1.3?