This is the multi-page printable view of this section. Click here to print.
Optimizations
- 1: Cross-Site Disaster Recovery
- 2: Media Workflows
- 3: Security Recommendations
- 4: STIG Compliance
- 5: Networking Recommendations
The optimizations topic has articles discussing how best to configure TrueNAS for various use cases or specific needs. This includes Disaster Recovery configurations, Media and Entertainment tuning, and Security best practices.
Cross-Site Disaster Recovery
TrueNAS supports many different disaster recovery (DR) scenarios! Some of these scenarios with recovery processes are listed here.
Point-in-Time Recovery – ZFS Replication
Of the native ways to replicate data, ZFS replication is the most efficient and reliable method for asynchronously replicating data from one TrueNAS system to another. Replication is based on snapshots of datasets or zvols and synchronizes the snapshots of the first system to the second system. There are numerous advantages to using ZFS replication. One of those is that a snapshot is a point-in-time, read-only copy of the data. This ensures that the contents of the snapshot cannot be altered.
ZFS replication is commonly used for disaster recovery. Should the first system or site go down, the remote system can be brought back by cloning the snapshot to a new dataset and restoring the share. This recovery does require some work on the side of the admin, but it’s incredibly quick and ensures that whatever was transferred is retained. Snapshots and replications can be scheduled to run every few minutes.
Another benefit of ZFS replication is the capability for the snapshots and referenced data to be stored on systems and pools of different specs or pool configuration. All-flash, high-performance pools can be backed up to lower performance pools with traditional drives and different RAID configurations. Smaller systems can also be backed up to larger central repositories. Companies such as FirstLink and others use this to help clone edge devices like the TrueNAS Mini systems to a central core TrueNAS in their data center. ZFS replication on TrueNAS ensures data protection regardless of system complexity, size, or location.
File-based Recovery – Rsync
Rsync is a file-level migration that’s the same as rsync in the Linux/FreeBSD command line. It’s handy for semi-live sync of data if you need just the same files between sites each shared over a local share.
Rsync is useful for file transfer, but it’s not recommended if files are being modified. For example, if an rsync task starts while 100 GB is being written and the data is changed before the file is written, it will cause issues with versioning and data integrity. Rsync should never be used to copy active VM data stores, block-level data (iSCSI or fibre channel shares), or other data that could constantly be in use. Rsync is slower than ZFS replication, particularly for large datasets, so it’s recommended for convenience over data integrity. It can be used between TrueNAS and many other systems.
File Recovery To or From the Cloud – Cloud Sync
TrueNAS can copy, pull, and sync data to a variety of cloud-based data storage systems, including Amazon AWS, Microsoft Azure, Google GCP, Google Drive, Backblaze B2, Dropbox, Box, and more. By integrating rclone sync for file transfers, this feature can copy files on TrueNAS into a cloud repository of a user’s choosing.
For larger datasets, TrueNAS systems are more cost-effective long term than cloud offerings, including Amazon AWS. For this reason, using TrueNAS as a backup target for protecting cloud-based data, e.g., from AWS, Dropbox, or Google Drive, is ideal because data stored in TrueNAS will get scrubbed, checked, and retained with an unlimited number of snapshots available.
Automatic Site-to-Site failover – DNS, Load-Balancing, Proprietary Tools
Automatic failover between sites is beyond the scope of TrueNAS systems alone. TrueNAS is a storage system, and while it handles data replication well in a variety of ways, automatic failover to a remote site requires knowledge of the services themselves. For environments with web or video streaming services, [DNS round-robinn(https://en.wikipedia.org/wiki/Round-robin_DNS) with failover might be feasible. Several web servers, like NGINX , also feature load-balancing services which could help mitigate service overload or downtime. TrueNAS systems provide a stable backend in this topology, with the option of also running ZFS replication for additional safety. Contact the TrueNAS Enterprise team if you need assistance with designing a storage system for your business.
An example design:
TrueNAS is a storage platform with powerful ways to ensure data integrity and consistency between local and remote sites. ZFS replication is the fastest and best way to ensure the data transferred is intact. Rsync is useful for file sync but cannot be used for live data or block-level data that could change during transfer. Cloud sync supports user workloads that archive to or from mainstream cloud providers. Beyond these tools, TrueNAS works with other systems, such as Asigra Backup and iconik smart media management , to provide an ultra-scalable backend with robust performance and a strong emphasis on data protection. The tools that TrueNAS provides combined with the flexibility to work with nearly any IT environment make it a robust system for cross-site and DR workloads.
Media Workflows
Developing and delivering media content that reaches audiences whenever and wherever they are has increased in importance and complexity. In today’s highly connected, entertainment-driven world, media and entertainment (M&E) companies need to stay competitive to succeed. These organizations need to produce information and entertainment in a variety of different formats to display on mobile devices, desktops, workstations, Blu-ray players, game consoles, set-top boxes, and TVs as well as in digital and analog movie theaters. Workflows grow in complexity daily and time-to-market windows continue to shrink. Where and how to store and archive all this content remains top-of-mind. M&E projects run on multiple heterogeneous environments, need an enterprise- grade storage array’s features, and require multiple protocols.
Most M&E production houses purchase data storage based on capacity and performance dictated by the needs of existing applications. As a result, businesses often end up with multiple classes of application-specific storage or storage silos including SAN, NAS, all-flash arrays, and many forms of direct attached storage (DAS) from a multitude of vendors.
Creative organizations are often forced to over-provision and over-purchase capacity or performance, or use an all-flash array to meet their production needs. This reactive purchasing drives up the cost of media production. As media files grow, it becomes complex to manage and inefficient to increase the capacity or performance of DAS or consumer-grade NAS, so many turn to cloud storage. The security risk and expense of cloud storage are a top priority of IT and Media Managers. These factors and others put intense pressure on your budget and data storage infrastructure to keep up with the demand.
A TrueNAS Enterprise storage system brings an enterprise-grade storage solution supporting multiple protocols to M&E production houses that is capable and affordable for many M&E applications. It is designed to enable M&E customers to address media capacity and performance requirements while reducing total cost of ownership (TCO), consolidating digital assets, accelerating media workflows, and providing the features needed to protect all media assets. Read more to learn how TrueNAS can be optimized for typical M&E production house usage.
General tuning recommendations are changing constantly! Check back often to see what’s changed or add your own recommendations !
General Optimizations
- Use SMB3 sharing on both the TrueNAS and any client systems.
- A typical recommendation is to use Mixed RAID (2+1 RAIDZ) in most cases with added Read and Write cache. The Write cache is optional if the system is only using SMB sharing.
- Setting jumbo frames (MTU: 9000) on the network, TrueNAS, and client side is important for large file streams.
- Do not store Media Cache Files and Media Cache Databases on a NAS. These files must stay local on clients. Ideally, client systems use SSDs and NVMe devices to store these files.
- With standard (non flash) systems, don’t move or copy files or footage while editing. This causes choppy playback.
Software-specific Tuning
Beyond general optimization for Media and Entertainment workflows are tunings or TrueNAS usage recommendations for specific applications.
Adobe Premiere®
System size is a primary factor when tuning TrueNAS for Adobe Premiere workflows.
4K workflows typically want 20 disks or more. 8K can be all-flash demanding, but Premiere has the proxies feature to reduce the performance impact. Make sure your client systems or other applications support this feature too.
To get some performance improvement when scrubbing through long video files with audio tracks, de-select play audio while scrubbing under Preferences > Audio
Shared projects must enable Project Locking in Premiere.
Security Recommendations
Follow these best practices to administer TrueNAS securely.
General Recommendations
- Modifying the base TrueNAS firmware image is unsupported and can create security issues.
- Keep TrueNAS up-to-date with the most recent updates for your supported version.
- Upgrade to new major releases promptly consistent with the deployment use case.
- Disable any network services when not in use.
- Restrict the TrueNAS web UI, IPMI, and any other management interfaces to private subnets away from untrusted users, or keep them disconnected when not in active use.
- Configure Syslog settings to send logs to an external server (CORE | SCALE ).
- In TrueNAS 24.04 (Dragonfish) or later, locally monitor and review audit logs using the Audit screen.
- In the System > Advanced Settings, always keep Show Text Console without Password Prompt set to Disabled.
For information about any identified security vulnerabilities in TrueNAS products, consult the TrueNAS Security Advisories site. Check back regularly for updates.
TrueNAS Default Ports
TrueNAS open ports are 80 and 443.
TrueNAS provides a range of different storage services and uses TCP/IP for both data and management functions. All protocols can be securely encrypted and routed using VPN technologies. This approach is encouraged when using services directly over the Internet or WAN.
Inbound Ports
The TCP ports and services that listen for external connections:
| Inbound Port | Protocol | Service Name | Description of Service | Encrypted | Defaults |
|---|---|---|---|---|---|
| 80/443 | TCP | HTTP/HTTPS | Web interface REST API WebSockets API | Optional | Open |
| 22 | TCP | SSH/SFTP | Secure Shell Secure FTP ZFS Replication Rsync over SSH | Yes | Closed |
| 111/2049 | TCP/UDP | NFS v3 | Network File Service | No | Closed |
| 137/138/139/445 | TCP/UDP | SMB | Windows File Service | Optional | Closed |
| 548 | TCP | AFP | Apple File Service | No | Closed |
| 20/21 | TCP | FTP | File Transfer Protocol | No | Closed |
| 443 | TCP | WebDAV | HTTPS access to files | Yes | Closed |
| 3260 | TCP | iSCSI | Block storage over IP | Optional | Closed |
| 9000 | TCP | S3 API | Object storage over IP | Yes | Closed |
| 873 | TCP | Rsync | Remote synchronization | Optional | Closed |
| Not defined | UDP | Wireguard | Point-to-point encryption | Yes | Closed |
| 161/162 | TCP | SNMP | Simple Network Monitoring | Optional | Closed |
Outbound Ports
Outbound protocols do not listen for or accept external connections. These protocols and ports are not a security risk and are usually allowed through firewalls. These protocols are considered primary and might need to be permitted through a firewall:
| Outbound Port | Protocol | Service Name | Description of Service | Encrypted | Defaults |
|---|---|---|---|---|---|
| 80/443 | TCP | HTTP/HTTPS | Software updates and Pro-active support | Optional | Open |
| 25/465 | TCP | Sendmail/TLS | Send emails for alerts | No | Outgoing |
| 123 | TCP | NTP | Network Time synchronization | Yes | Outgoing |
| 514 | TCP | Syslog | Logging of alerts and changes | No | Outgoing |
Callouts to Websites
Some elements of TrueNAS make external callouts to online locations. Manage these callout addresses as part of your general network configuration (e.g., TrueNAS and router allow/deny hosts, etc.) to further secure your system. Callouts are grouped into several classes.
User Accounts
Restrict new TrueNAS user accounts to the most minimal set of storage ACL permissions and access possible.
On TrueNAS 22.12 or newer, create the administrator account on install and disable root NAS administrative access.
In TrueNAS 24.04 (Dragonfish) or later, use the Credentials > Groups > Privileges screen to define limited access administrative roles, such as read-only or share administrators. Assign users to those groups to grant partial NAS administrative access. Members of privileged groups can access the UI but cannot perform administrative tasks outside those defined by their role(s).
Use complex passwords and Two-Factor Authentication for all TrueNAS administrator accounts.
Grant TrueNAS user accounts (local or domain accounts) access to SSH or console shells only if that user is explicitly trusted.
Shares
Using SMB, iSCSI, or NFS to share data is common for TrueNAS users. However, it allows outside connections to the system and must be configured to minimize security concerns.
iSCSI
Follow the iSCSI creation wizard to create an iSCSI share.
When creating a new Portal, consider adding a Discovery Authentication Method. This adds authentication between the initiator and the extent based on the chosen authentication method, CHAP or Mutual CHAP.
Be aware that discovery authentication only secures initial discovery. iSCSI data traffic is not encrypted and should be isolated from regular data traffic or other types of network communication. One common approach is to create a dedicated network or VLAN (Virtual Local Area Network) specifically for iSCSI traffic.
Entering a list of Initiators and Authorized Networks is also recommended. This allows you to define systems or networks that can connect to the extent. When these options are empty, all initiators and all networks can connect to the extent.
NFS
During NFS share creation , define which systems are authorized for share connections. Leaving the Authorized Networks or Authorized Hosts and IP addresses lists empty allows any system to connect to the NFS share. To define which systems can connect to the share, click *Advanced Options, then enter all networks, hosts, and IP addresses to share access.
NFS service settings are in Services after clicking the (pencil).
For greater security and more granular access control, enable the NFSv4 protocol. To apply NFS ACLs, click Advanced Options on the add or edit NFS share screen, then enter Access details.
SMB
Select a Purpose during SMB share creation . This changes the share configuration with one click. For example, when selecting Private SMB Datasets and Shares from the list, TrueNAS adjusts the Advanced Options so the share is set up for private use. To fully customize the share settings, select No presets as the Purpose. Unless you require a specific purpose for the share, we recommend selecting Default share parameters as the Purpose.
SMB service settings are in Services after clicking the (pencil).
Do not use NTLMv1 Auth with an untrusted network. This encryption option is insecure and vulnerable.
Microsoft is deprecating NTLM network authentication in a staged process. Windows 11 version 24H2, Windows Server 2025, and later versions have removed NTLMv1 network authentication. See Upcoming changes to NTLMv1 in Windows 11 version 24H2 and Windows Server 2025 for more information. Microsoft also plans to disable all NTLM authentication by default in a future major Windows release. See Advancing Windows Security: Disabling NTLM by Default for more information.
Enterprise and Active Directory deployments are not affected by either change. TrueNAS SMB deployments that use Active Directory rely on Kerberos authentication and are unaffected by these changes. Active Directory remains the recommended configuration for business and enterprise SMB deployments.
Home and workgroup deployments that use local TrueNAS accounts are affected as follows:
- The NTLMv1 Auth setting in the TrueNAS SMB service has no effect for Windows 11 (version 24H2 and later) or Windows Server 2025 clients, which no longer send NTLMv1. This setting might still be relevant for legacy or non-Windows devices that use NTLMv1.
- Windows clients using NTLMv2 (standard for workgroup and local account SMB access) currently connect without issue. These clients lose SMB access when Microsoft enforces the full NTLM disable-by-default in a future Windows release. macOS, Linux, older Windows versions, and network-attached devices such as printers and MFPs are not affected. When that change takes effect, re-enabling NTLM in Windows security policy is a temporary workaround.
TrueNAS plans to add improved authentication support for home and workgroup users in a future release, dependent on upstream development in Samba.
When an administrator group is required, verify the group members are correctly configured. Administration group members have full permission to modify or delete the share data.
SSH
Using Secure Shell (SSH) to connect to your TrueNAS is very helpful when issuing commands through the CLI. SSH settings are in Services after clicking the (pencil).
For best security, disable all login options for root or admin accounts in the SSH service options. Instead, create and exchange SSH keys between client systems and TrueNAS before attempting to connect with SSH.
Be careful when prompted to overwrite any existing SSH key pairs, as this can disrupt previously configured SSH connections. SSH key pair overwrites are permanent.
- Open Windows Powershell or a terminal.
- Enter
ssh-keygen.exe. - Type in a location to store the new key pair or press Enter to use the default location (recommended) shown in parentheses.
- Type in a passphrase (recommended) for the keypair or press Enter to not use a passphrase. Confirm the passphrase.
- Open the Terminal app
- Enter
ssh-keygen -t rsa -b 2048. This uses the RSA algorithm to create a key of 2048 bits, which is generally considered acceptable. - Type in a location to store the new key pair or press Enter to use the default location (recommended).
- Type in a passphrase (recommended) for the keypair or press Enter to not use a passphrase. Confirm the passphrase.
- Open the shell.
- Enter
ssh-keygen. By default, this uses the RSA algorithm to create a 3072-bit key pair. - Type in a location to store the new key pair or press Enter to use the default location (recommended).
- Type in a passphrase (recommended) for the keypair or press Enter to not use a passphrase. Confirm the passphrase.
- Open the shell.
- Enter
ssh-keygen -t rsa. This uses the RSA algorithm to create the key pair. - Type in a location to store the new key pair or press Enter to use the default location (recommended).
- Type in a passphrase (recommended) for the keypair or press Enter to not use a passphrase. Confirm the passphrase.
Root account logins using SSH are never recommended. Create TrueNAS user accounts with limited permissions and log in to these when using SSH. If a critical situation requires root login, first set up two-factor authentication (CORE | SCALE ) as an extra layer of security. Disable the Log in as Root with Password setting as soon as the situation is resolved.
Unless required, do not set Allow TCP Port Forwarding.
Many SSH ciphers are outdated and vulnerable. It is not safe to enable any weak SSH ciphers. Block both the CBC and Arcfour ciphers by going to Services > SSH > Edit > Advanced Options and adding this line in the Auxiliary Parameters:
Ciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
Virtualization: VMs, Plugins, Apps
In TrueNAS 13.3, 13.0, and earlier, these features are obsolete and should not be used in production environments.
For production environments, use the tested and supported virtualization features available in TrueNAS 24.04 or newer. TrueNAS Enterprise customers can contact the TrueNAS Support team to schedule a TrueNAS deployment.
Review any application or virtual machine (VM) deployment scenario for additional security exposure or vulnerabilities. The TrueNAS team cannot resolve security vulnerabilities introduced from within user-deployed virtualized environments.
After configuring a VM , disable any VNC or SPICE virtual machine display devices.
Update applications regularly. TrueNAS monitors connected application catalogs and trains and displays available updates on the Installed applications screen.
STIG Compliance
TrueNAS Compliance
TrueNAS falls into the category of an appliance with its own operating system as covered in General Purpose Operating System Security Requirements Guide (GPOS SRG) findings. Through connection to Active Directory, TrueNAS also complies with the Active Directory Domain Security Technical Implementation Guide SRG findings related to authentication and access controls for user, group, and systems.
Customizing TrueNAS Security Options for STIG Compliance
Many areas of compliance with the STIG SRG findings are automatically addressed through the TrueNAS kernel and middleware, but some are optional settings and features in the TrueNAS UI administration users customize to suit individual use cases and security policies. This article details customizable settings to accomplish a security-hardened system for STIG and FIPS compliance.
Install TrueNAS
Existing TrueNAS systems can upgrade to the latest release through the UI.
Earlier releases of TrueNAS can upgrade by following the established migration paths or might need to clean-install the latest release of SCALE using the
If side-grading (migrating) from an earlier release to the latest TrueNAS release, follow guidance in the Preparing to Migrate article before beginning the migration.
If clean-installing TrueNAS for the first time, follow guidance in the Installation Instructions articles.
Prerequisites
If you are installing TrueNAS on servers other than licensed TrueNAS Enterprise systems, you should read and follow guidance in the TrueNAS Hardware Guide .
Configuring TrueNAS
After installing TrueNAS, users must configure network, storage, users, sharing, and data backup solutions. See Configuration Instructions for more information.
Administration Accounts
TrueNAS creates the root user and an administration user at installation. Some releases of TrueNAS might only have root as the default administration user, while other releases have either the admin or truenas_admin as the default user.
TrueNAS systems with the root user, or either the admin or truenas_admin user should create a new administration user with full control privileges and assign a complex password that follows current password management guidelines.
After testing the login for the new administration user, disable both the root user password if not already disabled, and the default admin or truenas_admin user password to security-harden the system. Only enable the root user password when necessary to perform functions not available to the administration user, and when tasks are complete, disable the root user password again.
If creating multiple administration user accounts for individuals that fill specific roles, limit privileges and access to what is minimally required to perform the system responsibilities.
See Using Administrator Logins for more information on administration user accounts.
Restrict Access to Roles
TrueNAS allows for role-based access control (RBAC) through the privileges function such as the predefined, full control, readonly, and sharing_administrator roles.
In 24.10 and later releases, full administrators can configure new privileges to create other administration user roles with access limited to specific tasks such as replication, cloud sync, cloud backup, apps and docker, directory services, system audit, and keychain read/write capabilities. Create the new privilege and assign it to a new or existing group, and then assign the new group to the administration user.
Use caution when creating new privileges. Incorrectly configuring privileges can result in unintended consequences. Do not modify the default existing privileges!
See Using Administrator Logins for more information on administration user accounts.
Restrict Access to SSH
Enable SSH access only for the full-control administration user (Local Administrator) but do not leave the SSH service enabled when not in use. Disable the SSH service after completing the required tasks. Re-enable it only when you need access again.
Do not set the SSH service to start automatically if the system restarts to prevent starting and leaving SSH running when not needed. See SSH Service for more information.
If using multiple administration user accounts, limit SSH session access to only users that require this ability to communicate with TrueNAS at the command-line level. See Restrict Access to Sudo Commands for more information.
Restrict Access to Sudo Commands
Only the main system administration account should have access to sudo commands.
If other administration users need access to SSH or sudo command, restrict access to specific sudo commands rather than allowing unlimited access.
Also, require password entry before executing any sudo command in an SSH or shell session.
If creating multiple administration users with permissions to perform specific tasks, do not enable sudo commands or configure limited access by entering only the specific commands they need to use to complete required tasks.
See Managing Users
and Using Administrator Logins
for more information on creating users and allowing sudo command access.
Restrict Access to Shell
Configure access to the shell for only the main administration user with full control. For better control leave access to the shell to only the root user. Enable the root user password only when required.
If creating multiple administration users, deny or restrict administration user access to the shell.
If granting limited access to the shell, restrict sudo command access to only those commands necessary for the role the administration user fills and enforce password entry for commands.
Lock Users
If necessary, use the Lock User option on the Credentials > Users > Edit User screen to prevent or restrict user access for a limited time. Locking the account disables but does not delete the account.
Web UI Security
Various settings found on the System > General Settings and Advanced Settings screens can limit web UI access, increase visibility of system activity, and increase system security. TrueNAS can also require login credential entry before permitting access to the Console Setup menu after the system installation.
Require Login to Show Console Setup Menu
After the initial system installation, administration users with full control can configure TrueNAS to require a user login before showing the Console Setup menu screen. Go to System > Advanced Settings and click Configure on the Console widget. Clearing the Show Text Console without Password Prompt sets TrueNAS to show the login prompt before showing the Console Setup menu.
Set Up a GUI SSL Certificate
TrueNAS provides a default, self-signed certificate to enable encrypted web interface connections but users can obtain, import, or create a new certificate to use for this function for added security. If adding or importing a certificate, go to Credentials > Certificates then first add or import the certificate authority (CA) and then create or import the certificate to add it as a selectable option in the GUI SSL Certificate field on the System > General Settings > GUI Settings screen.
Configure HTTPS TLS Protocols
TrueNAS uses TLSv1.2 and TLSv1.3 to provide a cryptographic protocol for securing client/server connections. TrueNAS provides the TLSv1.0 and TLSv1.1 options for backward compatibility but these protocols are less secure than the default protocol selections. To change the default selections, go to System > General Settings, and click Settings on the GUI widget. Click the dropdown arrow for HTTPS Protocols, make the change and then click Save.
Configure a Banner
TrueNAS allows you to configure a banner message to show before logging into the web UI or SSH login screens.
To configure a web UI banner message, go to System > Advanced Settings and click Configure on the Access widget. Type the text into the Login Banner field, and click Save. This shows a banner screen when users first enter the web UI IP address. Users click Continue to gain access the TrueNAS login screen.
To configure a banner before authorized users can log into an SSH session, go to System > Advanced Settings and click Console. Enter the text for the message in the MOTD Banner field and click Save.
Session Controls
Monitor the user session displayed on the Access widget located on the System > Advanced Settings screen. Use Terminate Other Sessions to end a WebSocket session/connection to TrueNAS if necessary. Configure session timeout in seconds to limit how long TrueNAS remains logged in when not in active use.
Configure Two Factor Authentication
Two Factor Authentication adds a second level of security to log-in access. TrueNAS provides the option to enable two-factor authentication globally, which prompts users to set up 2FA for the web UI. A separate option allows requiring two-factor authentication to log into an SSH session for users who configured a 2FA secret.
STIG Mode Exception: In GPOS STIG compatibility mode, 2FA for UI access is mandatory for all users. In standard mode, users can skip 2FA setup and log in without it.
When global 2FA is enabled in standard (non-STIG) mode:
- Users with a configured 2FA secret must provide the 2FA code to log in to the UI
- Users without a configured 2FA secret can log in without 2FA but see a one-time per session prompt to set it up
- SSH 2FA only applies to users who configured a 2FA secret and are using password-based authentication
See Managing Global Two-Factor Authentication for more information
Monitor System Activity
Monitor System Console Messages
TrueNAS allows showing real-time console messages at the bottom of the web UI screen. Turning this on allows the administration user to monitor console messages detailing system activity. Click on the banner at the bottom of the UI screen to open a dialog showing system activity for a few days of system activity. Go to System > General Settings and click Settings on the GUI widget. Select Show Console Messages and click Save to show console messages.
System Auditing
To customize the system auditing retention period, specify how long the TrueNAS retains auditing records. See Audit Logs for more information on TrueNAS audit logs and configuring auditing settings.
To keep audit log records beyond the retention period, use the Export button to download a copy of the audit database. Move the file to a remote backup server to retain a copy of the log based on your data security policies. TrueNAS prevents modification of the audit log database on the TrueNAS server. Use other data protection measures to prevent modification of a downloaded copy of the file.
System Logging
Configure TrueNAS to send system logs to an external server using the Syslog widget on the System > Advanced Settings screen in release 24.10 and later .
Enter the IP address or host name for the remote system logging server. Select the preconfigured system certificate.
You need a certificate to use TLS protocol for syslog transport to the remote log server. Create a new dedicated certificate authority and certificate to secure the TLS connection with the remote server.
To include the fully-qualified domain name (FQDN) in logs to precisely identify systems with similar host names, select or enable the Use FQDN for Logging option.
Alert Settings
Configure alert settings to monitor system, user, and process activity from the System > Alert Settings screen.
Configure the email address to receive system alerts when triggered.
Next, configure the individual alert parameters for your use case. Consider setting the following alerts for STIG compliance:
| Category | Alert | Reason |
|---|---|---|
| Audit | Audit Service Backend Failed | Set alert level preference to send notifications when an auditing function failure occurs to promptly correct the issue and not lose audit logs. |
| Audit Service Setup Failed | Set alert level preference to send notifications when the auditing setup fails to correct the issue promptly and not lose audit logs. | |
| Certificates |
| Set alert level preferences to send notifications when certificates near expiration. This allows you to renew or replace certificates before they affect certificate-dependent functions. |
| Certificate Revoked | Set alert preferences to notify you of certificate revocations so you can promptly obtain a new certificate. | |
| Web UI HTTPS Certificate Setup Failed | Set alert level preferences to send notifications when the web UI HTTPS certificate setup fails to promptly address issues that impact the security of HTTPS access to the TrueNAS web UI. | |
| Directory Services | Active Directory Domain Validation Failed | Set the alert level preference to send notifications when Active Directory domain verification fails to promptly investigate and take corrective action. |
| Key Management Interoperability Protocol (KMIP) | Failed to Communicate with KMIP Server | Set alert level preference to send notifications when a communication failure with the KMIP server occurs to promptly diagnose and correct issues. |
| Set the alert level preference to send notifications when the SED global password fails to sync with the KMIP server to promptly diagnose and correct password and/or sync issues. | |
| Sharing |
| Set alert preferences to notify you when the system detects deprecated services or configurations. Consult release notes and tutorials for information on affected Share protocols and their replacements. |
| Set alert preferences to notify you of failed or missing network connections so you can update configurations promptly. | |
| NTLMv1 authentication has been attempted in the last 24 hours | Set alert preferences to notify you when NTLMv1 authentication occurs between TrueNAS and Windows servers. NTLMv1 provides some session security, message integrity, and confidentiality but lacks the robustness of modern protocols and remains vulnerable to replay and brute-force attacks. Investigate any NTLMv1 usage promptly and upgrade to more secure authentication methods. | |
| SMB share path has unresolvable issues | Set the alert level preference to send notifications when there are unresolvable issues with an SMB share path. Leaving share paths issues unaddressed can leave the system and data in the shares vulnerable to attack. | |
| Storage | Pool consuming USB disks | Set the alert level preference to send notifications when TrueNAS detects a USB disk connected to and used by the system. USB drives can put data and data security at risk if used for normal storage and as a potential source of unauthorized data transfer medium. USB drives are not recommended as a target for system and data backups. |
| System |
| Set alert preferences to notify you when TrueNAS detects administrator activity in web UI and SSH sessions. These alerts help you identify potential unauthorized access to TrueNAS features, functions, system configuration, and data storage. |
| The Web Interface Could Not Bind to Configured Address | Set the alert level preference to send notifications when TrueNAS detects problems binding to any network address. Address incorrectly configured network addresses promptly to maintain secure communication between TrueNAS and other remote servers. |
Network Security
Do not leave inactive network connections configured or active in TrueNAS even if they are non-public IP addresses.
Allowed IP Addresses
To limit the IP address(es) allowed access to the TrueNAS web UI to a single or range of IP addresses in a subnet, go to System > Advanced Settings > Allowed IP Addresses and either enter a single IP address to restrict access to one IP address, or enter an IP address and subnet mask to restrict access to a range of IP addresses.
Use caution when configuring the system to restrict access to avoid locking out web UI access to all users! If locked out of the web UI, connect a terminal and keyboard to the system server to change this setting to allow web UI access again.
Disable Unused Network Connections
Unused network connections, whether in network interfaces such as a bridge, VLAN, link aggregate, interface aliases, or static routes. Left active in the system and if publicly accessible, these addresses present security vulnerabilities. Check share advanced options and share service configurations for invalid network addresses or connections to discontinued remote servers.
Allowed Domains and IP Addresses/Hosts
To increase network, consider configuring allowed domains on the Network > Global Configuration screen .
To increase share security, configure allowed host names or IP addresses for SMB shares or NFS shares .
Data Security
To keep data secure, TrueNAS provides dataset access controls, encryption, and the ability to lock/unlock datasets. Shares can configure share or filesystem access controls. Applications allow configuring access control on the storage volumes or host path datasets they use for container storage.
Configure Access Control Lists (ACLs)
TrueNAS provides both POSIX and NFSv4 access control protocols and applies them based on the dataset preset selected when creating the dataset. Advanced users can override the default ACL protocol applied through advanced dataset setting options to suit their security protocols or individual use cases.
Configure dataset access for owners, individual users, groups, or everyone. Set permissions to allow or deny read-only, read/write, or full control access. See Setting Up Permissions for more information.
SMB shares permit setting up permissions for just the share but not the dataset for the share, or for both the dataset and the share. See Windows Shares for more information on SMB shares, creating shares, and configuring settings including permissions.
NFS shares do not have the same setting options and rely on the dataset ACL settings. See NFS Shares for more information.
Apps installation wizards for apps in the enterprise and stable trains, and some community apps include the option to enable ACLs where you set the owner and permissions level by storage volume/dataset host path.
Configure Encryption
TrueNAS allows users to set encryption at the dataset level but does not recommend setting it at the pool level. Pool-level encryption forces encryption on all datasets created in the pool and can only use key encryption. Encrypting at the dataset level allows more granular control over encrypted versus unencrypted datasets, and allows setting the encryption type to either key or passphrase protection. Child datasets of encrypted datasets inherit encryption from the parent dataset. See Storage Encryption for more information on encrypting datasets.
Encrypted datasets allow users to lock them to prevent read or write access until users unlock them.
Data Transfer Security
TrueNAS allows encryption on data transfers made through cloud sync and replication tasks. This provides an additional encryption layer that works with or without dataset-level encryption.
See Encrypting Cloud Sync Tasks for more information on encrypting cloud sync tasks, or Adding Transfer Encryption for information on adding encryption to remote replication tasks.
Maintain SSH Connection Credentials
TrueNAS uses SSH connection credentials for cloud backup tasks, cloud sync tasks, rsync tasks, and replication tasks. Purge the list of SSH connections to backup servers no longer actively used to minimize security vulnerabilities through connections to the remote servers or services no longer used. Select out-of-date or inactive SSH connections, SSH Keypair, or cloud credentials to edit or delete them.
Updating TrueNAS Releases
TrueNAS provides a way to update to the latest releases from the UI. The main Dashboard and Software > Updates screen provide access to the latest releases for the currently installed release train selected in TrueNAS.
Alternatively, users can use an
Manage Boot Environments
To manage versions of TrueNAS releases, go to System > Boot to open the Boot Environments screen. Select the checkbox(es) for releases you want to delete from the list of inactive releases. Maintaining releases does not pose security risks but does consume space on the boot pool. See Boot Pool Management for more information on working with boot pool environments.
Virtualization
This document does not cover user-created virtual machine environments. The operating systems and applications you deploy in these VMs determine their STIG compliance.
Future STIG Compliance
TrueNAS does not comply with STIG GPOS SRG for the following findings scheduled for a future release:
Networking Recommendations
Follow these best practices for a stable and performant network.
The TrueNAS team welcomes contributions from members of the TrueNAS community!
Use the Feedback button on the right side or click Edit this Page at the top right of this page to suggest your own networking tips and tricks.
Static IP Address
By default, TrueNAS configures the primary network interface for Dynamic Host Configuration Protocol (DHCP) IP address management. Consider assigning a static IP address for increased network stability and communication between devices.
See Setting Up Static IPs for more information.
Interfaces
Use multiple network interfaces if possible for load balancing and redundancy. Configure link aggregation (LAGG) to combine multiple physical interfaces into a single logical interface.
See also Setting Up a Link Aggregation .
LACP
If supported by your network switch and other networking equipment in your environment, select Link Aggregation Control Protocol (LACP) to use the most common protocol for link aggregation interfaces based on IEEE specification 802.3ad . LACP dynamically aggregates multiple network interfaces into a single logical link, providing increased bandwidth and fault tolerance.
LACP allows you to bundle multiple physical network links into a single logical link, increasing the overall bandwidth available. This is especially beneficial in environments where high data transfer rates are required, such as when multiple users are accessing storage concurrently. LACP does not provide a performance benefit for single-user TrueNAS systems.
We do not recommend using LACP/LAGG for iSCSI traffic. See below for more information.
SMB Multichannel
Depending on the requirements of your intended use case, SMB Multichannel (L3+) can offer certain advantages over LACP (L2).
SMB Multichannel allows for dynamic load balancing at the application layer, enabling multiple connections to be established between a client and a server. This results in more efficient utilization of available network paths, especially in scenarios where the workload consists of multiple parallel data streams. In contrast, LACP operates at the link layer and aggregates physical links into a single logical link. While it provides load balancing, the granularity is typically based on source and destination IP addresses or MAC addresses, which may not distribute traffic as dynamically.
It is not best practice to enable both LACP and SMB Multichannel in conjunction. Consider your network requirements and select the more appropriate aggregation strategy.
SMB Multichannel allows for flexibility in adapting to varying bandwidth requirements of different applications or workloads. It can dynamically adjust the number of connections based on the available network resources and the demands of the data being transferred.
SMB Multichannel does not require specific switch configurations or support for link aggregation, making it potentially easier to deploy in environments where switch compatibility or configuration limitations exist. LACP, on the other hand, relies on switch support for link aggregation. While it is a standardized protocol, ensuring consistent switch compatibility and configuration can sometimes be more complex in diverse network environments.
SMB Multichannel is application-aware and can optimize connections based on the requirements of the specific application. This can lead to more efficient use of available network resources for applications that can benefit from parallel connections. LACP, being a lower-layer protocol, is less aware of the applications running over the network and may not optimize connections at the application layer to the same extent.
These advantages can be more pronounced at higher network speeds, such as in 100G environments (see below ).
See Setting Up SMB Multichannel for more information.
NFS Session Trunking
TrueNAS Enterprise
NFSv4.1 session trunking lets a Linux client use multiple TrueNAS IP addresses in a single NFS session. It balances I/O across interfaces without LACP, similar to MPIO for iSCSI.
Session trunking requires:
- TrueNAS 24.10 or later.
- A Linux client with kernel 5.17 or later.
- Each TrueNAS interface on its own subnet.
- An empty Bind IP Addresses setting on the NFS service screen so NFS listens on all addresses.
To enable trunking, mount the same export through each TrueNAS IP address with the
max_connectoption. The client detects that both addresses belong to the same server and distributes I/O across both connections.mount -t nfs -o vers=4.1,max_connect=2 <server-ip1>:/export /mnt/data mount -t nfs -o vers=4.1,max_connect=2 <server-ip2>:/export /mnt/data_trunkImportantDo not use
nconnectandmax_connecttogether. In testing, the combination distributed I/O unevenly across paths. Usemax_connectto balance traffic across multiple interfaces. Usenconnectto open multiple connections to a single interface.To keep the client connected during path loss or a controller failover, add the
hard,intr,timeo=200, andretrans=6options to the mount command.mount -t nfs -o vers=4.1,max_connect=2,hard,intr,timeo=200,retrans=6 <server-ip1>:/export /mnt/dataIf one path fails, the client continues on the remaining path. If both paths fail at the same time, such as during an HA failover, I/O pauses until the session re-establishes on the surviving controller. With these mount options, no data loss is expected. Enable spanning tree edge port (portfast) on switch ports connected directly to TrueNAS and client interfaces to shorten recovery after a link failure.
See Adding NFS Shares and the NFS service screen for more information. For other ways to combine interfaces, see LACP and SMB Multichannel .
NFS over RDMA
TrueNAS Enterprise
NFS over RDMA reduces CPU overhead and latency on systems with RDMA-capable network interface cards. To use it, select Enable NFS over RDMA on the NFS service screen , then add
proto=rdmato the client mount options. Session trunking works over RDMA. NFS over RDMA and NVMe-oF over RDMA can run at the same time on the same network adapters.mount -t nfs -o vers=4.1,max_connect=2,proto=rdma <server-ip1>:/export /mnt/data mount -t nfs -o vers=4.1,max_connect=2,proto=rdma <server-ip2>:/export /mnt/data_trunkConfigure the network switches for RDMA before you enable it:
- Enable jumbo frames on every switch port and interface in the path.
- Enable Priority Flow Control (PFC) on the RoCE priority, on all switch ports that carry RDMA traffic. This is typically CoS/priority 3 with DSCP 26.
- Place each TrueNAS interface and each client interface on its own VLAN with a local layer 3 gateway.
See Adding NFS Shares for more information.
Network Traffic Segmentation
Segregate network traffic using both layer 2 and layer 3 methods for improved efficiency and security. This helps optimize bandwidth, reduce congestion, and enhance overall network resilience against potential security threats.
Layer 2 Isolation
Use VLANs (Virtual Local Area Networks) to segment your network and isolate traffic. VLANs allow you to create logical segments within a physical network switch, even if devices in those segments are physically connected to the same switch.
VLANs provide logical segmentation, allowing different groups of devices to be in separate broadcast domains regardless of their physical location in the network. Devices in one VLAN do not see the broadcast traffic of devices in other VLANs, reducing broadcast domain size and improving network efficiency. VLANs provide flexibility in network design, providing enhanced isolation, access control, and scalability. They are often used to group devices based on functional roles or departments and optimize performance by prioritizing discrete traffic types on each VLAN.
See also Setting Up a Network VLAN .
Layer 3 Isolation
Use network layer (subnet) isolation to separate storage traffic from other network traffic to avoid congestion. If you have multiple subnets in your network, you can run the management UI and IPMI if included on your motherboard on one subnet and data on another.
Devices in different subnets cannot communicate directly without the use of a router or layer 3 switch. Each subnet has its own IP address range. Devices within the same subnet share the same network address and have unique host addresses.
Communication between devices in different subnets requires routing. Broadcast traffic is contained within the boundaries of a subnet. Devices in one subnet do not receive broadcasts from devices in other subnets without routing.
Separate subnets are commonly used for security and to manage IP address space efficiently. By placing the TrueNAS system on a separate subnet, you can isolate it from general internet traffic. This helps in reducing the attack surface and provides an additional layer of security.
Separating the TrueNAS system onto its own subnet allows for more granular control over bandwidth allocation You can prioritize or limit the bandwidth for traffic to and from the NAS, ensuring that it gets the necessary resources without being adversely affected by other network activities. Isolating the NAS on a dedicated subnet helps prevent scenarios where heavy internet traffic impacts the performance of the NAS. This is particularly important if the NAS is used for critical or time-sensitive operations. Implement Quality of Service policies to prioritize storage traffic over other non-essential traffic. This ensures that data transfers to and from the NAS receive the necessary priority and resources.
As your network grows, isolating the NAS onto its own subnet provides a scalable solution. It allows you to maintain control and security even as you add more devices and services to the network.
See Managing Interfaces .
iSCSI
iSCSI shares require specific networking considerations. iSCSI should be its own dedicated VLAN network to isolate it from other network traffic. This enhances security, reduces the risk of interference, and provides easier Quality of Service (QoS) management.
The failover feature on TrueNAS Enterprise platforms with High Availability (HA) can malfunction in network environments that heavily use the Spanning Tree Protocol (STP). When configuring or troubleshooting HA failover, if TrueNAS HA failover does not function properly, investigate STP use in the network and consider disabling STP on network switch ports connected to the TrueNAS platform.
Prioritize iSCSI traffic over other types of traffic on the network. This ensures that storage-related activities receive the necessary network resources for optimal performance.
Ensure consistent network configurations across all components involved in the iSCSI setup. Consistency helps in maintaining predictability and stability in the network environment.
For more information, see Block Shares (iSCSI) . See also Best Practices for Configuring Networking with Software iSCSI from VMware.
MPIO for iSCSI
Use multipath I/O (MPIO) to combine interfaces when using iSCSI. Do not use LAGG link aggregation.
MPIO is designed to improve the reliability and performance of data transfers by using multiple physical paths between the iSCSI initiator (client) and the iSCSI target (storage). MPIO can distribute I/O traffic across multiple paths, balancing the load and improving overall performance. If one path fails, MPIO can automatically switch to an alternate path, ensuring continuous access to the storage.
Both the iSCSI initiator and target must support MPIO for it to be effective. MPIO requires configuration on both the initiator and target sides. Each path needs to be properly identified and managed.
To configure multipath for iSCSI, go to the iSCSI screen and configure additional Portal IP addresses.
iSCSI and VMWare
Refer to the VMWare best practices guide for information on configuring multiple network adapters when using VMWare with your TrueNAS system.
Jumbo Frames
Enable jumbo frames on an iSCSI share to enhance storage performance through the transmission of larger data packets, reducing overhead and improving overall efficiency.
All network hardware, including switches and client systems, must support and enable jumbo frames to prevent fragmentation and performance degradation.
To enable jumbo frames, go to the Network screen and edit the parent interface(s). Set the MTU (Maximum Transmission Unit) to 9000. Click SAVE.
Restart the system and restart the iSCSI share to inherit.
ALUA
TrueNAS Enterprise
TrueNAS Enterprise High Availability (HA) systems should enable Asymmetric Logical Unit Access (ALUA) for iSCSI shares. ALUA and MPIO can be used at the same time.
ALUA allows a client computer to discover the best path to the storage on a TrueNAS® system. HA storage clusters can provide multiple paths to the same storage. For example, the disks are directly connected to the primary computer and provide high speed and bandwidth when accessed through that primary computer. The same disks are also available through the secondary computer, but because they are not directly connected to it, speed and bandwidth are restricted. With ALUA, clients automatically ask for and use the best path to the storage. If one of the TrueNAS® HA computers becomes inaccessible, the clients automatically switch to the next best alternate path to the storage. When a better path becomes available, as when the primary host becomes available again, the clients automatically switch back to that better path to the storage.
To enable ALUA, select Enable iSCSI ALUA from the Target Global Configuration tab on the iSCSI screen.
Enterprise customers should contact TrueNAS Enterprise Support to validate network design changes.
100 Gigabit Ethernet Design Considerations
In a 100G network environment, established best practices remain relevant, however close attention to detail becomes critical to achieve the expected performance of both single and multi-client deployment strategies. Configuration and infrastructure elements that may present minor inconveniences at lower speeds, can result in significant disruptions at 100 gigabytes.
Capacity and Bandwidth
Network backhaul must have sufficient capacity and bandwidth to handle the aggregate traffic generated by one or more 100G connections. This includes accommodating normal data transfer rates and potential bursts of high-speed data. The network should provide low latency and high throughput to ensure efficient data transmission.
Network Architecture
The overall network architecture and design play a significant role in supporting 100G networking. This includes considerations such as deploying appropriate routers, switches, and other networking equipment capable of handling high-speed data flows.
All components, such as optical transceivers, should be compatible. Consult your network switch manufacturer’s compatibility matrix to confirm.
Link Aggregation
The increased bandwidth capacity of a 100G network can result in enhanced performance. However, implementing Link Aggregation Control Protocol (LACP) on 100G switches, particularly with Multi-Chassis Link Aggregations (MLAGs) and additional layers of abstraction, can introduce added complexity. This can result in performance issues and requires more meticulous configuration.
Implementing SMB Multichannel in a 100G environment can contribute to more efficient utilization of the available resources and improved overall performance for file sharing and data access.
The ability of SMB Multichannel to establish multiple connections in parallel aligns well with the capabilities of a high-speed network. This parallelism can result in efficient use of the available bandwidth and improved performance, especially when dealing with large data sets. Optimized for Large Workloads:
In scenarios involving substantial data transfers, such as large file copies or data-intensive applications, SMB Multichannel in a 100G environment can help optimize connections and adapt to the high-speed networking capabilities, leading to improved responsiveness and reduced transfer times. While SMB Multichannel itself is not specific to a particular network speed, its benefits become more pronounced and impactful in environments with higher bandwidth capacities, such as those provided by 100G networks.
RDMA
At 100G and higher speeds, CPU overhead from network protocol processing can limit throughput. Remote Direct Memory Access (RDMA) reduces this overhead. See NFS over RDMA for NFS configuration.
Record Size Tuning
The increased bandwidth of 100G networks has the potential to expose performance bottlenecks that have limited impacts in 10G or even 40G environments. This means that optimization practices, such as record size tuning, can have a significant impact on network performance.
You should ensure that the record size for each dataset is in alignment with its I/O workload. To adjust record size, go to Advanced/Other Options on the Add or Edit Dataset screen.
For a detailed discussion of record size tuning, see Tuning Recordsize in OpenZFS from Klara.
Performance Testing
After completing the initial network configuration, you should obtain performance benchmarks and verify the configuration suits your use case.
Choose benchmark tests that closely resemble your real-world workload. Synthetic benchmarks may not give a full understanding of the performance characteristics of your system.
Disk Testing
While not strictly a networking concern, storage system disk benchmarking via fio (Flexible I/O tester) can help you evaluate if the system is optimally tuned for your intended use. For instance, systems that deal primarily with large files, such as data backup or media storage, benefit from a larger block size, while systems dealing primarily with small files, like documents or logs, prefer a smaller block size. Confirm that your local storage performance is functioning as intended before moving on to test network bandwidth.
Do not run fio tests with write or trim workloads against an active storage device.
See the fio documentation for all parameters and options.







