Get connected remotely to your TrueNAS SCALE with the WireGuard container – Simple to set up and share your resources from anywhere!
Lets start by having TrueNAS Scale on version 22 or later, the later the better and have a working SMB share that we want to access remotely off of your local network.
Head over to the left panel and select Apps. Within your Apps Select Available Applications
From here you will find the WireGuard container to install by searching for the App wg-easy
Select Install on the wg-easy app, and wait for the right side setup panel to appear.
Fill in the information according to your network and environment.
NOTES
- Make sure to fill in the Hostname or IP field – use you Dynamic DNS or Public IP here
- For Device Name – Make sure you use YOUR TrueNAS network interface name
- Keep Client IP Address Range the Default UNLESS it is the same as your current network
- CHANGE the UDP Port and Web Port accordingly to 51820 and 51821
Save your setting and wait for the container to become active.
We can now load the web interface and create a new user.
Once loaded select + New Client, Enter the name and select Create, then Download the .conf file by selecting the download icon.
Now move to your client machine that you would like to connect to TrueNAS with and download the WireGuard Client from here: https://www.wireguard.com/install/
Run the client installer, Once installed you will open the WireGuard application and have the option to import Tunnel(s) from file
Use this option to Import the .conf file downloaded earlier from the WireGuard Web Interface.
Once Imported you will see all the relevant information for the VPN connection and you should then be able to select Activate
For a few extra troubleshooting tips they are in the last half of the video above.
From here you should be enjoying a secure connection to your home network!