FreeNAS Setup
This article will cover the basic setup of a FreeNAS server, from the point of a finished install, to creating your first "raw backup" (as I call it) SFTP user.
After you have installed FreeNAS, log into the web gui, and do the following:
*many if not all of these changes will require clicking save or somethig similar
- Under System->Information, change your hostname
- Under Network->Global Config, your hostname/domain should reflect the same
Under System->General, set your Timezone
- Set you gateway and DNS
- Under Interfaces, add your current interface (use ifconfig in shell if you do not know the name) and set a static IP
- If you didn't mirror the boot drive alread:
Under System->Advanced, check "Show console message in the footer"
- Go to System->Boot->Status
- Click freenas-boot, then attach
- Select the drive you want to mirror the current OS volume to
- Under Email, set:
- From to strg03@verticalcomputers.com, or whatever your hostname is @
- Use our ex1 server IP of mail.verticalcomputers.com
- Port 25
- TLS
- Check Use SMTP Auth
- Use a username and pass that can send/recieve email on our domain
*I use my email, though we should move away from this and use a general one for several reasons- Under Accounts, change the root user email to servers@verticalcomputers.com
- Go back to Email and Test to confirm email is working
*you may need to add your server under the scop of the Receive Connector "Default Frontend EX1" on the Exchange server (also do on other's like EX2, etc.)- Before we can finish setup, at least one volume needs to be created
No that we have a volume, go back to System->System dataset pool, and make sure your volume is selected and hit save
- Go to Storage->Volumes->Volume Manager
- Call this first volume vol0
- Create them in whatever config (if you just click the + next to the available disks, FreeNAS will choose the optimal format, though that is not always the desired config)
- Go to Updates and click Check Now, and install the updates
*You should be on a "STABLE" train (vs Nighties). If not, you can switch trains on that page.- Check for updates again after the server installs the first set
- Go to Services->SSH and click the setup icon and check "Login as Root with password", then turn SSH on if it wasn't already.
- Now, create a new dataset under your main volume (or whichever volume)
- Go to Storage and click on vol0 (you'll likely have to click the 2nd vol0)
- Click the Create Dataset Icon
- Call it "WhateverPersonsBackup" (I'll usually make a top Dataset called DuplicatiBackups, then each companies/persons under that) and create
- Create a new user under Accounts->Users
- Make Username and Full Name the same
- Blank out email
- Set Password
- Set Home Directory to be location of dataset we just made
- Go Back to dataset and Change Permissions
- Set Owner to the user we just made
That's the end of a basic FreeNAS setup. The user created can now use SFTP on the server. This works great as an encrypted Duplicati backup destination.
這篇文章有幫助嗎?
Also Read
Powered by WHMCompleteSolution