Check your system network settings
Specifically:
Do you configure the IP address of your TrueNAS with DHCP? In that case can other systems that also use DHCP use the Internet? Compare what is configured on a system that can use the Internet and the TrueNAS.
If you don't use DHCP check if you configured a default gateway and DNS server.