Is Your UniFi Gateway Post-Quantum Ready? Three Checks You Can Run in Five Minutes

Chris Sherwood 6 min read

Doing this for a business? Find out what needs fixing with a full review of your network and a written report. Network & Security Checkup →

Tested December 4, 2026 on a UCG-Fiber and a UCG-Max, both on UniFi OS 6.0.19.

You’ve probably been hearing a lot about post-quantum encryption lately. Here’s what that means for your UniFi gateway.

Some quick background first. When two devices set up a secure connection, they start by agreeing on a key, and the math behind that step is what a future quantum computer could break. Post-quantum encryption replaces that math. It’s in the news because on December 2 the NSA told the people who run national security systems to speed up their move to post-quantum encryption.

That advisory wasn’t written for a home office or a 20-person business. It did make me curious about my own gear, so I ran three UniFi post-quantum checks on the two gateways I use every day, one at home and one at the studio. They passed everything except one.

Below are the checks, the exact commands, and what I found.

What you need

  • A UniFi gateway with SSH turned on, and its SSH password
  • A Windows PC with PowerShell (Mac and Linux commands are included too)
  • About five minutes

To turn SSH on in UniFi, go to Settings > Management, scroll down to SSH, and check the box. UniFi asks you to agree to some terms and then set a strong SSH password. Once that’s done, you can log in to your UniFi gateway over SSH with the username root and that password.

Check 1: Does SSH offer a post-quantum key exchange?

This asks your gateway which encryption handshakes it supports for SSH. It doesn’t log in, so it won’t ask for a password.

Open PowerShell on your PC and paste the line below. Before you press Enter, change the IP address shown in orange to your own UniFi gateway’s IP address:

ssh -vv -o BatchMode=yes root@192.168.1.1 2>&1 | Select-String "KEX algorithms"

On a Mac or Linux machine, open Terminal and use this version instead, again with your own gateway’s IP address:

ssh -vv -o BatchMode=yes root@192.168.1.1 2>&1 | grep "KEX algorithms"

You get two lines back, and each one starts with debug2: KEX algorithms:. The first line is your computer. The second line is your UniFi gateway, and that’s the one to read. Some newer versions of SSH print a third line, which you can ignore.

  • Pass: the second line contains mlkem768x25519-sha256 or sntrup761x25519-sha512.
  • Not yet: neither one is there, and the list starts with curve25519.

Here’s the second line from my UCG-Fiber:

debug2: KEX algorithms: mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256,...

Now look at the first line. On my Windows 11 PC it has neither post-quantum option. The SSH client built into Windows on my machine is OpenSSH 9.5, and it can’t do a post-quantum handshake at all. So when I connect, the two sides settle on the older method, even though the gateway offers the newer one.

PuTTY 0.83 did negotiate a post-quantum handshake when I tested it against a public server.

Check 2: Is the web interface using post-quantum encryption?

For this check you need to log in to your UniFi gateway over SSH. In PowerShell on Windows, or in Terminal on a Mac or Linux machine, type the line below, changing the IP address shown in orange to your own UniFi gateway’s IP address. Press Enter, and type your UniFi SSH password when it asks:

ssh root@192.168.1.1

Once you’re logged in to the UniFi gateway, paste this command and press Enter. It is the same on Windows, Mac and Linux, because it runs on the gateway:

openssl s_client -connect 127.0.0.1:443 -tls1_3 -brief </dev/null

It connects to the gateway’s own web interface and reports how the connection was set up. Find the line that starts with Negotiated TLS1.3 group.

  • Pass: X25519MLKEM768
  • Not yet: X25519 on its own, or anything else

That’s a hybrid, the older math and the newer math used together, and it’s the same thing current browsers already do with most large websites.

You’ll also see that the certificate is signed with RSA. That’s normal. Post-quantum certificates aren’t in general use anywhere yet.

Check 3: Does the SD-WAN tunnel have a preshared key?

The first two checks cover how you manage the gateway, which most of us do from inside our own network. The traffic that leaves the building is the VPN tunnel, and that’s the traffic the “record it now, decrypt it later” concern is about.

My two sites are connected with UniFi SD-WAN, which used to be called Site Magic. It runs on WireGuard, the same VPN protocol I covered in my PiVPN and WireGuard setup guide. While you’re still logged in to the gateway over SSH from Check 2, run:

wg show

You’ll see something like this for each tunnel:

interface: wgsts1000
  public key: (your key)
  private key: (hidden)
  listening port: 20000

peer: (the other site's key)
  endpoint: (the other site's IP):20000
  allowed ips: ...
  latest handshake: 10 seconds ago

WireGuard has an optional setting called a preshared key, a second secret that both ends know. It’s WireGuard’s built-in hedge against a future attack on its key exchange.

  • Hedged: there’s a line under the peer that says preshared key: (hidden).
  • Not yet: no such line.

There’s also nowhere to add one. The SD-WAN page in Site Manager lets you choose sites and networks, and it builds the tunnel for you. I didn’t find an encryption setting on that page.

What’s odd is that the option exists elsewhere on the same gateway. If you create a WireGuard VPN client in manual mode, there’s a Pre-Shared Key checkbox on the form.

My results

CheckUCG-FiberUCG-Max
SSH key exchangePassPass
Web interface encryptionPassPass
SD-WAN tunnel preshared keyNoneNone

Both were on UniFi OS 6.0.19. I haven’t tested UniFi OS 5, and I’ve seen forum reports of older firmware failing the SSH check, so your results may differ if you haven’t updated.

What I’d do about it

Not much, and nothing today.

Get your gateways onto UniFi OS 6 if they aren’t already. The passes above appear to come from the newer Linux base that UniFi OS 6 is built on. I couldn’t find an announcement from Ubiquiti about any of it.

I’m not replacing SD-WAN over this, and I wouldn’t tell a client to. Most of what crosses that tunnel is encrypted a second time by the application using it. What’s exposed is anything that travels in the clear inside the tunnel, like older file shares or internal web pages without HTTPS.

The SD-WAN gap is Ubiquiti’s to close. Since the preshared key option already exists for the WireGuard client, I’d expect that to be a software update and not a reason to buy new hardware. That’s my read, but Ubiquiti hasn’t made any announcements about it yet.

If you run these checks on a different model or firmware, I’d like to hear what you get.

If you’d like someone to go through your whole business network, VPNs and firmware included, that’s what our Network & Security Checkup is for.

Frequently asked questions

Is UniFi post-quantum ready?

Partly. On UniFi OS 6.0.19, a UCG-Fiber and a UCG-Max both offered post-quantum key exchange for SSH and for the gateway's web interface. The UniFi SD-WAN tunnel between them had no WireGuard preshared key, and I didn't find a setting to add one.

How do I check whether my UniFi gateway supports post-quantum SSH?

Turn on SSH on the gateway, then run ssh -vv -o BatchMode=yes root@GATEWAY-IP and look at the second "KEX algorithms" line. If it lists mlkem768x25519-sha256 or sntrup761x25519-sha512, the gateway offers a post-quantum key exchange.

Does UniFi SD-WAN (Site Magic) use post-quantum encryption?

Not in my test. UniFi SD-WAN runs on WireGuard, and on UniFi OS 6.0.19 the tunnel between my two gateways had no preshared key, which is WireGuard's hedge against a future attack on its key exchange. The SD-WAN page in Site Manager had no encryption setting.

Do I need to replace my UniFi gateway to get post-quantum encryption?

I don't think so. The two gateways I tested already carry the newer encryption for SSH and the web interface on UniFi OS 6, and the WireGuard VPN client on the same gateway has a preshared key option. Ubiquiti hasn't said what it plans for SD-WAN.

Does the SSH client in Windows 11 support post-quantum key exchange?

On my PC it doesn't. The built-in client is OpenSSH 9.5 and its list has no post-quantum key exchange, so the connection falls back to the older method even when the gateway offers the newer one. PuTTY 0.83 negotiated a post-quantum key exchange when I tested it.

How we can help

Network & Security Checkup

Find out what needs fixing with a full review of your network and a written report.

How we can help

Managed Firewall

Keep your firewall updated, monitored and backed up for a flat monthly price, from $99 a month.

Chris Sherwood

Chris Sherwood

Founder, Crosstalk Solutions

Chris founded Crosstalk Solutions in 2015. Before that, he worked as an IT administrator, a sales engineer and a director at a VoIP company. He has taught networking and VoIP on the Crosstalk Solutions YouTube channel for more than a decade.