Page MenuHomeVyOS Platform

System ntp servers are ignored if provided by DHCP (ISP)
Not ApplicablePublicBUG

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

Version
1.2.8
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.Apr 23 2024, 5:44 PM
Viacheslav edited projects, added VyOS 1.3 Equuleus (1.3.7); removed VyOS 1.5 Circinus.
Viacheslav subscribed.

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

I can't test it in 1.3. I've tried to build the latest 1.3 from repository, but it looks like the build process is broken and does not allow contributors to build following the documentation guide any more.
That's sad :(

syncer changed the task status from Needs reporter action to In progress.May 19 2024, 1:07 PM
syncer closed this task as Not Applicable.Oct 30 2024, 8:28 AM
syncer removed a project: VyOS 1.3 Equuleus (1.3.9).