NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Yorg
Jan 30, 2013Aspirant
Rsync and remote IP problem
Hi,
I hope you guys can help.
CONTEXT:
I have a readynas 2120 Ultra 2 at home, and a Qnap at work.
The Qnap is on our network at work, and in windows explorer where is shows the network it has the name of 'Cad-9'. (Other PCs have Cad-12, Cad-20 etc.)
There is a shared directory (and all of its subdirectories) in Cad-9 that is our central repository for all work stuff and no-one saves to their PC hard drive or anywhere else, so if we have a catastrophe...
This shared directory is named Cad-9/la/
Cad 9 (the Qnap) has an internal IP of 192.168.1.3.
Port 873 on the adsl router at work is forwarded to this IP.
Rsync is checked as a Service in Frontview.
The 'backup' share on the readynas is set up for rsync with read/write access.
OBJECTIVE:
Specifically, I want to backup Cad-9/la and all its subdirectories offsite onto the new readynas at home using Rsync. I have made an 'la' directory in the 'Backup' share for the data replication.
PROBLEM:
Either way - trying to configure the Qnap to push or pull, or the Netgear to push or pull - it pretty much falls over at the setup of the backup job.
For example:
In Frontview whilst sitting at home I try to add a new backup. Under 'Select Backup Source' I choose 'Remote: rsync server' from the dropdown.
I have used 'whatismyip.com' while at work, to find the external IP for work - let's say this is 203.45.xxx.yyy
For 'HOST' and 'PATH I have tried a few ways:
Option 1
Host 203.45.xxx.yyy
Option 2
Host 203.45.217.247::Cad-9
Option 3
Host 203.45.217.247::la
Option 4
Host 203.45.217.247
Path Cad-9\la
The list goes on.
Keep getting error:
"Error connecting to 203.45.xxx.yyy"
Help!
Could it be my ISP has some kind of setting making this connection a problem? - I have a remote desktop application that works fine and allows me to work with work machines from home, so that particular kind of connection is possible.
How can I test the ability to connect to my work router and through to the NAS other than using the test in Frontview?
What about passwords? ( I haven't set any under rsync under the 'backup' share. Any others should be checking?)
Thanks in advance.
I hope you guys can help.
CONTEXT:
I have a readynas 2120 Ultra 2 at home, and a Qnap at work.
The Qnap is on our network at work, and in windows explorer where is shows the network it has the name of 'Cad-9'. (Other PCs have Cad-12, Cad-20 etc.)
There is a shared directory (and all of its subdirectories) in Cad-9 that is our central repository for all work stuff and no-one saves to their PC hard drive or anywhere else, so if we have a catastrophe...
This shared directory is named Cad-9/la/
Cad 9 (the Qnap) has an internal IP of 192.168.1.3.
Port 873 on the adsl router at work is forwarded to this IP.
Rsync is checked as a Service in Frontview.
The 'backup' share on the readynas is set up for rsync with read/write access.
OBJECTIVE:
Specifically, I want to backup Cad-9/la and all its subdirectories offsite onto the new readynas at home using Rsync. I have made an 'la' directory in the 'Backup' share for the data replication.
PROBLEM:
Either way - trying to configure the Qnap to push or pull, or the Netgear to push or pull - it pretty much falls over at the setup of the backup job.
For example:
In Frontview whilst sitting at home I try to add a new backup. Under 'Select Backup Source' I choose 'Remote: rsync server' from the dropdown.
I have used 'whatismyip.com' while at work, to find the external IP for work - let's say this is 203.45.xxx.yyy
For 'HOST' and 'PATH I have tried a few ways:
Option 1
Host 203.45.xxx.yyy
Option 2
Host 203.45.217.247::Cad-9
Option 3
Host 203.45.217.247::la
Option 4
Host 203.45.217.247
Path Cad-9\la
The list goes on.
Keep getting error:
"Error connecting to 203.45.xxx.yyy"
Help!
Could it be my ISP has some kind of setting making this connection a problem? - I have a remote desktop application that works fine and allows me to work with work machines from home, so that particular kind of connection is possible.
How can I test the ability to connect to my work router and through to the NAS other than using the test in Frontview?
What about passwords? ( I haven't set any under rsync under the 'backup' share. Any others should be checking?)
Thanks in advance.
9 Replies
Replies have been turned off for this discussion
- etonLuminaryHave you enabled rsync for the shared destination volume in Frontview?
Or you could do it all from terminal :)
My guide will work for that as well: viewtopic.php?f=65&t=69157 - StephenBGuru - Experienced UserIf you have a corporate firewall in place, you may not be able to do this at all without modifying its rules. Though it will likely be easier if you "push" the backup from the qnap.
In the push scenario you need a dynamic dns name for your home router, and you would need to forward the rsync port from your home router to the ultra. If you are using rsync over ssh, that is (I believe) port 22. Regular rsync is port 873. The rsync log on (username, password) would need to be set to something that allows access to the ultra share. (You'd also have to configure rsync access for the ultra's share, and install the ultra's public key on the qnap).
The ultra's ftp server will also accept secure ftps connections (using "explicit tls"), so that is another protocol you could try. If the qnap has an incremental ftp backup mode, then ftp might be the way to go. Opening port 22 to the NAS does create some security risks (and might be blocked by your corporate firewall or your ISP). Another benefit of FTPS is that you can test the connection from a Windows or Apple machine fairly readily, using an FTP client like FileZilla.
Also, getting the initial backup done will be much faster if you bring the ultra-2 to your office.
An alternative to all of this is to use cloud backup (CrashPlan, Readynas Vault, Egynte, etc). - YorgAspirantYes, I'd like to use SSH, but thought I'd just get it working first.
Will try the push from Qnap, but in the meantime, what is the correct syntax for host, path if trying to pull from Frontview to the readynas? (I tried those options but I'm at a loss.)
And is there another way of testing an rsync connection between home and office - not using the NAS devices - to see if the connection over the internet is available at all?
As for terminal - I think that's beyond me.
And eton, do you mean the shared destination 'directory''? Not sure what the 'volume' is.
Cheers - StephenBGuru - Experienced UserThe normal syntax is to set the backup source to "Remote: Rsync Server", and then put the IP address in the host field. Then put the shared folder name in the path - in your case that would be la (no slashes or Cad-9, just la).
Though I would be very surprised if this works. Your company's router normally won't allow this access from the internet, you would need to change it to forward port 873 to the NAS.
You could attempt to diagnose the connection by installing DeltaCopy (a windows freeware version of rsync) on your home and work PCs. Is there someone else in your office who has deeper networking skills who could help you?
BTW, you are correct, eton should have said destination folder or directory. "volume" is a logical disk drive. If you are using XRAID2 on your ultra, your volume is "c" - you can see that if you access the NAS folders using the NAS "admin" log on and password. - YorgAspirantOK, thanks.
Yes I have already forwarded to 873.
Will give it a try. - StephenBGuru - Experienced UserBTW, of course you can't diagnose with deltacopy unless you change the forwarding rule in the company router.
If you can bring the ultra into the office, you could get the basic rsync stuff working w/o the complexity of the internet connection. - YorgAspirantAh yes.
One more thing - there are currently two shares on the ultra: backup and media. (Default from supplier).
The la folder is in backup, as in backup\la.
If the 'host' is the IP address, and the 'path' is 'la', where do I put 'backup'? - StephenBGuru - Experienced UserThe path I was talking about was the remote server (qnap since you are pulling files).
For the destination (ultra) the simplest thing to do is create a new la share. - YorgAspirantSorry, of course, got confused.
OK a new la share if i try the other way.
Thanks.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!