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.

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.

  • NFSv3: Qumulo Core answers each plaintext NFS call with the NFS3ERR_ACCES error code, which the Linux client reports as Permission 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:/data
    

    On a plaintext mount that is already open, the next close(), fsync(), or stat() system call fails with the Permission denied error message.

  • NFSv4.1: Qumulo Core answers each plaintext NFS call with the NFS4ERR_WRONGSEC error 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/data
    

    On a plaintext mount that is already open, reads and the fsync() and stat() system calls fail with the Operation not permitted error message.

What TLS Protects in Qumulo Core

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, and UNLOCK calls 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 tls kernel module

    • The tlshd dæmon from the ktls-utils package, installed and running.

      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 -text command.

  • 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 .crt extension to /usr/local/share/ca-certificates/ and then run the update-ca-certificates command.

    • RHEL: Copy the PEM certificate to /etc/pki/ca-trust/source/anchors/ and then run the update-ca-trust command.

    To check that the cluster CA certificate verifies the cluster certificate, run the openssl verify -CAfile ca.pem cluster.pem command.

To Mount an NFS Export Over TLS

  1. To mount the export, run the mount command with the xprtsec=tls option 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/data
    

    For NFSv3, use the nfsvers=3 option. You can combine the xprtsec=tls option with other mount options, such as nconnect=16.

  2. To check that the mount uses TLS, run the findmnt command. For example:

    findmnt -t nfs,nfs4 -o TARGET,SOURCE,OPTIONS
    

    The following is example output. In the following example, xprtsec=tls indicates 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.
tlshd[11334]: Certificate signer not found.
tlshd[11334]: Handshake with 'cluster.example.com' (203.0.113.1) failed
The following error messages indicate that the client rejects the cluster certificate:
  • Certificate owner unexpected. The client mounts the export by using a hostname that the cluster certificate doesn't list. When the log shows the 'unknown' name, the client mounts the export by using an IP address and a reverse DNS lookup of the address returns no hostname. Add this hostname to the cluster certificate or mount the export by using a hostname that the certificate lists.
  • Certificate signature failure. The client might trust an older certificate with the same name (for example, the cluster's original self-signed certificate). Add the cluster CA certificate to the client's system trust store.
  • Certificate signer not found. The client's system trust store doesn't contain the cluster CA certificate. Add the cluster CA certificate to the client's system trust store.
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.
  1. On the client, to check that the tls kernel module is loaded and that the tlshd dæmon is running, run the lsmod | grep tls and systemctl status tlshd commands.
  2. If the lsmod command shows no tls module, to load the module now and at every boot, run the sudo modprobe tls && echo tls | sudo tee /etc/modules-load.d/tls.conf command and then mount the export again.
  3. If the tls kernel module is loaded and the tlshd dæmon is running, your cluster might not offer NFS over TLS. In this scenario, no handshake starts and the tlshd dæmon logs nothing.

    To find out whether your cluster offers NFS over TLS, contact the Qumulo Care Team.

To Move a Client from Plaintext NFS to NFS over TLS

  1. 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=tls option.

  2. To check that each mount uses TLS, run the findmnt command on the client. Each mount of the cluster must show the xprtsec=tls option.

  3. 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

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 findmnt command doesn’t show the xprtsec=tls option for this mount.

Known Limits

Qumulo’s implementation of NFS over TLS currently supports:

  • Linux clients that meet the client requirements

  • NFS over TLS with NFSv3

  • NFS over TLS with NFSv4.1

Qumulo Core doesn’t currently support:

  • Linux clients with default TLS negotiation

  • Mutual TLS (where the cluster also authenticates the client)

  • NFS over TLS with NFS over RDMA

  • NFS over TLS with NFSv3 over UDP