# Chrony: NTS and Authenticated NTP packets

**URL:** <https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196>\
**Category:** Uncategorized\
**Created:** [January 6, 2024, 2:32pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196 "2024-01-06T14:32:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mibere](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mibere](https://community.ntppool.org/u/mibere)\
**Post date:** [January 6, 2024, 2:32pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196/1 "2024-01-06T14:32:22Z")

</div>

Hi all,

I run chrony 4.5 with enabled NTS. Ports 123/udp and 4460/tcp are opened in the firewall.  
Client and server do not use the `key` / `keyfile` parameter in chrony.conf.

The output of

`chronyc serverstats`

shows

```auto
NTS-KE connections accepted: 11
NTS-KE connections dropped : 0
Authenticated NTP packets : 0

```

Is something wrong with my configuration or is it correct that `Authenticated NTP packets` is zero? Because according to the [documentation](https://chrony-project.org/doc/4.5/chronyc.html)

> Authenticated NTP packets: The number of received NTP requests that were authenticated (with a symmetric key or NTS)

---

<div class="post-metadata">

**Author:** ![Badeand](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@Badeand](https://community.ntppool.org/u/Badeand)\
**Post date:** [January 6, 2024, 3:02pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196/2 "2024-01-06T15:02:12Z")

</div>

You have a valid certificate?

---

<div class="post-metadata">

**Author:** ![mibere](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mibere](https://community.ntppool.org/u/mibere)\
**Post date:** [January 6, 2024, 3:29pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196/3 "2024-01-06T15:29:17Z")

</div>

I hope so 😉

A client (also chrony 4.5) is configured with

```auto
server myserver nts iburst

```

can connect to the server (`Reach` is 377), `chronyc authdata` on the client shows

```auto
Name/IP address Mode KeyID Type KLen Last Atmp NAK Cook CLen
=========================================================================
myserver NTS 1 30 128 49h 0 0 8 64

```

and `chronyc ntpdata` on the client

```auto
NTP tests : 111 111 1111
Authenticated : Yes

```

Both, client and server, have no errors in chrony log.

---

<div class="post-metadata">

**Author:** ![mlichvar](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mlichvar](https://community.ntppool.org/u/mlichvar)\
**Post date:** [January 6, 2024, 4:07pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196/4 "2024-01-06T16:07:48Z")

</div>

It’s a bug. It counts requests that trigger a KoD response (NTS NAKs) instead of those that pass the authentication check.

---

<div class="post-metadata">

**Author:** ![mibere](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mibere](https://community.ntppool.org/u/mibere)\
**Post date:** [January 6, 2024, 4:29pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196/5 "2024-01-06T16:29:33Z")

</div>

Thanks for the info, Miroslav. Then we hope there will be a fix.

---

<div class="post-metadata">

**Author:** ![mibere](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mibere](https://community.ntppool.org/u/mibere)\
**Post date:** [January 9, 2024, 1:29pm UTC](https://community.ntppool.org/t/chrony-nts-and-authenticated-ntp-packets/3196/6 "2024-01-09T13:29:46Z")

</div>

I guess [thats’ the fix](https://gitlab.com/chrony/chrony/-/commit/e11b518a1ffa704986fb1f1835c425844ba248ef).
