How To

SMB over QUIC on Windows Server 2025 with Client Access Control

Turn on SMB over QUIC and your file server becomes a TLS endpoint on UDP 443 that answers anyone on the internet. By default it’ll hand an SMB session to any device that trusts its certificate and has a valid password. That is a big improvement over exposing TCP 445, but it still means a stolen laptop or a phished password reaches your shares from anywhere. Client access control closes that gap: the server checks a device certificate before SMB authentication even starts.

Original content from computingforgeeks.com - post 195319

We’ll build the whole chain on Windows Server 2025 with PowerShell only, since Microsoft says the Windows Admin Center method is not currently supported on this release. Every cmdlet and parameter below was checked in November 2026 against Microsoft’s current documentation for Windows Server 2025 and Windows 11 24H2, with TCP 445 kept closed to the outside throughout.

Where SMB over QUIC sits in the network

The design has one rule that everything else serves: the only thing crossing the perimeter is UDP 443. Remote clients reach the file server through a QUIC tunnel protected by TLS 1.3, and SMB 3.1.1 runs inside that tunnel. LAN clients keep using plain SMB over TCP 445, which never leaves the internal network.

SMB over QUIC architecture diagram: laptop01 on the internet reaches fs01 over UDP 443 only, LAN clients use SMB on TCP 445, fs01 trusts DC01 for Kerberos and AD CS

Microsoft is blunt about the firewall side: the SMB over QUIC guide says not to open TCP 445 inbound to the server at all. If a remote user’s client silently falls back to TCP, the connection should fail rather than leak SMB onto the internet. That failure is your signal that the client is not using QUIC, so we treat it as a feature and investigate the client, never the firewall rule.

  • Exposed: UDP 443 on fs01, carrying QUIC with TLS 1.3.
  • Never exposed: TCP 445, TCP 139, RPC and the domain controller.
  • Checked before SMB auth: the client’s device certificate, once client access control is on.

The example names used throughout are fs01.corp.example.com for the file server, DC01 for the domain controller and issuing CA, and laptop01 for the remote Windows 11 client.

Requirements on both ends

SMB over QUIC ships in every edition of Windows Server 2025, Standard and Datacenter included. On Windows Server 2022 it was locked to Datacenter: Azure Edition, which is why a lot of older guides tell you to buy Azure. The client side is narrower than people expect.

PieceRequirementWhy it matters
File serverWindows Server 2025, any editionNeeds the QUIC listener and the CAC cmdlets
QUIC clientWindows 11Windows 10 has no SMB over QUIC client
CAC clientWindows 11 24H2 or Windows Server 2025Earlier Windows 11 builds need a preview package and policy switch
Server certificateServer Authentication EKU, SAN for every FQDNThe QUIC TLS handshake rejects anything else
Client certificateClient Authentication EKU, in LocalMachine\MyThe store Microsoft’s examples map, shared by every user on the device
FirewallUDP 443 inbound to fs01The only port the design opens

Linux clients can join too: woshub’s walkthrough notes that Samba 4.23 and later can mount over QUIC. We stay on Windows here because client access control is a Windows feature.

A server certificate the QUIC listener accepts

The certificate is the part that breaks most deployments, so get it exactly right. Microsoft’s requirements for the server certificate are strict, and the QUIC handshake will not tell you politely which one you missed.

  • Key usage includes digital signature.
  • Enhanced key usage is Server Authentication (1.3.6.1.5.5.7.3.1).
  • Signature algorithm SHA256RSA or stronger, with an RSA 2048 or ECDSA P256 key or better.
  • A Subject Alternative Name DNS entry for every name clients type, and a Subject common name.
  • The private key is present in the store.

Leave IP addresses out of the SAN. Microsoft warns that a client connecting by IP is pushed to NTLM, which throws away Kerberos inside the tunnel. In a domain, issue the certificate from your own CA: duplicate the Web Server template, keep Server Authentication as the only application policy, and enroll fs01. Our two-tier AD CS PKI guide walks through standing up that CA and publishing templates.

For a lab or a workgroup server, a self-signed certificate does the job as long as you set the EKU explicitly. Start an elevated PowerShell session on fs01 and set the name once, because it is reused in almost every command that follows:

$fqdn = 'fs01.corp.example.com'

Now create the certificate in the computer store with the Server Authentication EKU written in as a text extension:

$serverCert = New-SelfSignedCertificate -Type Custom -Subject "CN=$fqdn" -DnsName $fqdn -TextExtension @('2.5.29.37={text}1.3.6.1.5.5.7.3.1') -KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -HashAlgorithm SHA256 -NotAfter (Get-Date).AddYears(2) -CertStoreLocation Cert:\LocalMachine\My

Without -NotAfter the certificate expires after one year, and expiry is the classic Monday morning outage for QUIC. Before mapping it, read back the two properties the listener cares about:

$serverCert | Format-List Subject, DnsNameList, EnhancedKeyUsageList, NotAfter, Thumbprint

EnhancedKeyUsageList must show Server Authentication and nothing broader. An empty list means the certificate is valid for every purpose, which Windows accepts but which you should not hand to an internet listener. DnsNameList must contain the exact FQDN remote users will type. Export the public half so clients can trust it later:

Export-Certificate -Cert $serverCert -FilePath C:\Temp\fs01-quic.cer

A domain CA certificate skips that export, because domain clients already trust the issuing CA through Group Policy. A self-signed certificate has no such path, so every client needs the file copied and imported by hand. That manual step scales badly past a handful of laptops, which is the practical reason to move to AD CS before a pilot becomes production.

Mapping the certificate and turning QUIC on

SMB does not pick a certificate by itself. You bind one to a name with a certificate mapping, and the mapping name is what client access control attaches to later. Use the FQDN as the mapping name so there is never any doubt which name it covers:

New-SmbServerCertificateMapping -Name $fqdn -Thumbprint $serverCert.Thumbprint -StoreName My

Then make sure the server side of SMB over QUIC is enabled. Setting it explicitly costs nothing and documents intent in your build script:

Set-SmbServerConfiguration -EnableSMBQUIC $true -Force

Confirm the binding. The table should show your FQDN, the same thumbprint as $serverCert, and RequireClientAuthentication still False at this stage:

Get-SmbServerCertificateMapping | Format-Table Name, Thumbprint, Type, RequireClientAuthentication

If you do not already have a share to test with, create one and grant a domain group access rather than Everyone:

New-Item -ItemType Directory -Path D:\Shares\Finance
New-SmbShare -Name Finance -Path D:\Shares\Finance -FullAccess 'CORP\Finance-RW'

Share permissions still apply inside the tunnel. QUIC changes how a client reaches the server, not who’s allowed to read what, so an over-broad share ACL is exposed to every remote user the moment QUIC goes live. Review the NTFS and share permissions before you open UDP 443, because tightening them afterwards means touching users who already depend on the access.

Firewall rules that keep TCP 445 off the internet

Windows ships a dedicated inbound rule for the QUIC listener. According to woshub’s testing it’s enabled for the Domain profile only, and blocked on the Private and Public profiles. Check what yours looks like before you change anything:

Get-NetFirewallRule -DisplayName 'File and Printer Sharing (SMB-QUIC-In)' | Format-Table DisplayName, Profile, Enabled, Action

A domain-joined server sitting on its domain network needs nothing more. A workgroup server, or one whose NIC lands on the Public profile, needs the rule enabled for that profile. Enabling it by display name turns on every copy of the rule, so filter to the profile you need rather than writing a broad allow rule of your own:

Get-NetFirewallRule -DisplayName 'File and Printer Sharing (SMB-QUIC-In)' | Where-Object Profile -match 'Public' | Enable-NetFirewallRule

Now confirm something is actually listening on UDP 443. woshub’s walkthrough checks it with netstat:

netstat -a | Select-String 443

On the perimeter, forward or allow UDP 443 to fs01 and nothing else. If an IIS site or a reverse proxy already owns 443 on the same public IP, give the file server its own address instead of trying to share. Our Windows Server firewall port guide covers the host side if you manage rules by hand.

  • Edge allows UDP 443 to fs01 only.
  • Edge drops TCP 445 and TCP 139 in both directions.
  • No port forward to the domain controller.

Test the TCP side from outside after the change. A port scanner that reports 445 open on your public address means the design is broken, whatever QUIC is doing. Run the scan from a network you do not control, so a hairpin NAT or an internal route cannot hide an open port that attackers can see.

Client trust and the first QUIC mapping

On laptop01, three things must be true before a QUIC connection can work: the client trusts the server certificate’s issuer, the FQDN resolves to the public address, and the SMB client has QUIC enabled. With a self-signed server certificate, copy fs01-quic.cer over and import it into the computer’s trusted root store from an elevated prompt:

Import-Certificate -FilePath C:\Temp\fs01-quic.cer -CertStoreLocation Cert:\LocalMachine\Root

Point the FQDN at the public address through public DNS, or for a quick test through the hosts file. Then check that the client side of QUIC has not been switched off by policy:

Get-SmbClientConfiguration | Select-Object EnableSMBQUIC

It should read True. Windows clients try TCP first by default, so a remote client blocked on 445 waits on that attempt before falling back. Forcing QUIC on the mapping skips the TCP attempt and gives you an unambiguous test:

New-SmbMapping -LocalPath Z: -RemotePath \\fs01.corp.example.com\Finance -TransportType QUIC

The classic equivalent is net use Z: \\fs01.corp.example.com\Finance /TRANSPORT:QUIC, which users already know from login scripts. To prove the session really rides QUIC, query the mapping and the multichannel view with the property names WorkingHardInIT’s lab repository uses:

Get-SmbMapping | Select-Object LocalPath, RemotePath, Status, TransportType, QuicPort, TcpPort
Get-SmbMultichannelConnection | Select-Object ServerName, QuicConnectionCount, TcpConnectionCount, Failed

On builds that expose these properties, TransportType reports QUIC with QuicPort 443 on a working mapping, and QuicConnectionCount is above zero while TcpConnectionCount stays at zero. If TcpConnectionCount climbs instead, the client found a path to 445, which usually means it is on the LAN or the edge is leaking SMB. Get-SmbConnection adds the negotiated dialect, which should be 3.1.1.

The client also writes an audit record. On Windows 11 24H2, the Microsoft-Windows-SMBClient/Connectivity log logs event 30832 for every new connection, and woshub’s capture of it reads “The initial connection to the share was established”, followed by “Transport type: Quic” and “Signing used: true”. That event is the easiest proof to hand an auditor.

Kerberos inside the tunnel needs KDC Proxy

Off the corporate network, laptop01 cannot reach a domain controller, so it authenticates with NTLMv2 inside the TLS tunnel. That is encrypted, but it is still NTLM. Microsoft recommends deploying KDC Proxy so remote clients get Kerberos tickets over HTTPS, and our NTLM to Kerberos guide for Windows Server 2025 explains why that matters as NTLM is phased out. Until you have it, enforce strong passwords and an account lockout policy, because the QUIC endpoint is a password prompt on the internet.

DFS namespaces point at internal names

Don’t hand remote QUIC users a DFS namespace path. Referrals return internal server names that do not resolve outside and are not in the server certificate’s SAN, so the connection fails on the second hop. Map the file server’s FQDN directly for remote users and keep the DFS namespace and replication setup for the LAN.

Client access control locks out every unmapped device

Everything so far lets any device with the right password in. Client access control (CAC) adds a second factor that belongs to the machine: the client presents a certificate during the TLS handshake, and the server only proceeds if that certificate, or its issuer, is on the allow list for the mapping name.

Read this before you run the next command. Setting RequireClientAuthentication applies at once to every client of that mapping name, including the remote users who connected fine a minute ago. Anyone without a mapped client certificate and a grant is refused. Have console or LAN access to fs01 ready, and know the way back:

Set-SmbServerCertificateMapping -Name fs01.corp.example.com -RequireClientAuthentication $false

That recovery line only touches QUIC. LAN clients on TCP 445 never go through CAC, so an over-tight allow list cannot lock you out of the server locally. Turn on CAC auditing first, because it is off by default and you will want the refusals logged from the first minute:

Set-SmbServerConfiguration -AuditClientCertificateAccess $true -Force

Now require client certificates on the mapping:

Set-SmbServerCertificateMapping -Name $fqdn -RequireClientAuthentication $true

Confirm SkipClientCertificateAccessCheck is False with Get-SmbServerCertificateMapping. Setting it to True makes the server validate only the certificate chain and ignore the allow list, which turns CAC into “any certificate from a trusted CA”. That is rarely what a security team means when it asks for device control.

A client certificate with the Client Authentication EKU

The client certificate has its own short list of rules. It must carry the Client Authentication EKU (1.3.6.1.5.5.7.3.2), chain to a CA the file server trusts, and sit in the client’s certificate store, where Microsoft’s examples use the computer store so the mapping covers every user. In a domain, the cleanest source is a duplicate of the Workstation Authentication template with a non-exportable key and autoenrollment, the approach WorkingHardInIT’s SMB over QUIC lab repository uses.

For a lab, laptop01 can make its own. Run this in an elevated session on the client:

$clientCert = New-SelfSignedCertificate -Type Custom -Subject 'CN=laptop01' -TextExtension @('2.5.29.37={text}1.3.6.1.5.5.7.3.2') -KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -HashAlgorithm SHA256 -CertStoreLocation Cert:\LocalMachine\My

A self-signed client certificate is its own issuer, so fs01 has to trust it as a root. Export the public half on laptop01:

Export-Certificate -Cert $clientCert -FilePath C:\Temp\laptop01-cac.cer

Copy the file to fs01 and import it into the trusted root store there:

Import-Certificate -FilePath C:\Temp\laptop01-cac.cer -CertStoreLocation Cert:\LocalMachine\Root

With an AD CS template you skip both steps, since fs01 already trusts the domain CA.

Two different hashes come out of this certificate and mixing them up is the most common CAC mistake. The server’s allow list wants the SHA256 hash, while the client mapping wants the ordinary SHA1 thumbprint:

$clientCert.GetCertHashString('SHA256')
$clientCert.Thumbprint

Copy the SHA256 string somewhere safe for the grant. Then tell the SMB client which certificate to present when it talks to fs01:

New-SmbClientCertificateMapping -Namespace fs01.corp.example.com -Thumbprint $clientCert.Thumbprint -StoreName My

Drop the old drive mapping, then map the share again with QUIC forced:

Remove-SmbMapping -LocalPath Z: -Force
New-SmbMapping -LocalPath Z: -RemotePath \\fs01.corp.example.com\Finance -TransportType QUIC

Microsoft’s CAC documentation says to expect access denied at this point, and that’s the result you want: it proves the server is enforcing the allow list and the client is presenting a certificate. The server audit events 3007 to 3009, covered below, record each access check so you can see which certificate the server evaluated.

Granting one device or a whole CA

Back on fs01, grant laptop01 by its SHA256 hash. The name is the certificate mapping name, so the grant applies to QUIC connections for fs01.corp.example.com only:

Grant-SmbClientAccessToServer -Name $fqdn -IdentifierType SHA256 -Identifier '<sha256-hash-from-laptop01>'

Per-device grants are precise and painful: every certificate renewal produces a new hash and a new grant. For a managed fleet, trust the issuing CA instead, using the issuer’s distinguished name exactly as it appears in the client certificate:

Grant-SmbClientAccessToServer -Name $fqdn -IdentifierType ISSUER -Identifier 'CN=Example-Issuing-CA01, DC=corp, DC=example, DC=com'

List the result, then map the share from laptop01 again. It should now connect over QUIC exactly as it did before CAC:

Get-SmbClientAccessToServer -Name $fqdn

Choose the entry type by the threat you’re defending against, not by convenience. The table compares them:

EntryStopsStill lets inRenewal cost
SHA256 of one certEvery device but that oneWhoever holds that laptop and a passwordNew grant per renewal
ISSUER of a CAPersonal devices, other CAsAny machine that CA ever issued toNone while the CA lives
Block on a SHA256One lost or stolen deviceEverything else the issuer grant allowsNone

The precedence rule makes the combination useful: a deny anywhere in the chain beats any allow. Grant the issuing CA, then block a stolen laptop’s certificate hash, and that one device is out while the rest of the fleet keeps working:

Block-SmbClientAccessToServer -Name $fqdn -IdentifierType SHA256 -Identifier '<sha256-of-stolen-laptop>'

Unblock-SmbClientAccessToServer reverses a block, and Revoke-SmbClientAccessToServer removes a grant. Revoking the certificate at the CA as well matters, since the block only protects this one file server.

Reading the CAC audit trail

With auditing on, the server writes to Microsoft-Windows-SMBServer/Audit, and the client logs its side to Microsoft-Windows-SMBClient/Connectivity. The first two lines come from Microsoft’s CAC page, the third from its main SMB over QUIC page:

  • Server event 3007, 3008 and 3009: client certificate access checks, including refusals with the certificate details.
  • Client event 30831: the client’s CAC audit record, the first place to look on laptop01 when a refusal needs explaining.
  • Client event 30832: a successful new connection, with the transport type.

Pull the most recent server records when a user reports access denied:

Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-SMBServer/Audit'; Id=3007,3008,3009} -MaxEvents 20 | Format-List TimeCreated, Id, Message

Forward these to your SIEM. Two patterns deserve an alert: a refusal for a certificate that was granted yesterday, which usually means a renewal changed the hash, and a burst of refusals from many different certificates against the same mapping looks a lot like someone probing your internet-facing file server.

Fixing SMB over QUIC certificate failures

Nearly every failure in this setup is a certificate problem dressed up as a network problem. Work through these in order before touching the firewall.

Access denied after the grant: client certificate missing the Client Authentication EKU

Microsoft’s client access control page requires the client certificate to be issued for Client Authentication (1.3.6.1.5.5.7.3.2) and to chain to a CA the server trusts. A certificate without that EKU does not meet the documented requirement, so a grant on its hash is not enough. Check the EKU on laptop01:

Get-ChildItem Cert:\LocalMachine\My -Eku '*Client Authentication*' | Format-List Subject, Thumbprint, EnhancedKeyUsageList, NotAfter

If the mapped certificate is not in that list, it can’t be used for CAC. Issue a new certificate with the right EKU, then do the three-step swap: Set-SmbClientCertificateMapping with the new thumbprint on the client (the namespace already has a mapping, so New- is the wrong verb here), Grant-SmbClientAccessToServer with the new SHA256 on the server, and Revoke-SmbClientAccessToServer for the old hash.

Event 30803: The QUIC connection encountered a bad certificate during TLS

This one comes from the client, and woshub’s troubleshooting ties it to a server certificate the client does not trust. A self-signed server certificate missing from laptop01’s trusted root store is the textbook case. Re-import fs01-quic.cer into LocalMachine\Root, or for a CA-issued certificate confirm the client has the root and intermediate in its stores.

The session drops right after the handshake

Microsoft’s SMB over QUIC server certificate requirements call for the Server Authentication EKU, so a certificate without it is the first suspect when the session closes straight after the handshake. Rerun the Format-List check from the certificate section on fs01. For deeper digging, turn on the client’s analytic log with wevtutil sl Microsoft-Windows-SMBClient/Analytic /e:true /q:true, reproduce the failure, and disable it again afterwards because it is noisy.

Everything broke after the server certificate renewed

A renewed certificate has a new thumbprint, and the mapping still points at the old one. Update it in place so the CAC settings and grants on that name stay intact:

Set-SmbServerCertificateMapping -Name $fqdn -Thumbprint '<new-thumbprint>' -StoreName My

Put the expiry date in your monitoring. Autoenrollment renews the certificate, but nothing updates the SMB mapping for you, so a scheduled task or a renewal check belongs in the same change. A small script that compares the mapped thumbprint with the newest valid Server Authentication certificate for the FQDN and alerts on a mismatch is enough, because a silent mismatch only shows up when every remote user calls the help desk at once.

SMB over QUIC security audit checklist

Run through this list after the first rollout and again every quarter. Each line covers a setting that drifts quietly once a deployment stops being new: renewals, new devices and firewall changes all touch it. Pair it with the Windows Server 2025 security baseline on the file server itself.

  1. An external scan of the public address shows UDP 443 open and TCP 445 closed.
  2. Get-SmbServerCertificateMapping shows RequireClientAuthentication True and the thumbprint of a certificate that isn’t near expiry.
  3. The server certificate has Server Authentication as its only EKU and no IP addresses in the SAN.
  4. SkipClientCertificateAccessCheck is False on every mapping.
  5. Get-SmbClientAccessToServer lists only issuers and devices you can name, with blocks for every lost device.
  6. AuditClientCertificateAccess is True and events 3007 to 3009 reach the SIEM.
  7. Remote users authenticate with Kerberos through KDC Proxy, or an account lockout policy is in force.
  8. Remote users map the server FQDN, not a DFS namespace path.

If any line fails, fix it before you add more users. A QUIC file server with CAC off and NTLM inside the tunnel is still safer than TCP 445 on the internet, but it is not the setup Microsoft designed client access control to deliver. The full parameter reference lives in Microsoft’s SMB over QUIC documentation and its client access control page.

Keep reading

Create a Bootable Windows 11 USB and Install Windows 11 Windows Create a Bootable Windows 11 USB and Install Windows 11 Set Up a Samba Share on Windows 11 and Access It from Linux Networking Set Up a Samba Share on Windows 11 and Access It from Linux Windows 11 Installation on KVM with Virt-Manager KVM Windows 11 Installation on KVM with Virt-Manager Install Grok Build on Windows 11 (Formerly Cursor) AI Install Grok Build on Windows 11 (Formerly Cursor) netsh Commands Cheat Sheet: Wi-Fi, Firewall, Port Proxy (PDF) Cheat Sheets netsh Commands Cheat Sheet: Wi-Fi, Firewall, Port Proxy (PDF) Configure Mailbox Quotas and Archives on Exchange Server 2019 Email Configure Mailbox Quotas and Archives on Exchange Server 2019

Leave a Comment

Press ESC to close