This section provides an overview of how NFS over TLS works in Qumulo Core.
NFS over TLS encrypts NFSv3 and NFSv4.1 traffic in transit by using Transport Layer Security (TLS) 1.3, according to RFC 9289 . This section explains how to configure your Qumulo cluster and your Linux clients to encrypt NFS traffic by using NFS over TLS and how to require TLS for specific hosts.
In Qumulo Core 7.11.0 (and higher), Linux NFS clients can mount NFS exports over TLS, which a Qumulo cluster permits by default.
- To use NFS over TLS, you must install your own cluster certificate.
- A new Qumulo cluster has a self-signed certificate for
localhost. No NFS client trusts this certificate and no client mounts by the namelocalhost. Until you install your own certificate, every TLS mount fails. - An NFSv4.1 client can mount with a Kerberos security flavor and the
xprtsec=tlsoption. However, because NFS over TLS encrypts the same traffic, we don't recommend combining it with Kerberos by using thesec=krb5poption.
How Qumulo Core Refuses Plaintext NFS Calls
When a host access rule requires TLS, Qumulo Core refuses the plaintext NFS calls of the hosts that the rule matches.
- On NFSv4.1, because writes into the client's page cache and the
close()system call still succeed, the client can lose any writes that it hasn't yet sent to the cluster. - If a host access rule refuses a plaintext mount, mount the export by using the
xprtsec=tlsoption, or change the host access rule that matches the client. -
Host access rules that require TLS never refuse Mount Protocol (MOUNT), Network Lock Manager (NLM), Network Status Monitor (NSM), or port mapper calls (
rpcbindrequests). Even for a TLS mount, the Linux client sends MOUNT calls and NLM lock calls over separate plaintext connections.Because refusing these calls can break every NFSv3 TLS mount, the
showmount -ecommand still lists the export and the MOUNT call of a plaintext NFSv3 mount succeeds before its first NFS call fails. - Because NFSv3 calls over RDMA or UDP can't use TLS, a host access rule that requires TLS refuses all of them. If your Qumulo cluster doesn't support NFS over TLS, no client can enable TLS and host access rules that require TLS refuse every NFS call from any host that they match.
-
NFSv3: Qumulo Core answers each plaintext NFS call with the
NFS3ERR_ACCESerror code, which the Linux client reports asPermission denied. A new plaintext mount of the export fails with an error message similar to the following example:mount.nfs: access denied by server while mounting cluster.example.com:/dataOn a plaintext mount that is already open, the next
close(),fsync(), orstat()system call fails with thePermission deniederror message. -
NFSv4.1: Qumulo Core answers each plaintext NFS call with the
NFS4ERR_WRONGSECerror code. A new plaintext mount of the export fails with an error message similar to the following example:mount.nfs: Operation not permitted for cluster.example.com:/data on /mnt/dataOn a plaintext mount that is already open, reads and the
fsync()andstat()system calls fail with theOperation not permittederror message.
What TLS Protects in Qumulo Core
To protect a directory, you must require TLS from each export through which clients can reach it.
When a host access rule that requires TLS matches a host, TLS protects the NFSv3 and NFSv4.1 calls and replies that carry your data and metadata. The following traffic remains in plaintext:
-
MOUNT calls and the export’s root file handle within the MOUNT reply
-
NLM
LOCK,TEST, andUNLOCKcalls and the file handles within them -
NLM callbacks and NSM notifications that the cluster sends to clients
-
The export names that the NFSv4.1 pseudo-root lists
As with every setting of a host access rule, a TLS requirement applies to the export that the client mounts. If an export without the TLS requirement contains the directory of another export that requires TLS, a client that mounts the outer export reaches the inner export’s files in plaintext. Similarly, a second export of the same directory serves its files under its own host access rules.
Prerequisites
This section lists the prerequisites for enabling and using NFS over TLS.
-
Qumulo Core 7.11.0 (or higher)
-
Linux NFS clients that meet the following criteria:
-
RPC-with-TLS support in the kernel, for example in:
-
Debian 13 (or higher)
-
Linux 6.5 (or higher)
-
Red Hat Enterprise Linux (RHEL) 9.4 (or higher)
-
Ubuntu 24.04 (or higher)
-
-
The
tlskernel moduleNote
Ubuntu 24.04 loads this kernel module automatically when a client starts a TLS mount. -
The
tlshddæmon from thektls-utilspackage, installed and running.Important
To mount by IP address, ensure that a reverse DNS lookup of the address returns a hostname that the cluster certificate lists. Thetlshddæmon from thektls-utils0.9 package (the version in Ubuntu 24.04) checks the certificate against this hostname but ignores the address.To install the package and start the dæmon, run the command for your client’s operating system:
-
Debian and Ubuntu:
sudo apt install ktls-utils && sudo systemctl enable --now tlshd -
RHEL:
sudo dnf install ktls-utils && sudo systemctl enable --now tlshd
-
-
-
A cluster certificate that meets the cluster certificate requirements and lists, in a Subject Alternative Name (SAN) entry, a hostname that resolves to the Qumulo cluster
To view your cluster certificate, run the
openssl x509 -in cluster.pem -noout -textcommand.Note
- Because a single cluster certificate serves every tenant on your cluster, the certificate must list every hostname that any tenant's clients use for mounts and every tenant's clients can read all of these hostnames.
- When you replace the cluster certificate:
- A client that doesn't trust the new certificate continues to work only until its connection reopens. Its next operation then fails immediately with the
Permission deniederror message. NFSv4.1 clients retry the handshake in the background about once a second and the next operation succeeds without a remount as soon as the client trusts the new certificate. - All nodes in the cluster begin to use the new certificate as soon as the
qq ssl_modify_certificatecommand completes. New TLS handshakes use the new certificate and connections that already use TLS keep the previous certificate until they close. - The new certificate applies to FTP, NFS over TLS, the Qumulo Core Web UI, the Qumulo REST API, and the S3 API.
- To check that a client trusts the new certificate, mount an NFS export over TLS from the client.
- A client that doesn't trust the new certificate continues to work only until its connection reopens. Its next operation then fails immediately with the
- For information about installing a cluster certificate, see Installing a Signed SSL Certificate on a Qumulo Cluster.
-
The certificate of the certificate authority (CA) that signed the cluster certificate (the cluster CA certificate), in each client’s system trust store
To add the cluster CA certificate to the system trust store, take the step for your client’s operating system:
-
Debian and Ubuntu: Copy the PEM certificate with the
.crtextension to/usr/local/share/ca-certificates/and then run theupdate-ca-certificatescommand. -
RHEL: Copy the PEM certificate to
/etc/pki/ca-trust/source/anchors/and then run theupdate-ca-trustcommand.
To check that the cluster CA certificate verifies the cluster certificate, run the
openssl verify -CAfile ca.pem cluster.pemcommand.Note
If a different CA signs a replacement cluster certificate, add the new cluster CA certificate to each client’s system trust store before you install the replacement certificate. -
To Mount an NFS Export Over TLS
-
To mount the export, run the
mountcommand with thexprtsec=tlsoption and then specify the hostname that the cluster certificate lists. For example:sudo mount -t nfs \ -o nfsvers=4.1,xprtsec=tls \ cluster.example.com:/data \ /mnt/dataFor NFSv3, use the
nfsvers=3option. You can combine thexprtsec=tlsoption with other mount options, such asnconnect=16. -
To check that the mount uses TLS, run the
findmntcommand. For example:findmnt -t nfs,nfs4 -o TARGET,SOURCE,OPTIONSThe following is example output. In the following example,
xprtsec=tlsindicates that the mount uses TLS.TARGET SOURCE OPTIONS /mnt/data cluster.example.com:/data rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,xprtsec=tls,clientaddr=203.0.113.5,local_lock=none,addr=203.0.113.1
To Repair a Failed TLS Mount
Begin by checking the error message that the mount command returns.
| Error Message | Cause | Resolution |
|---|---|---|
mount.nfs: access denied by server while mounting cluster.example.com:/data |
The client rejects the cluster certificate or the cluster refuses the mount. |
On the client, run the journalctl -u tlshd command. The following is example output.
Note
The following error messages indicate that the client rejects the cluster certificate:
|
mount.nfs: an incorrect mount option was specified |
The client's kernel doesn't recognize the xprtsec option. |
Use a kernel that meets the client requirements. |
mount.nfs: Protocol not supported for cluster.example.com:/data on /mnt/data |
The client or the cluster can't start TLS. |
|
To Move a Client from Plaintext NFS to NFS over TLS
- Because Qumulo Core doesn't keep a list of the clients that still mount in plaintext, you must check each client before you require TLS.
- To undo the move, clear the TLS requirement from the host access rules and then remount the clients without the
xprtsec=tlsoption. If you remount the clients first, the cluster refuses each client that you remount in plaintext. - For information about requiring TLS only for the clients that have already moved, see To Require NFS over TLS while Permitting Some Clients to Mount in Plaintext.
-
On the client, unmount every plaintext mount of the cluster (regardless of the name or IP address that the mount uses) and then mount each export again by using the
xprtsec=tlsoption. -
To check that each mount uses TLS, run the
findmntcommand on the client. Each mount of the cluster must show thexprtsec=tlsoption. -
In the host access rules of each NFS export, require TLS for the hosts that you moved.
To Allow Plaintext and TLS Mounts on the Same Client
- To avoid sending TLS traffic in plaintext, mount all of a client's NFSv4.1 mounts of a cluster in the same way: either all with TLS or all in plaintext.
- A Linux client can send the traffic of an NFSv4.1 TLS mount in plaintext without reporting an error.
- Only host access rules that require TLS cause the cluster to refuse this plaintext traffic.
- NFSv3 mounts use their own connections and never share connections.
When a Linux client mounts the same cluster node more than once over NFSv4.1, every mount uses the connection of the first mount, regardless of its xprtsec option. Qumulo has observed this behavior on Linux kernel 7.0.
-
A plaintext mount after a TLS mount: Because the mount uses the TLS connection, its traffic is encrypted. If the client later can’t use TLS (for example, because it no longer trusts the cluster certificate), both mounts fail when the connection reopens.
-
A TLS mount after a plaintext mount: The TLS handshake completes, but the mount sends its traffic over the plaintext connection. The
findmntcommand doesn’t show thexprtsec=tlsoption for this mount.
Known Limits
Qumulo’s implementation of NFS over TLS currently supports:
-
Linux clients that meet the client requirements
Note
We’ve tested Ubuntu 24.04 with kernel 6.8 or 7.0. -
NFS over TLS with NFSv3
-
NFS over TLS with NFSv4.1
Qumulo Core doesn’t currently support:
-
Linux clients with default TLS negotiation
Note
Linux clients don’t negotiate TLS by default, even when your cluster supports NFS over TLS. To use NFS over TLS, a client must mount by using thexprtsec=tlsoption. -
Mutual TLS (where the cluster also authenticates the client)
-
NFS over TLS with NFS over RDMA
-
NFS over TLS with NFSv3 over UDP