A Quick Guide to Thecus Nsync over Internet Contents

Transcription

A Quick Guide to Thecus Nsync over Internet Contents
A Quick Guide to Thecus Nsync over Internet
Contents
1. Overview....................................................................................................................................................2
2. Setup Thecus NAS on Internet ..................................................................................................................2
2-1 Setup DMZ for Thecus NAS...........................................................................................................3
2-2 Setup Port Forwarding for Thecus NAS Mode ...............................................................................3
2-3 Setup Port Forwarding for Legacy FTP Server Mode.....................................................................4
3. Nsync from an N5200 (172.16.66.207) to another N5200 (nsync.no-ip.org) ...........................................5
3-1. Setup Target N5200 (nsync.no-ip.org, where backup data will be stored) ....................................5
3-2. Setup Nsync N5200 (172.16.66.207, where is the file source) ......................................................8
3-3. Restore Backup Data ....................................................................................................................17
4. Nsync from an N5200 (172.16.66.207) to an FTP Server (nsync.no-ip.org) ..........................................21
4-1. Setup Target FTP Server (nsync.no-ip.org, where backup data will be stored) ...........................21
4-2. Setup Nsync N5200 (172.16.66.207, which is the file source) ....................................................21
4-3. Restore Backup Data ....................................................................................................................25
5. Nsync Troubleshooting............................................................................................................................26
5-1. Filename and FTP encoding.........................................................................................................26
5-2. Incremental Backup......................................................................................................................26
5-3. Restore Nsync Task ......................................................................................................................26
5-4. Data Security on Target Server.....................................................................................................26
Thecus Nsync over Internet Quick Guide
1/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
1. Overview
Nsync is a folder-to-folder level synchronization / backup function brought by Thecus NAS.
The backup task could be scheduled periodically or manually start it whenever you want.
Basically you will need a target machine to store the backup data. Either another Thecus
NAS or a traditional FTP server would be okay.
2. Setup Thecus NAS on Internet
Here we use Thecus N5200 for demo. There are many ways to publish N5200 on Internet.
You may have a public static IP for your N5200, however, no matter you have public IP or
dynamic IP, we would recommend you connecting your NAS to a IP router. One of the most
benefits is IP router is a simple firewall itself and could interdict most internet attacks. And no
matter you are using ADSL, ISDN, HTTB, Ethernet, or Cable Modem, you only need to
modify your IP router’s setting and it is no necessary to do modify on NAS. After you
connecting Thecus NAS to IP router, there are two easy ways to publish it on internet, one is
DMZ and another is port forwarding.
Here we use an IP router with DD-WRT for demo.
Configuration of the Thecus N5200 (nsync.no-ip.org)
WAN: 192.168.1.100
LAN: 192.168.2.254
Connect WAN to IP router.
Thecus Nsync over Internet Quick Guide
2/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
2-1 Setup DMZ for Thecus NAS
In computer security, a demilitarized zone, named after the military usage of the term and
normally abbreviated to DMZ. The purpose of a DMZ is to add an additional layer of security
to an organization's Local Area Network (LAN); an external attacker only has access to
equipment in the DMZ, rather than the whole of the network.
In IP router, the only setting is in DMZ session, fill in IP (192.168.1.100) and apply setting.
This is the easiest way, however, we WON’T suggest user to set NAS as DMZ for security
issue. We would like recommend as “Thecus NAS Mode” (session 2-2) or “Legacy FTP Sever
Mode” (session 2-3) by port forwarding.
2-2 Setup Port Forwarding for Thecus NAS Mode
Setup port forwarding function in IP router, we need to open a TCP port 1194 to N5200’s
WAN IP.
Thecus Nsync over Internet Quick Guide
3/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
2-3 Setup Port Forwarding for Legacy FTP Server Mode
Setup port forwarding function in IP router, we need to open a TCP port 20,21 to N5200’s
WAN IP. If your IP router can’t assign it as TCP of UDP, you may left it as both, which means
TCP&UDP. In different IP router, there may be display as some other format.
If you need remote login N5200 for management purpose, you may also open port 80 for
HTTP, port 443 for HTTPs. In most case, port 80 may be used by IP router, therefore we set
port 3128 or any other and forward to port 80. We will suggest using HTTPs instead of HTTP
via internet for security.
Thecus Nsync over Internet Quick Guide
4/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
3. Nsync from an N5200 (172.16.66.207) to another N5200 (nsync.no-ip.org)
3-1. Setup Target N5200 (nsync.no-ip.org, where backup data will be stored)
1) N5200 (WAN 192.168.1.100) is placed at home, and connected to an IP router with
ADSL, using dynamic DNS as nsync.no-ip.org. Lots of ISP providing DHCP for internet
service, which means every time we connect to internet, we will get a different IP, and if
we need to connect to the service via internet, we have to know the FQDN or IP.
Here we use an IP router with DD-WRT for demo. Since we are using PPPoE and get an
dynamic IP, therefore we need to apply a dynamic DNS service such as no-ip.org or
dyndns.org. There are many dynamic DNS provider, and we choose no-ip.org for demo.
2) The target N5200 of course should have RAID created. In addition, create a user account
with writable permission of Nsync folder, say user1. Add user1 into the writable list of
Nsync folder ACL. [Storage / Folder]
Thecus Nsync over Internet Quick Guide
5/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Thecus Nsync over Internet Quick Guide
6/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
3) Nsync Target setting: check Nsync Target Server as enabled. [Network / Target]
Thecus Nsync over Internet Quick Guide
7/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
3-2. Setup Nsync N5200 (172.16.66.207, where is the file source)
1) At first we need to check what IP address of nsync target (nsync.no-ip.org) is. Lots of ISP
providing DHCP for internet service, which means every time you connect to internet
you will get a different IP. If you have a static IP on internet, you may skip to next step, “2)
Add a new Nsync task”.
As in session 3-1, we apply no-ip.org for our DDNS service. Here we use Windows XP
for as our operating system. From Windows’ “Start” -> “Run”
Enter “cmd” and click “OK”
Thecus Nsync over Internet Quick Guide
8/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
In DOS box, input “nslookup nsync.no-ip.org” and press enter, we will find the IP is
“61.230.3.25” now.
Thecus Nsync over Internet Quick Guide
9/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
2) Add a new Nsync task. [Storage / Nsync]
Thecus Nsync over Internet Quick Guide
10/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Task Name: give the task a name or use default Nsync_task_1.
Target Server Manufacturer: Thecus NAS means the target file server is a Thecus
N5200 and you prefer a secure transfer. In case you want to backup
files to a traditional FTP server or to a Thecus N5200 with non-secure
transfer, please choose Legacy FTP Server. Please note secure
transfer takes about 4 times longer to complete the task, compared to
non-secure transfer.
Target Server IP address: 61.230.3.25 is now the IP address of Target N5200
(nsync.no-ip.org) , not Source N5200.
Source Folder: since we want the share folder test on Source N5200 periodically
backed up, we choose test as the Source Folder.
Authorized Username on Target Server: to put files on to the Target N5200, you
should have a user account that has writable permission to the Nsync
folder on it. Please note that user account user1 is on Target N5200
(nsync.no-ip.org, 61.230.3.25), not on Source N5200 (172.16.66.207).
Thecus Nsync over Internet Quick Guide
11/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Test Connection: to make sure the authorized account works well. It will show IP as
10.241.220.1 if choose “Thecus NAS” since it will make a VPN
connection.
Schedule: scheduling the task, if necessary.
2) Apply Bandwidth Limit to the task and start it.
You may find the “Bandwidth Setting” is gray and inability to select. If you need to limit
the bandwidth for nsync, go to [Network / WAN], and enable [IP Sharing Mode].
Thecus Nsync over Internet Quick Guide
12/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
After you enable [IP Sharing Mode], back to nsync menu and you will find “Bandwidth
setting” is ready for you now.
Thecus Nsync over Internet Quick Guide
13/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
3) The status is indicated on Last Status column. By clicking it, you will see the details.
Thecus Nsync over Internet Quick Guide
14/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
If you click “in progress” button, you may see the task status window.
Thecus Nsync over Internet Quick Guide
15/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Thecus Nsync over Internet Quick Guide
16/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
3-3. Restore Backup Data
1) Check the task you want to restore, and then click Restore button.
Thecus Nsync over Internet Quick Guide
17/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
2) The status is indicated on Last Status column. By clicking it, you will see the details.
Thecus Nsync over Internet Quick Guide
18/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
After restore success, you may see Last Status shows “Restore success.”
If you click on “Restore success.” the pop up window will display Nsync log.
Thecus Nsync over Internet Quick Guide
19/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Thecus Nsync over Internet Quick Guide
20/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
4. Nsync from an N5200 (172.16.66.207) to an FTP Server (nsync.no-ip.org)
4-1. Setup Target FTP Server (nsync.no-ip.org, where backup data will be stored)
1) A user account that has full permissions to his FTP login folder is sine qua non. In case
the permissions are wrong setting, Nsync won’t work well.
4-2. Setup Nsync N5200 (172.16.66.207, which is the file source)
1) Add a new Nsync task. [Storage / Nsync]
Thecus Nsync over Internet Quick Guide
21/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Task Name: give the task a name or use default. Here we name it as Nsync_task_2.
Target Server Manufacturer: Legacy FTP Server means the target file server is a
traditional FTP server. In case it’s another N5200 but we want a
non-secure transfer to speed up the task, click Legacy FTP Server too.
Target Server IP address: 61.230.5.114 is now the IP address of Target FTP Server
(nsync.no-ip.org) , not Source N5200.
Source Folder: since we want the share folder test2 on Source N5200 periodically
backed up, we choose test2 as the Source Folder.
Authorized Username on Target Server: to put files on to the legacy FTP server, you
should have a user account that has full permission to the login folder.
Please note that user account user1 is on the target FTP Server
(nsync.no-ip.org), not on Source N5200 (172.16.66.207).
Test Connection: to make sure the authorized user account works well.
Schedule: scheduling the task, if necessary.
2) Apply Bandwidth Limit or not to the task and start it.
Thecus Nsync over Internet Quick Guide
22/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
3) The status is indicated on Last Status column. By clicking it, you will see the details.
Thecus Nsync over Internet Quick Guide
23/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
Thecus Nsync over Internet Quick Guide
24/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
4-3. Restore Backup Data
1) Check the box of the task you want to restore, and then click Restore button.
2) The status is indicated on Last Status column. By clicking it, you will see the details.
Thecus Nsync over Internet Quick Guide
25/26
27/May/2009
A Quick Guide to Thecus Nsync over Internet
5. Nsync Troubleshooting
5-1. Filename and FTP encoding
Basically Nsync uses FTP to synchronize files and subfolders to another FTP server. So
you have to make sure the file and folder names are without strange characters such as “/ \ :
* ? ” < > | [ ] = + ; , ‘ ”. In addition, both Nsync Source N5200 and Nsync Target server should
have the same FTP encoding. In case not, the restored files and subfolders may have their
names changed.
5-2. Incremental Backup
Nsync task will create an incremental backup on Target Server. It means if you deleted
subfolder A and add B subfolder on the Source N5200 and then executed the task, the
backup subfolder A will existed still, and subfolder B will copy to Target Server, which means
system would keeping all of data on Target Server, and copy new add or changed file while
task executed to saving bandwidth & time, also a complete file back on the Target Server.
5-3. Restore Nsync Task
Restoring an Nsync task will restore the whole folder to the last status. It means all files
synchronized to Target Server will be completely copied back to the source folder. Not only
changed files are copied.
5-4. Data Security on Target Server
In case the synchronized files on Target Server were modified or deleted by other user
accounts that have full permission to the backup folder, the Nsync restore process will copy
modified files back and may miss some deleted files.
EOF
Thecus Nsync over Internet Quick Guide
26/26
27/May/2009