Mount share only if connected to Tailscale - Linux - Tailscale
Sorry for the delayed response, hope it helps. Documenting anyway as it might help others as well. The idea is to have a systemd target (tailscale-online.target) that we ensure is enabled if and only if tailscale is up and vice versa. To do that write and enable tailscale-dispatcher.timer: [Unit] Description=Checks for tailscale state and syncs with `tailscale-online.target` BindsTo=tailscaled.service After=tailscaled.service [Timer] OnBootSec=0 OnUnitInactiveSec=10 AccuracySec=1 [Install]...