Repository navigation
docs: add guide for self-hosting a STUN server - #31802
Closed
coder[bot] wants to merge 1 commit into
Closed
coder[bot] wants to merge 1 commit into
coder[bot] wants to merge 1 commit into
Conversation
Adds a how-to for running coturn or Tailscale's stund as a self-hosted STUN server and pointing CODER_DERP_SERVER_STUN_ADDRESSES at it, and links it from the STUN, networking, and air-gapped pages.
Collaborator
|
@nickvigilante if this is your PR it needs to come through your own user account in GitHub. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a how-to guide for self-hosting a STUN server with coturn (recommended) or Tailscale's
stund, and pointingCODER_DERP_SERVER_STUN_ADDRESSESat it. The guide is linked from the STUN and NAT page, the networking overview, and the air-gapped comparison table.Refs #16537, DOCS-310
Verification
coder netcheckagainst a v2.39.0 deployment configured with only self-hosted STUN servers: the coturn 4.6 package under systemd with the documented config, thecoturn/coturn:4.18.0container with a published UDP port, andstundbuilt with Go under the documented systemd unit. Hostname and IP entries inCODER_DERP_SERVER_STUN_ADDRESSESboth worked.p2pconnections fromcoder ping, and the STUN servers logged requests from both the client and the agent. With the STUN servers stopped, connections fell back to DERP andcoder pingprinted the "could not connect to STUN over UDP" hints. Running workspaces picked up the new STUN list without a restart.cli/server.gopasses a nil region totailnet.NewDERPMap), and each address becomes its own STUN-only region (tailnet.STUNRegions), which backs the "at least 2 servers" advice.Paraphrased identifiers
stundreplied only to binding requests that carry aFINGERPRINTattribute (it counted plain RFC 5389 requests asnot_stun). The page describes this as ignoring requests from generic STUN test tools.Vale's remaining
AbbreviationFirstUsewarning is on the front matter title, the same as onstun.md. The doc-check skill wasn't run; the page was self-reviewed against the docs style guide and passes markdownlint,lint/emdash,lint/docs-manifest, andlint/docs-html.