The appliance update now offers version 2 of the Notakey Authentication
Proxy, the service that adds a phone approval to the RADIUS logins of your
VPN gateways. ntk sys update replaces version 1 with it. Nothing has to
change at your gateways: the settings are carried over, and where version 2
is stricter by default, the proxy keeps the behaviour of version 1.
It also starts with warnings. Each one names a place where version 2 can be stricter than version 1 was. The sections below explain each warning and how to act on it.
We ran the steps below on a lab appliance that had version 1.2.0 in service. The outputs come from that run. They are shortened, and host names are replaced.
What is different in version 2
- Gateways are listed by address. A packet from an address that is not on the list is dropped unread.
- Packets are signed. The proxy checks the Message-Authenticator attribute in requests and puts it into every reply. This protects against forged replies, the attack known as Blast-RADIUS (CVE-2024-3596).
- One login gives one request on the phone, also when the gateway repeats its request while the user is still deciding.
- The password is checked first. The user is asked on the phone only after the RADIUS server has accepted the password.
- The proxy has API credentials of its own for the authentication server.
- The log is one JSON object per line, with one line for every login that ends.
The full list is in the proxy manual.
Before you update
- The authentication server has to be 5.2.2 or later. While the server
on the appliance is older,
ntk sys updateleaves the proxy on version 1. - If the proxy uses an authentication server on another appliance
(
ap.api_provideris set), create an API client for the proxy on that server withntk as auth add, with the scopesurn:notakey:authandurn:notakey:user. Then setap.api_client_idandap.api_client_secreton the appliance of the proxy. Without them version 1 stays in service, and the update says that the proxy was not restarted. When the server runs on the same appliance, the appliance creates the client itself. - Nothing has to be prepared at the gateways.
Run the update
ntk sys update
Version 2 of the proxy needs management tool 5.0.91 or later. If yours is older, the first run updates only the management tool, and you run the command again. The run that changes the proxy looks like this:
==> Configuration update
=> Validating Notakey Authentication RADIUS Proxy configuration
Checking settings...
WARNING: requests are taken from ANY address that knows the secret, as proxy 1.x did. List the gateways in 'ap.clients' to take requests only from them
proxy 1.x took requests from any address: kept so, 'ap.allow_any_address' is set
=> Graceful shutdown of existing instance
=> Starting new Authentication proxy instance
gateways: any-address (0.0.0.0/0)
image: appliance.local/naa/auth-proxy:2.0.0
started 61e345827511
update complete
A login that waits for the phone at the moment of the switch has to be started again: its request is withdrawn from the phone.
In a cluster each node is updated by itself. We updated our lab cluster of three nodes one node at a time, and nodes with version 1 and nodes with version 2 answered requests side by side.
Read the warnings
ntk ap validate checks the settings and the configuration file written
from them. Right after the update it says this:
Checking settings...
WARNING: requests are taken from ANY address that knows the secret, as proxy 1.x did. List the gateways in 'ap.clients' to take requests only from them
Checking the configuration file with the proxy...
warning: server "radius-1": replies without Message-Authenticator are accepted. Update the server if it can sign its replies.
warning: client "any-address" may send requests without Message-Authenticator. Turn it on at the gateway if it can.
warning: client "any-address" accepts packets from any address. List the gateway addresses instead.
valid, 1 client(s), 1 server(s), listen 0.0.0.0:1812, Notakey API https://auth.example.com/api/
The warnings come down to three things:
- Requests are taken from any address that knows the shared secret. You close this by listing your gateways.
- Gateways may send requests that are not signed. Listing the gateways by address changes this as well.
- The RADIUS server behind the proxy may send replies that are not signed. This is a setting of each server; see “The RADIUS server behind the proxy” below.
You may also see warnings about ap.proxy_send_timeout and about entries of
ap.custom_params other than REQUIRE_MESSAGE_AUTH. Version 2 does not use
these settings, and the warnings tell you so. Where version 2 has a setting
of its own for the same thing, it goes into ap.config.
List your gateways
Listing the gateways by address has a side effect that you should plan for: Message-Authenticator is then required from them. A gateway that does not send it gets no answer at all. To avoid cutting off a gateway, do it in two steps.
Step 1: restrict the addresses
ntk cfg setc :ap.custom_params "REQUIRE_MESSAGE_AUTH=false"
ntk cfg setc :ap.clients "192.0.2.10, 198.51.100.0/24"
ntk ap validate
ntk ap restart
- An entry of
ap.clientsis an IP address or a network. A network is written with its host bits zero. - A gateway behind a network address translation (NAT) is known to the proxy by the translated address. That is the address to list.
- If
ap.custom_paramsalready has entries, keep them and add this one, separated by a comma, here and in step 2. The setting can be stored for the node or for the cluster, and the cluster value wins:ntk cfg getc ap.custom_paramsshows the node value andntk cfg getc :ap.custom_paramsthe cluster value. - If it already has
REQUIRE_MESSAGE_AUTH=true, leave that as it is and set onlyap.clients. Message-Authenticator is then required already, and every gateway whose logins work sends it. - The leading colon stores a setting for all nodes of a cluster.
ntk ap restart checks the settings before it stops the running proxy. When
something is wrong, it stops with an error and the running proxy stays in
service:
Checking settings...
❌ 'ap.clients' has what is not an address or a network (a network has its host bits zero, as 192.0.2.0/24): 198.51.100.7/24
After the restart, requests are taken only from the listed addresses, signed or not. Try a login through each gateway.
Step 2: require signed requests
Check that each gateway sends Message-Authenticator. This is what we saw with the gateways in our lab, each with one version. Other gateways and other versions may differ.
| Gateway | Message-Authenticator in requests |
|---|---|
| Cisco ASA 9.24 | Always sent |
| MikroTik RouterOS 7.25 | Always sent |
| OPNsense 26.7 | Always sent |
| Windows RRAS (Server 2022) | Not sent by default; sent with signature=enabled for the RADIUS server |
Then require it:
ntk cfg setc :ap.custom_params "REQUIRE_MESSAGE_AUTH=true"
ntk ap restart
Look into the log of the proxy for gateways that do not sign:
docker logs --since 10m auth-proxy 2>&1 | grep message_authenticator_missing
A line like this one names the gateway. It is written once a minute for each gateway:
{"ts":"2026-11-25T14:00:49.117Z","level":"warn","event":"message_authenticator_missing","client":"192.0.2.10","hint":"Turn on Message-Authenticator on the gateway, or set requireMessageAuthenticator to false for this client."}
If a gateway is named there, turn Message-Authenticator on at that gateway,
or set REQUIRE_MESSAGE_AUTH=false again until you can. When no such line
appears and logins work, you are done. ntk ap validate then shows neither
of the two warnings about the gateways.
Give each gateway its own secret
With one secret shared by all gateways, a secret that leaks from one of them
is the secret of all. The full form of ap.clients gives each gateway a name
and a secret of its own:
ntk cfg setc :ap.clients '[{"name":"asa-1","address":"192.0.2.10","secret":"<secret of the gateway>"},{"name":"branch-routers","address":"198.51.100.0/24","secret":"<secret of the gateway>"}]' --json-input
ntk ap validate
ntk ap restart
- Change the secret at the gateway at the same time. Both forms can be in one list, so you can move one gateway at a time.
- Message-Authenticator is required from a gateway unless its entry has
"requireMessageAuthenticator": false. - The name appears in the log, and the text on the phone can show it.
- When every gateway is written in the full form,
ap.vpn_secret_inandREQUIRE_MESSAGE_AUTHare no longer used, andntk ap validatesays so.
ntk ap config shows the configuration the proxy gets, without the secrets.
An excerpt, with the gateways still in the short form:
"clients": [
{
"name": "192.0.2.10",
"address": "192.0.2.10",
"secret": "(not shown)",
"requireMessageAuthenticator": true
},
If a gateway gets no answer
- Its address is not on the list. The counter
dropped_unknown_sourcein thecountersline of the log grows. - It does not send Message-Authenticator, and the proxy requires it. The
log has
message_authenticator_missingwith the name of the gateway. - Its Message-Authenticator does not match, usually because the secrets
differ. The log has
message_authenticator_wrong. - The RADIUS server does not answer the proxy. The counter
password_check_no_answergrows.
The RADIUS server behind the proxy
The servers of ap.vpn_radius_address are carried over as they were: their
replies do not have to be signed, and a request is sent to a server once.
To require signed replies, or to send a request more than once, write the
servers into ap.servers. The
appliance manual
has the settings, and the
proxy manual
explains what is checked in each direction.
Going back
The image of version 1 stays on the appliance. Set it and restart the proxy:
ntk cfg setc ap.image appliance.local/naa/auth-proxy:1.2.0
ntk ap restart
Version 1 starts with the settings it had. In our lab it answered a login
again after these two commands. In a cluster, run them on each node.
docker images | grep auth-proxy shows the exact name of the image if yours
has another version. The next ntk sys update offers version 2 again, so
tell us what made you go back.
What we did not test
- A failover between cluster nodes with a shared virtual address while a node is being updated.
- A phone approval through the cluster while it was half updated: the requests we sent then ended in rejects.
- Gateways other than the four in the table above.
The proxy on Windows is installed from a zip package and is not changed by the appliance update. The proxy manual has the steps for Windows and for Docker.