All the advice you need to safely (as safe as you can be) open up remote access to your FreeNAS has been given but the information has become a bit scattershot in this thread. Let me help you and sum it for you:
1) choose to use VPN or SSH (google how to set this up, thousands of threads)
2) if you are going with SSH, only use private/public key authentication, NOT PASSWORDS (this is usually covered in the guides you will find in setting up SSH)
3) if you are going with SSH, then use a non-standard port. SSH by default uses port 22 but you can easily change this by setting up a port forward in your router (or in whatever router the freenas box is sitting behind). You can really pick any port that doesn't conflict with a port that another service is using (to avoid conflicts, just pick any port north of 1200)
done. I haven't setup VPN for remote access but some say it is easier than setting up SSH.