25 November 2026

Cisco ASA remote-access VPN with phone approval over RADIUS

Add a phone approval to Cisco ASA AnyConnect VPN logins with the Notakey Authentication Proxy: ASA commands, timeouts, signed replies, lab results.

This guide puts a phone approval in front of the remote-access VPN of a Cisco ASA. The ASA sends its logins over RADIUS to the Notakey Authentication Proxy. The proxy checks the password with your RADIUS server, asks the user on the phone, and answers the ASA only when both say yes.

We ran everything below on an ASAv 9.24(1) in our lab, with version 2.0.0 of the proxy. The VPN client was openconnect, an open-source client that speaks the AnyConnect protocol. We did not test Cisco Secure Client itself, IKEv2 remote access or Firepower Threat Defense (FTD). The ASA settings should be the same for other clients, but we only saw the results below with openconnect.

The general setup of the proxy is in VPN 2FA with RADIUS, and the settings that make it safe are in Setting up the Authentication Proxy securely. This post covers what is specific to the ASA.

What the user sees

The user starts the VPN client and types the user name and password as before. The phone shows a request with the user name, the gateway and the address of the VPN client: the ASA sends that address in the Calling-Station-Id attribute, so the request says where the login comes from. In our lab that line read “From: 10.57.0.10”, the address of the test client.

After Approve the tunnel comes up. In our lab it did with approvals after 30, 30 and 56 seconds, and each login made exactly one request on the phone. After Deny the client reports that the login failed and asks for the password again. If the user dials in again within 30 seconds of a denial, the proxy rejects the login at once and sends no new request to the phone. After 30 seconds a new login makes a new request.

Step 1 — Add the ASA to the proxy

The ASA is one gateway in the proxy’s clients list, with a secret of its own. Use the address from which the ASA’s RADIUS packets reach the proxy; behind network address translation that is the translated address.

On the appliance:

ntk cfg setc :ap.clients '[
  { "name": "asa", "address": "192.0.2.1", "secret": "<secret of the ASA>" }
]' --json-input

ntk ap validate
ntk ap restart

If your RADIUS server gives VPN users a downloadable access list, add "ciscoAclDownload": true to the ASA’s entry. Right after the login the ASA asks the RADIUS server for the list in a request of its own, which nobody can approve on a phone. With that setting the proxy passes such signed requests to the RADIUS server. Without it, in our lab, the user approved on the phone, the proxy refused the ASA’s request for the list, and the client showed a login error. With the setting on, the download passed in our lab; we saw that with a cut-through proxy login on the ASA, not with a VPN login.

Step 2 — Point the ASA at the proxy

On the ASA, a RADIUS server group with the proxy as its host:

aaa-server NTK protocol radius
aaa-server NTK (outside) host <proxy address>
 key <secret of the ASA>
 timeout 75
 message-authenticator-required

Use the interface from which the ASA reaches the proxy in place of outside. Then let the remote-access tunnel group authenticate against that group:

tunnel-group <your tunnel group> general-attributes
 authentication-server-group NTK

That is all the VPN needs. The rest of your AnyConnect configuration (address pool, group policy, webvpn) stays as it is.

Why timeout 75

The ASA’s default RADIUS timeout is 10 seconds. While it waits, it repeats the request every 10 seconds with the same identifier. The proxy recognises the repeats and asks the phone only once: in our lab the proxy ignored 22 repeats over several logins, and each login made one request on the phone.

What matters is how the wait ends. The proxy waits for the user for logins.timeoutSeconds (on the appliance vpn_message_ttl; we used 60). If the ASA’s timeout is the same, the two race. In our lab, with both at 60, the ASA once got the proxy’s reject and once declared the server dead (“No active server found”) instead. A dead server is worse than a rejected login, as shown below. With timeout 75 against 60 seconds at the proxy, every unanswered login ended as a clean reject.

So: set the ASA’s timeout higher than the time the user has at the proxy.

Why message-authenticator-required

With this setting the ASA drops a RADIUS reply that is not signed with the Message-Authenticator attribute. The proxy signs every reply. In our lab the ASA took the proxy’s signed accepts and rejects with the setting on, and its counters showed no bad authenticators. The ASA’s own requests carried the signature too, so the proxy can keep requiring it.

Step 3 — Try it

Log in with the VPN client. On a test machine with openconnect:

sudo openconnect --protocol=anyconnect --authgroup=<group alias> --user=<user> <ASA address>

On the ASA, show aaa-server NTK counts the accepts, rejects and timeouts. The timeouts should stay at zero: each one is a login where the ASA gave up before the proxy answered.

When the proxy is not there

When the proxy does not answer, the ASA marks the server as failed. In our lab it did so at once when the proxy was stopped, and with the default settings (reactivation-mode depletion deadtime 10) the server stayed failed for 10 minutes, even after the proxy was back. During that time the group has no working server for VPN logins. To bring the server back sooner:

aaa-server NTK active host <proxy address>

Better is not to depend on one proxy: give the server group two proxies as hosts, on two machines or two nodes of an appliance cluster, so that the ASA can turn to the second when the first is down. Keep the timeout of each host higher than the proxy’s waiting time, as above, so that the ASA does not turn to the second proxy while the user is still deciding at the first. We did not test two proxies behind one ASA.

Do not add your RADIUS server itself as a host of this group. The ASA would turn to it while the proxy waits for the user, and the login would pass with the password alone. For the same reason, do not give the VPN tunnel group LOCAL as a fallback (authentication-server-group NTK LOCAL): while the proxy is marked as failed, local accounts would then get VPN access without the phone. We saw the ASA fall back to LOCAL that way for SSH logins.

Administrator logins: keep them local

The ASA can also authenticate SSH logins of administrators against RADIUS (aaa authentication ssh console NTK LOCAL). With the proxy in between, we do not recommend it on ASA 9.24:

  • The ASA’s SSH server gave up after about 7 seconds while the request was still waiting on the phone. An approval after 3.2 seconds got in. No one can count on approving that fast.
  • While the proxy answers, the LOCAL fallback is not used: a local account is rejected by the proxy like any unknown user.

Keep administrator access on local accounts, or on your existing management authentication, and protect it by limiting where it can come from (ssh <network> <mask> <interface>). If you do use RADIUS for administrators, create the local fallback account in advance and log in with it once: in our lab a local user created from the command line had to set a new password at its first SSH login, which is not the moment you want to find out.

Summary of the ASA settings

Setting Value Why
timeout of the proxy host higher than the proxy’s waiting time, e.g. 75 the ASA must wait for the user and must not declare the proxy dead
message-authenticator-required on the ASA accepts only signed replies
ciscoAclDownload at the proxy true if downloadable ACLs are used the ASA’s ACL request cannot be approved on a phone
Second host in the group a second proxy, never the RADIUS server availability without a way around the phone
Administrator SSH local accounts the ASA’s SSH login does not wait for a person

← All posts

See your first passwordless login this week

A 30-minute call with an engineer, not a sales deck. We’ll map your VPN, SSO or Windows setup to a working pilot.