Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: direct embedded derp traffic directly to the server#6595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfrominternalderp
Mar 14, 2023

Conversation

kylecarbs
Copy link
Member

Prior to this change, DERP traffic would route fromcoderd to theCODER_ACCESS_URL to reach the internal DERP server, which may have resulted in slower connections due to proxying, or the failure of web traffic entirely.

If your Coder deployment has a proxy in front of it, your traffic through web terminals, apps, and port-forwarding is about to get a lot faster!

Seecoder/tailscale#13

JoshVee reacted with thumbs up emojiJoshVee reacted with rocket emoji
Addresses: []netip.Prefix{netip.PrefixFrom(tailnet.IP(), 128)},
DERPMap: derpMap,
Logger: api.Logger.Named("tailnet"),
BlockEndpoints: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Why do we set BlockEndpoints now? I'm sure there's a reason, just wondering. 😄

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is a mistake! Fantastic catch 🥴🥴🥴

})
if err != nil {
_ = clientConn.Close()
_ = serverConn.Close()
return nil, xerrors.Errorf("create tailnet conn: %w", err)
}
conn.SetDERPRegionDialer(func(_ context.Context, region *tailcfg.DERPRegion) net.Conn {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There's a comment above in the code that seems outdated now?

// TODO: This should dial directly to execute the// DERP server instead of contacting localhost.//// This requires modification of Tailscale internals// to pipe through a proxy function per-region, so// this is an easy and mostly reliable hack for now.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Great point! I'm happy we're able to take out a TODO!

Prior to this change, DERP traffic would route from `coderd` to the`CODER_ACCESS_URL` to reach the internal DERP server, which may haveresulted in slower connections due to proxying, or the failure ofweb traffic entirely.If your Coder deployment has a proxy in front of it, your traffic throughweb terminals, apps, and port-forwarding is about to get a lot faster!
@kylecarbskylecarbsenabled auto-merge (squash)March 14, 2023 14:41
@kylecarbskylecarbs merged commit17bc579 intomainMar 14, 2023
@kylecarbskylecarbs deleted the internalderp branchMarch 14, 2023 14:46
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 14, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kylecarbs@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp