Using Coder over Tailscale VPN

I'm troubleshooting a bit of an issue with out setup and am not sure what to do next. We use tailscale for our VPN and use our exit nodes as an allow list for a number of internal tools we host. As we're setting up coder, we'd like to ensure that we can use coder while connected via Tailscale. When we are connected (and only when using an exit node), we end up having connection problems. For direct ssh, we see tunnels disconnected, and we see similar disconnect issues using VS Code's server & Zed's ssh tunneling. Is there additional configuration needed to get this to work?
Solution:
Hey, this is a known issue, unfortunately. Also seen here: https://github.com/coder/coder/issues/15523 Disabling direct connections (and connecting over a DERP relay instead) within Coder (not Tailscale) will workaround the issue....
Jump to solution
7 Replies
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
<#1387204437528809522>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Solution
zounce
zounce4mo ago
Hey, this is a known issue, unfortunately. Also seen here: https://github.com/coder/coder/issues/15523 Disabling direct connections (and connecting over a DERP relay instead) within Coder (not Tailscale) will workaround the issue.
zounce
zounce4mo ago
The linked issue was recently closed because we made changes to ensure DERP is always used if a configuration like yours is detected, but I don't believe that change is yet available in a Coder release.
Scott Windsor
Scott WindsorOP4mo ago
We'll try that, thank you! We do already have regional proxies installed, so I think this would work well for us if we could make that the default for our control plane. Related question: will this also prevent trying to access STUN servers in a more isolated environment?
zounce
zounce4mo ago
Phorcys
Phorcys3mo ago
hey @Scott Windsor were you successful with it?

Did you find this page helpful?