-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(cli): add aws check to ping p2p diagnostics #14450
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): add aws check to ping p2p diagnostics #14450
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ethanndickson and the rest of your teammates on |
|
|
||
| // CheckIP checks if the given IP address is an AWS IP. | ||
| func (r *AWSIPRanges) CheckIP(ip netip.Addr) (bool, error) { | ||
| if ip.IsLoopback() || ip.IsLinkLocalMulticast() || ip.IsLinkLocalUnicast() || ip.IsPrivate() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be given these IP classes in coder ping, but this is in case we ever wanted to re-use this util.
df1bee7 to
9117628
Compare
41ab80f to
a92e814
Compare
a92e814 to
15438e6
Compare
9117628 to
8c15192
Compare
461723e to
788ff3a
Compare
spikecurtis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, not necessarily in this PR, but part of this work is that every diagnostic check should have a corresponding page/section in our docs and we should include the link in the CLI output
a la
You are connected via a DERP relay, not directly, peer-to-peer (p2p).
Possible client-side issues with direct connection:
- We detected an endpoint firewall that could be blocking UDP from the agent.
https://docs.coder.com/<whatever>
788ff3a to
9ccec94
Compare
|
New output format: Fixing the test I broke... |
e162ec9 to
2e08d19
Compare

Continues to address #14244.
If the client or agent's public IP is within an AWS range,
coder pingwill now report that it is behind a hard NAT, which may impede forming a direct connection.Additionally informs if the client or agent was unable to contact a STUN server over UDP, if the DERP map contains a STUN server.
Output format: