0

I'm currently designing a system (a physical system that can be used where ever) and have run into the issue that on some networks internet NTP servers can be blocked (by a firewall). In those cases there always are local NTP servers available. Maybe even the DHCP offers some.

Now how do I get the NTP daemon to look for those local ones (either sending a broadcast itself or looking for advertisement broadcasts) and to accept any offered over DHCP while still using (or trying to use) the pools configured in the config.

BrainStone
  • 3,534
  • 12
  • 32
  • 53
  • Which NTP client do you use? Which DHCP client do you use? – tastytea Feb 16 '20 at 15:50
  • @tastytea ntpd and the Debian default DHCP client. – BrainStone Feb 16 '20 at 15:52
  • 3
    Possible duplicate of [how do you set up a linux client to use ntp information provided through dhcp](https://unix.stackexchange.com/a/349525/100397) – roaima Feb 17 '20 at 09:37
  • 1
    @roaima ah thank you. Looks like the confiurations lined out there are the default setup on Debian Buster, which is nice. So the DHCP part is covered. – BrainStone Feb 17 '20 at 10:04
  • 2
    Does this answer your question? [how do you set up a linux client to use ntp information provided through dhcp?](https://unix.stackexchange.com/questions/327954/how-do-you-set-up-a-linux-client-to-use-ntp-information-provided-through-dhcp) – maxschlepzig Jun 12 '20 at 19:51

1 Answers1

1

Getting specific NTP servers from DHCP to use in Client/Server mode is the better choice. If that doesn't work in your environment, have a look at NTP Broadcast Mode, and see if your local NTP servers are set up to respond to broadcast requests.

https://kb.meinbergglobal.com/kb/time_sync/ntp/configuration/ntp_broadcast_mode

dafydd
  • 1,458
  • 4
  • 17
  • 32
  • The idea is that I have a systems of fallbacks because this ends up machines that may be deployed anywhere where I don't have any control over. – BrainStone Feb 21 '20 at 22:34
  • Given that networks can be static address only, and out of your control, and NTP servers can be set to forbid broadcast mode, also out of your control. you might be stuck with having to include a list of minimum requirements for installation. – dafydd Feb 23 '20 at 04:14