Initial Configuration of TrueNAS Scale

Network Settings

	<p>Having completed the <a href="http://192.168.0.55/wordpress/index.php/2024/03/20/installing-truenas-scale/">initial install</a> and rebooted the device you will again be presented with the GRUB boot menu.</p>		
		<style>/*! elementor - v3.21.0 - 18-04-2024 */

.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=".svg"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}

GRUB bootloader version 2.06-13 displaying TrueNAS Scale GNU/Linux 23.10.2 as the main bootable entry.
GRUB bootloader interface highlighting the TrueNAS Scale operating system as the selected boot option.


Once the device has rebooted you will be faced with this screen:  

Console setup screen displaying network configuration options and web user interface addresses for TrueNAS.


The next step is to configure the network options and give the server a fixed IP address. This can be achieved from the console but it is much easier from the GUI. In your favourite web browser enter the  URL in the console mesage in my case 192.168.0.63. You may get a certificate worning at this point. Just ignore this and continue.



Login screen for TrueNAS SCALE featuring a username and password field, with a night sky background and a reminder to switch to HTTPS for secure access.


The username is admin and the password the one you entered earlier. Once logged in select Network from the main menue on the left. Here you can see that I have 2 available network interfaces one of which has the IP v4 address of 192.168.0.63 and two IP v6 Addresses. Also in the Global Configuration you can see thaty the IP v4 Nameserver is 192.168.0.2 and the default gateway is 192.168.0.1.



TrueNAS SCALE's network configuration interface displaying network interfaces with IP addresses and global settings including nameservers and default route.


Click on the pencil next to the active network interface, in this case eno1. Deselect DHCP and then click Add. You need to identify an unused IP address on your network. In a console you could use Ping for this. It should be an address that is not included in your DHCP range. I have chosen 192.168.0.20 with the CIDR network mask of /24. This should match the CIDR in your existing network settings.



TrueNAS SCALE's network configuration interface displaying network interfaces with IP addresses and global settings including nameservers and default route.



TrueNAS SCALE interface settings dialog with fields for 'Name', 'Description', DHCP toggle, IPv6 autoconfiguration checkbox, and MTU value.



Edit Interface window in TrueNAS SCALE with filled-in interface name 'eno1', DHCP and IPv6 autoconfigure options, MTU setting, and an IP alias configured.


You will then be propted to Register Default Gateway. This will probably the Default Route above.  Enter the gateway address and click Register. You will then be propted to Test Changes". Once you click Test Changes the IP address of the GUI will change to the new interface so befor you do this open a new tab in your browser and point it to the new Ip address. Obviously there is nothing at this address yet so you will get the Connection timed out error. Now revert to the previous tab and click Test Changes. In the popup box click the coinfirm box and then Test Changes. Now switch to the new tab and refresh if necessary.



TrueNAS SCALE notification for registering a new default gateway, with fields showing the current and the option to input a new IPv4 default gateway address.



Prompt to test unapplied network interface changes with buttons for 'Test Changes' for 60 seconds or 'Revert Changes' in TrueNAS SCALE.



TrueNAS SCALE dialog box asking for confirmation to test network interface changes, with a warning that network connectivity may be interrupted.


If all has gone well you will be prompted to login. Once you have looged in you can save the new network settings.



Dialog box in TrueNAS SCALE indicating that network interface changes have been temporarily applied for testing, with options to cancel or save the changes.


Ok, so the default route is now set but there are no name servers. Return to Network and click the Settings button in the Global Configuration pane.



Global Configuration section in TrueNAS SCALE with settings for nameservers, default route, hostname, domain, and service announcement options.


This will reveal another pane with many global options.



Editing form for TrueNAS SCALE's global configuration with fields for hostname, domain, DNS servers, default gateway, and service announcement settings


As you can see I have entered 192.168.0.2 which is the IP address of my Pi-Hole that I use for DNS. If you have a local DNS use that. Other alternatives are:

Google 8.8.8.8 and 8.8.4.4

Cloudflare 1.1.1.1 and 1.0.0.1

Cloudflare also offers DNS facilities with filters for:

Malware 1.1.1.2 and 1.0.0.2

Also malware and adult content 1.1.1.3 and 1.0.0.3

Note that having more than 1 DNS is not primarily for redundancy but load balancing. So using 1.1.1.1 and 1.1.1.3 would sometimes query 1.1.1.1 and sometimes 1.1.1.3 ther is no control over which DNS is used.

Have a look at some of the other options in this pane and then click Save.


Other General Settings. Localization, Email and SMTP


Go to System Settings > General and check that the localisation settings are correct. If not click Settings and make the corrections.



TrueNAS SCALE localization settings screen with options to select language, console keyboard map, timezone, date format, and time format.


The easiest way to set up TrueNAS Scale to send email is to use Gmail. It is probably worth setting up a Gmail account just for TrueNAS Scale and other systems that need to send email. Go to System Settings > General and click the Email > Settings button. At this point you can enter the SMTP settings for your server or, my prefered option, click the option for Gmail OAuth.



Email configuration screen in TrueNAS SCALE with the option to use Gmail OAuth selected and a button to log in to Gmail for OAuth setup.


This will open a challenge window click Proceed and then allow TrueNAS Scale to process email through Gmail. You may have to scroll down to clicl Allow. If you click Send Test Mail at this point you will get the warning.

No e-mail address is set for root user or any other local administrator. Please, configure such an email address first.

So we need to configure an email address for a local administrator. To send email the user must have the ability to login. We dont want to allow login for root so we will use the admin user which has password login. (We will change this to public/private key later.)

At the main menu select Credentials > Local Users then select the dropdown button for the admin user.



TrueNAS SCALE user list showing detailed information for 'admin' including GID, home directory, shell, and sudo permissions.


Now Click the Edit button and enter the Email address you wish any messages sent by TrueNAS to come from.  Make sure to Save your changes!



A user interface window titled 'Edit User' showing fields for full name, username, email, and new password entry, with the 'Disable Password' toggle currently switched off.


Now go back to System Settings > General and click the Email > Settings button. Click Send Test Mail and you should recieve a test email. If not check your settings match above

Next, ensure that your login to TrueNAS Scale is secure.