Skip to content

Instantly share code, notes, and snippets.

@zenxedo
Last active September 20, 2024 16:02
Show Gist options
  • Save zenxedo/bd25176e93e87380b0cdefe8d11dfa25 to your computer and use it in GitHub Desktop.
Save zenxedo/bd25176e93e87380b0cdefe8d11dfa25 to your computer and use it in GitHub Desktop.

TreuNAS Basic Settings for Fresh Install

These are the basic settings I use on a fresh install of FreeNAS. This is for my personal use, so some configurations may not apply to your situation. I made it public in case it helps others.

ACCOUNTS

  • Add Email Address to Root User
    Add a valid email address to the root account for alerts and notifications.

SYSTEM

  • General:

    • Select the FreeNAS certificate.
    • Check "WebGUI HTTP -> HTTPS Redirect".
    • Set HTTPS port to 443.
    • Change Timezone to your local timezone.
  • Advanced:

    • Enable "Show Console Message".
  • Email:

    • Set up Gmail SMTP using port 587 with TLS.
  • Alert Services:

    • Add your email address for alert notifications.
  • SSH Connections:

    • Generate SSH key pairs.
    • Store the keypairs in a secure place.
    • Add the public key to the desired user profile for secure SSH access.

TASKS

  • Cron Jobs:

    • Add a report.sh script to the cron job, set the schedule to 0 06 2,6,11,16,21,26 * *.
  • SMART Tests:

    • Schedule Long tests on days 1, 15.
    • Schedule Short tests on days 6, 11, 21, 26.
  • Snapshots Task:

    • Not done yet.
  • Scrub Tasks:

    • Set scrubs to run on days 2, 17.

NETWORK

  • Global:

    • Not done yet.
    • Default IPv4 gateway: 10.68.69.1.
    • Domain: yourdomain.com.
    • Nameservers: 1.1.1.1, 8.8.4.4, 10.68.69.1.
  • Interfaces:

    • Add igb0 interface and set to DHCP.
    • Add igb1 interface and set to DHCP.

SHARING

  • Unix Shares:

    • Create an NFS share at /mnt/myVol/appsNFS.
    • Check "All Directories".
    • Advanced settings: mapall to root:wheel.
  • Windows Shares (SMB):

    • Create an SMB share for media and shares.
    • Allow guest access.
    • Not done yet: tighten security for SMB shares.

SERVICES

  • NFS Service:

    • Select "Allow Non-root Mount".
    • Enable NFSv4.
    • Use NFSv3 ownership model for NFSv4.
  • Smart:

    • Add your email for alerts.
    • Set critical temperature to 41°C.
    • Set temperature difference threshold to 5°C.
  • UPS:

    • Select the appropriate driver.
    • Set shutdown timer to 350 seconds.
    • Set shutdown command to shutdown -p now.
    • Warning time set to 60 seconds.
    • Add password and email address, and enable the service.
  • Enable the following services to Auto-Start:

    • SMB
    • NFS
    • SSH
    • UPS

Not Done Yet

  • Fix attach boot mirror (check forum post and make issue).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment