From 552e1e4654691317b70e210acb133601023ee710 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Sun, 25 Oct 2026 19:11:23 -0700 Subject: [PATCH] feat(tailscale): restrict tag:dntls to SSH on Studio and MacBook --- tailscale/policy.hujson | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/tailscale/policy.hujson b/tailscale/policy.hujson index 10fde62..30ec9c8 100644 --- a/tailscale/policy.hujson +++ b/tailscale/policy.hujson @@ -49,17 +49,19 @@ // Member devices reach the bearer-authenticated MCP HTTPS endpoint. {"action": "accept", "src": ["autogroup:member"], "proto": "tcp", "dst": ["tag:agentcompute:443"]}, - // dntls hosts reach each other, Studio, and the MacBook on any port, - // and nothing else. + // dntls hosts reach each other on any port. + {"action": "accept", "src": ["tag:dntls"], "dst": ["tag:dntls:*"]}, + // dntls hosts reach native OpenSSH on Studio and the MacBook, and + // nothing else. { "action": "accept", "src": ["tag:dntls"], + "proto": "tcp", "dst": [ - "tag:dntls:*", - "studio-1:*", - "studio-1-v6:*", - "macbook-pro:*", - "macbook-pro-v6:*", + "studio-1:22", + "studio-1-v6:22", + "macbook-pro:22", + "macbook-pro-v6:22", ], }, @@ -131,11 +133,15 @@ "tag:dntls:22", "tag:dntls:3389", "studio-1:22", - "studio-1-v6:5900", + "studio-1-v6:22", "macbook-pro:22", - "macbook-pro-v6:5900", + "macbook-pro-v6:22", ], "deny": [ + "studio-1:5900", + "studio-1-v6:5900", + "macbook-pro:5900", + "macbook-pro-v6:5900", "100.123.79.64:22", "tag:agentcompute:443", "tag:sandbox:22",