On Fri, 28 Jul 2023 at 16:36, Edward McGuire <met...@gmail.com> wrote:

> The fine manual says ntpq "can do everything ntpdc used to do". For the
> ntpdc command "delrestrict" what is the equivalent ntpq command?
>

You can do the equivalent using ntpq's remote configuration command
":config".  Assuming you have "controlkey 99", "trustedkey 99" and "keys
/etc/ntp.keys" in ntp.conf, and "99 M myntpqpasswd" in /etc/ntp.keys, you
could do something like:

ntpq -c "keyid 99" -c "passwd myntpqpasswd" -c ":config restrict
10.11.12.13"

to remove the specific restriction for that address, leaving it restricted
by any more general subnet restriction or the default restriction.  The
syntax for ntpq's :config is the same as for ntp.conf.

-- 
Cheers,
Dave Hart

Reply via email to