Rsync over internet acces denied

Rsync over internet acces denied

Postby chatboubou » Fri Nov 20, 2020 3:28 pm

Hello Team.

In first thanks for the wonderfull works this cutom os is really so good :-)

I have a little problem with the rsync.

i have a Synology nas and a big 5 nas with the firmware fvdw-sl
The synology is the source and the lacie is the rsync server
I did some tests locally and the rsync works perfectly

But with a nas on different site via internet i have an error

I use the 873 port and the rules is good on my internet box

in the log i have

2020/11/20 16:13:49 [2853] connect from lfbn-lyo-1*4-7.w*-202*wan*o*(86.*.*.*)
2020/11/20 16:13:49 [2854] rsync denied on module test from lfb*yo-1-2*-7.w8*-202.abo.w*doo.fr (86.*.*.*)


I think the connection goes well because I see the list of backup modules

basic I have not activated the ssh only the r sync port

it is possible that the connection outside the lan is blocked byt the lacie ?


Thank you for your advice in advance
chatboubou
 
Posts: 7
Joined: Thu Sep 06, 2018 6:40 am

Re: Rsync over internet acces denied

Postby Jocko » Fri Nov 20, 2020 4:06 pm

Hi

Indeed there is a restriction set on the rsync server with fvdw-sl. In the help page you can read that :
Warning : as the rsync protocol is not safe (transfer flux without encryption) you should use it only on your LAN. By default, the connections from remote hosts are disallowed in the configuration.
If you want to use it across an Internet connection, you must use it via a remote shell connection (see the chapter "Use Rsync server via a remote shell connection").


If for you, it is not an issue, you can edit the file rsyncd.conf in /etc and change the line
Code: Select all
   #Client IP address allowed only from LAN address
   hosts allow = 192.168.1.0/24,127.0.0.1
(here it is an example if your lan subnet is 192.168.1.xx). So you have to add for example the wan ip of your remote lacie nas
And restart rsync daemon
Code: Select all
killall rsync
/usr/sbin/rsync --daemon


Please to note rsyncd.conf is overwritten at each time you start it from the firmware interface
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Rsync over internet acces denied

Postby chatboubou » Fri Nov 20, 2020 5:40 pm

Thanks a lot for your fast return :-)
And good job again :-)
chatboubou
 
Posts: 7
Joined: Thu Sep 06, 2018 6:40 am


Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 5 guests