Unable to connect to TimeMachine via VPN (Wireguard or Tailscale)? #173
-
Describe the BugHi, I often travel and would like my Macbook to backup to my Unraid TimeMachine share while I'm abroad. I'm fairly new to docker/unraid/networking, so excuse any incorrect terminology. I used the Community Apps tab within Unraid to add this docker container, it works great while at home. However, using '.local' isn't supported by either VPN when trying to connect to the share in Finder, so I have set 'Fixed IP address' in the Unraid container options to 192.168.1.27, as instructed here on the Unraid forum. At this point, the share continues to work internally. However, if I now enable Wireguard or Tailscale while outside of my home network, my Macbook is unable to connect to the share:
Here's a screenshot of the Unraid container settings, the docker run command is also detailed below + log. I must be missing something, any help would be really appreciated - thank you Expected BehaviorSuccessful connection to TimeMachine via Wireguard or Tailscale after setting Fixed IP Address. Steps to Reproduce
How You're Launching the Container
Container Logs
Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Can you manually connect to the Samba share using Finder when you’re on your VPN? Just curious if it is a routing problem when connected to the VPN. Not sure how well it’ll perform over a connection like that but then again, it’s not exactly the fastest over any network. |
Beta Was this translation helpful? Give feedback.
-
I am able to connect to Samba shares (such as: appdata, media) while Wireguard or Tailscale is turned on, ie 'smb://192.168.1.30/appdata'. However, 'smb://192.168.1.27/TimeMachine' leads to the error 'There was a problem connecting to the server "192.168.1.27"' while either VPN is turned on, but works fine with either VPN turned off. |
Beta Was this translation helpful? Give feedback.
-
Sounds like a VPN config issue. If you post some wireguard configs without the private keys, I can spot check them. |
Beta Was this translation helpful? Give feedback.
-
Here's some of the configs I've tried with Wireguard: 'Remote access to LAN'
'Remote tunneled access'
|
Beta Was this translation helpful? Give feedback.
-
Looks like you're not forwarding any traffic. Typically that is done using |
Beta Was this translation helpful? Give feedback.
-
Apologies for the late reply here! The two configs I posted above are client configs (not sure if you wanted the server one, in hindsight probably, i have added it below). In respect to the two client configs above, the first one grants me access to my LAN devices and the second one grants me access to my LAN + routes my internet traffic as I can see it changes my public IP address to that of my home. However, neither of the two allow me to connect to the time machine share on 192.168.1.27 Server config:
I'm seeing some stuff in there related to 'br0', which I also notice is what's selected in the container settings under 'Network Type = Custom : br0' (see my screenshots at the top of the thread) |
Beta Was this translation helpful? Give feedback.
-
When I had wireguard setup, I had this for my PostUp
I fumble my way through iptables where I learn what I need to and quickly forget it after I've saved itso I am not sure if I would be of any help in understanding the differences there or if it would have any impact if you do not have the forwarding enabled. |
Beta Was this translation helpful? Give feedback.
-
I've had no problems via TailScale, and no need to do any special configuration (via Tailscale Unraid plugin + macOS client). Edit : Oups, forget it, doesnt work , i just mounted the drive on macOS with tailscale, but timemachine can't backup on it ^^ |
Beta Was this translation helpful? Give feedback.
-
Quick update: turns out a subnet clash while over VPN was the reason I was having issues. I recently setup an OPNsense firewall in place of my ISP's router, and resolved the issue upon changing from a 192.x address to a 10.x + assigning a static route. Not sure if I should close this, please close if appropriate - many thanks |
Beta Was this translation helpful? Give feedback.
Quick update: turns out a subnet clash while over VPN was the reason I was having issues. I recently setup an OPNsense firewall in place of my ISP's router, and resolved the issue upon changing from a 192.x address to a 10.x + assigning a static route. Not sure if I should close this, please close if appropriate - many thanks