Enable Rsync from outside of LAN

Enable Rsync from outside of LAN

Postby draggen » Tue Nov 15, 2016 8:24 pm

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
draggen
 
Posts: 5
Joined: Thu Aug 04, 2016 8:28 pm

Re: Enable Rsync from outside of LAN

Postby Jocko » Tue Nov 15, 2016 8:53 pm

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.
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Enable Rsync from outside of LAN

Postby draggen » Tue Nov 15, 2016 9:34 pm

That works perfectly, thanks!
draggen
 
Posts: 5
Joined: Thu Aug 04, 2016 8:28 pm


Return to Development

Who is online

Users browsing this forum: Bing Bot and 3 guests