Intent: Use rsync via tailscale to backup my data drives to an offsite machine.
I have two machines running omv7
1) home NAS
2) backup NAS
When both machines are on my LAN the RSYNC service works perfectly.
I use a Remote PUSH with the following Destination server
root@192.168.1.99::RBackups
( I know using root isn't recommended, I just wanted to make sure I wasn't encountering permissions issues.)
I am running tailscale in a docker container on each machine with the following yaml
services:
tailscale:
restart: unless-stopped
image: tailscale/tailscale:latest
network_mode: host
environment:
- TS_AUTHKEY=tskey-auth-XXXXXXXXXXXXX
- TS_ACCEPT_DNS=true # accept DNS
- TS_HOSTNAME=omvXXXXXXXXX
- TS_STATE_DIR=/var/lib/tailscale # location in container for persistent data
volumes:
- /mnt/main/docker/data/tailscale:/var/lib/tailscale
Both omv servers appear on my Tailnet and are reachable from my home pc via the Tailscale ip address.
Both OMV machines are reachable on their Tailscale IP address, and I can get to the regular OMV login page.
Ping from cmd prompt also work.
(redacted Tailscale ip's below)
BUT
When I change the rsync destination
from root@192.168.1.99::RBackups
to root@100.xx.xx.xx::RBackups
the rsync fails with the following:
Please wait, syncing xxxxxxxxxx/Backups/> to <root@100.xx.xx.xx::RBackups> ...
rsync: [sender] failed to connect to 100.xx.xx.xx(100.xx.xx.xx): Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(139) [sender=3.2.7]
ERROR: The synchronisation failed.
END OF LINE
when I SSH into either omv server, I cannot ping the other omv server on their Tailscale IP addresses.
Ping from my home_pc works to both Tailscale IP addresses.
Questions:
Is there a config setting in my docker config that I'm missing?
Am I going about this the wrong way?
I've seen the Wireguard plugin mentioned, but I would prefer using docker for a few reasons:
I will be moving the remote server between a couple of family members homes.
I don't want to mess around with port forwarding and dynamic dns at multiple locations
I like the idea of using a docker container to keep my base omv install minimal.
So if i want to change dump a service later, I just drop the container.