From 57129205e6860019e2c87d5069c7c4812845fb15 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Wed, 15 Nov 2023 23:21:46 +0000 Subject: [PATCH] cmd/tailscaled: make tun mode default on gokrazy Now that we have nftable support this works fine and force it on gokrazy since 25a8daf405a9db68187989428548405fa0a94d65. Updates gokrazy/gokrazy#209 Signed-off-by: Maisem Ali --- cmd/tailscaled/tailscaled.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cmd/tailscaled/tailscaled.go b/cmd/tailscaled/tailscaled.go index 9d129c1e3..bcbc0f995 100644 --- a/cmd/tailscaled/tailscaled.go +++ b/cmd/tailscaled/tailscaled.go @@ -85,20 +85,6 @@ func defaultTunName() string { // Try TUN, but fall back to userspace networking if needed. // See https://github.com/tailscale/tailscale-synology/issues/35 return "tailscale0,userspace-networking" - case distro.Gokrazy: - // Gokrazy doesn't yet work in tun mode because the whole - // Gokrazy thing is no C code, and Tailscale currently - // depends on the iptables binary for Linux's - // wgengine/router. - // But on Gokrazy there's no legacy iptables, so we could use netlink - // to program nft-iptables directly. It just isn't done yet; - // see https://github.com/tailscale/tailscale/issues/391 - // - // But Gokrazy does have the tun module built-in, so users - // can still run --tun=tailscale0 if they wish, if they - // arrange for iptables to be present or run in "tailscale - // up --netfilter-mode=off" mode, perhaps. Untested. - return "userspace-networking" } }