- Notifications
You must be signed in to change notification settings - Fork907
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 ourterms of service andprivacy 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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ethanndickson commentedAug 27, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 incoder ping
, but this is in case we ever wanted to re-use this util.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
df1bee7
to9117628
Compare41ab80f
toa92e814
Comparea92e814
to15438e6
Compare9117628
to8c15192
Compare461723e
to788ff3a
CompareThere 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 thatevery 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>
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
788ff3a
to9ccec94
Compareethanndickson commentedAug 29, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
New output format:
Fixing the test I broke... |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
e162ec9
to2e08d19
Compare4b5c45d
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Continues to address#14244.
If the client or agent's public IP is within an AWS range,
coder ping
will 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: