From fbc079d82dff742e8c118496f54441d52e185a2a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 3 Jun 2022 13:44:01 -0700 Subject: [PATCH] ipn/ipnlocal: prevent attempting to run SSH on Synology for now On DSM7 as a non-root user it'll run into problems. And we haven't tested on DSM6, even though it might work, but I doubt it. Updates #3802 Updates tailscale/corp#5468 Change-Id: I75729042e4788f03f9eb82057482a44b319f04f3 Signed-off-by: Brad Fitzpatrick --- ipn/ipnlocal/local.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index e89ccad0a..4fd5c60e6 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -1833,7 +1833,10 @@ func (b *LocalBackend) checkPrefsLocked(p *ipn.Prefs) error { if p.RunSSH { switch runtime.GOOS { case "linux": - // okay + if distro.Get() == distro.Synology && !envknob.UseWIPCode() { + return errors.New("The Tailscale SSH server does not run on Synology.") + } + // otherwise okay case "darwin": // okay only in tailscaled mode for now. if version.IsSandboxedMacOS() {