Page 1 of 1

Enable Rsync from outside of LAN

PostPosted: Tue Nov 15, 2016 8:24 pm
by draggen
Hi,

The /etc/rsyncd.conf contains a hard-coded line for only allowing connections from LAN, e.g:
hosts allow = 192.168.0.0/24,127.0.0.1

I'm aware of the security implications of loosening this, but I have a NAS connected through LAN-to-LAN VPN and would like to enable Rsync from my local LAN to the remote LAN. Where in the firmware do I look for the generation of rsyncd.conf so I could change this, if possible?

Thanks

Re: Enable Rsync from outside of LAN

PostPosted: Tue Nov 15, 2016 8:53 pm
by Jocko
Hi draggen,

Instead of editing some files of the firmware, I suggest to use the attached shell script which will edit rsyncd.conf file.

You need to store it in the cron-boot subfolder of the share fvdw. And of course you need to enable the boot jobs feature (use its related menu).
Edit the attached file to set the additional IP (set in the variable LAN2)
Then at each booting, the rsyncd.conf will be edited.

Of course if you change some settings on rsync daemon, you have to run manually the script.

Re: Enable Rsync from outside of LAN

PostPosted: Tue Nov 15, 2016 9:34 pm
by draggen
That works perfectly, thanks!