Before I setup any disks or ZFS pools, I want to make sure my networking is good. I should mention that my firewall/router is an OPNsense box that is allowing most of the network functionality. You’ll need OPNsense or similar to complete these tasks.
Give your TrueNas Scale host a name - a hostname specifically. I want to refer to the hostname when accessing the server rather than by IP address.
So my hostname is nas
and my domain is localdomain
- because OPNsense wants localdomain
instead of local
. Internally, I access my server now at https://nas
Once you get past the initial warnings about not having a valid certificate, I see this
I’ll take care of the valid certificate later. I just want you to see the URL is indeed https://nas
Now I want to change from DHCP to static IP addresses. Normally I’d use a reserved DHCP address, but I need to change to static in order to get more than one IP address assigned to the NIC (why, below). Also I changed the MTU size to 9000 while I’m there.
I’m going to need two IP addresses tied to the NIC because I’ll need two services on port 443. One for the TrueNas Scale interface, and one for the Nextcloud app.
Under System Settings → General, beside GUI, click Settings.
Under Web Interface IPv4 Address, I’m only going to select one IP address (192.168.30.15) and also enable the HTTP → HTTPS Redirect. These settings will ensure that the TrueNas web GUI will only listen on 192.168.30.15 on ports 80 and 443 and will redirect 80 to 443. This also means that I can use 192.168.30.16, ports 80 and 443 for Nextcloud.