Page 1 of 1

Rsync over internet acces denied

PostPosted: Fri Nov 20, 2020 3:28 pm
by chatboubou
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

Re: Rsync over internet acces denied

PostPosted: Fri Nov 20, 2020 4:06 pm
by Jocko
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

Re: Rsync over internet acces denied

PostPosted: Fri Nov 20, 2020 5:40 pm
by chatboubou
Thanks a lot for your fast return :-)
And good job again :-)