{"slug":"access-your-tailnet-from-coder","title":"Access your tailnet from Coder","tags":["tailscale","access-control","setup"],"agent_summary":"Last validated: Mar 3, 2025","trigger_phrases":[],"runnable":false,"markdown":"\r\n# Access your tailnet from Coder\r\n\r\nLast validated: Mar 3, 2025\r\n\r\n[Coder](https://coder.com/) is a developer workspace platform which lets you develop code in a remote environment like a VM running in a cloud provider. In Coder, you define your developer workspace as a Dockerfile.\r\n\r\nTailscale can be installed within a Coder workspace to be able to access private\r\nresources securely, such as package registries, or to share an environment with\r\nyour colleagues for code review or pair programming.\r\n\r\n## [Integration](https://tailscale.com/docs/install/cloud/coder\\#integration)\r\n\r\nFollow [Coder's instructions for getting Tailscale working in a Coder workspace](https://coder.com/docs/coder/latest/guides/customization/tailscale). You'll need to:\r\n\r\n1. Add `tailscaled` in your [workspace's Dockerfile](https://coder.com/docs/coder/latest/images/writing). You'll also need to ensure that Tailscale's persistent state is stored in the workspace's persistent home volume, so that Tailscale can persist connections across workspace rebuilds\r\n2. Enable [userspace networking](https://tailscale.com/docs/concepts/userspace-networking), and if you want to be able to have outbound connections, configure Tailscale as either a SOCKS5 or HTTP proxy\r\n\r\n## [Authorization](https://tailscale.com/docs/install/cloud/coder\\#authorization)\r\n\r\nTo allow the Coder workspace to join your tailnet, authenticate to Tailscale from your workspace using `sudo tailscale up`.\r\n\r\n![Project Logo](https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed)\r\n\r\nAsk AI\r\n\r\nreCAPTCHA\r\n\r\nRecaptcha requires verification.\r\n\r\nprotected by **reCAPTCHA**\r\n","html":"<h1>Access your tailnet from Coder</h1>\n<p>Last validated: Mar 3, 2025</p>\n<p><a href=\"https://coder.com/\">Coder</a> is a developer workspace platform which lets you develop code in a remote environment like a VM running in a cloud provider. In Coder, you define your developer workspace as a Dockerfile.</p>\n<p>Tailscale can be installed within a Coder workspace to be able to access private\r\nresources securely, such as package registries, or to share an environment with\r\nyour colleagues for code review or pair programming.</p>\n<h2><a href=\"https://tailscale.com/docs/install/cloud/coder#integration\">Integration</a></h2>\n<p>Follow <a href=\"https://coder.com/docs/coder/latest/guides/customization/tailscale\">Coder's instructions for getting Tailscale working in a Coder workspace</a>. You'll need to:</p>\n<ol>\n<li>Add <code>tailscaled</code> in your <a href=\"https://coder.com/docs/coder/latest/images/writing\">workspace's Dockerfile</a>. You'll also need to ensure that Tailscale's persistent state is stored in the workspace's persistent home volume, so that Tailscale can persist connections across workspace rebuilds</li>\n<li>Enable <a href=\"https://tailscale.com/docs/concepts/userspace-networking\">userspace networking</a>, and if you want to be able to have outbound connections, configure Tailscale as either a SOCKS5 or HTTP proxy</li>\n</ol>\n<h2><a href=\"https://tailscale.com/docs/install/cloud/coder#authorization\">Authorization</a></h2>\n<p>To allow the Coder workspace to join your tailnet, authenticate to Tailscale from your workspace using <code>sudo tailscale up</code>.</p>\n<p><img src=\"https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed\" alt=\"Project Logo\"></p>\n<p>Ask AI</p>\n<p>reCAPTCHA</p>\n<p>Recaptcha requires verification.</p>\n<p>protected by <strong>reCAPTCHA</strong></p>\n"}