wgengine, wgengine/router, cmd/tailscale: force netfilter mode off on Synology

For now. Get it working again so it's not stuck on 0.98.

Subnet relay can come later.

Updates #451

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-09-10 19:55:09 -07:00
committed by Brad Fitzpatrick
parent 31c13013ae
commit a084c44afc
6 changed files with 74 additions and 16 deletions

View File

@@ -15,6 +15,7 @@ import (
"inet.af/netaddr"
"tailscale.com/net/tsaddr"
"tailscale.com/types/logger"
"tailscale.com/version/distro"
"tailscale.com/wgengine/router/dns"
)
@@ -210,6 +211,9 @@ func (r *linuxRouter) Set(cfg *Config) error {
// reflect the new mode, and r.snatSubnetRoutes is updated to reflect
// the current state of subnet SNATing.
func (r *linuxRouter) setNetfilterMode(mode NetfilterMode) error {
if distro.Get() == distro.Synology {
mode = NetfilterOff
}
if r.netfilterMode == mode {
return nil
}