8000 chore(docs): add requirements re ports and stun server to docs by johnstcn · Pull Request #12026 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore(docs): add requirements re ports and stun server to docs #12026

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

Merged
merged 19 commits into from
Feb 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adjust graph for example 2
  • Loading branch information
johnstcn committed Feb 12, 2024
commit 6ac84d26ba846aad794e9f8a35fd9016fd83d8a8
17 changes: 8 additions & 9 deletions docs/networking/stun.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,23 @@ communicate directly with each other through their respective NATs.

```mermaid
flowchart LR
subgraph homenet["Home Network"]
direction LR
subgraph homenet["Network A"]
client["Client workstation\n192.168.1.101:38297"]
homenat["Home Router/NAT\n65.4.3.21:29187"]
homenat["NAT\n65.4.3.21:29187"]
end
subgraph corpnet["Corp Network"]
direction LR
subgraph corpnet["Network B"]
agent["Workspace agent\n10.21.43.241:56812"]
corpnat["Corp Router/NAT\n12.34.56.7:41563"]
corpnat["NAT\n12.34.56.7:41563"]
end

subgraph internet["Public Internet"]
end

client -- "[12.34.56.7:41563]" --- homenat
homenat -- "[12.34.56.7:41563]" --- internet
internet -- "[12.34.56.7:41563]" --- corpnat
corpnat -- "[10.21.43.241:56812]" --> agent
agent -- "[10.21.43.241:56812]" --- corpnat
corpnat -- "[65.4.3.21:29187]" --> internet
homenat -- "[12.34.56.7:41563]" --> internet

```
Copy link
Member Author

Choose a reason for hiding this comment

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

flowchart LR
  subgraph homenet["Home Network"]
    direction LR
    client["Client workstation\n192.168.1.101:38297"]
    homenat["Home Router/NAT\n65.4.3.21:29187"]
  end
  subgraph corpnet["Corp Network"]
    direction LR
    agent["Workspace agent\n10.21.43.241:56812"]
    corpnat["Corp Router/NAT\n12.34.56.7:41563"]
  end
  subgraph internet["Public Internet"]
  end
  client -- "[12.34.56.7:41563]" --- homenat
  homenat -- "[12.34.56.7:41563]" --- internet
  internet -- "[12.34.56.7:41563]" --- corpnat
  corpnat -- "[10.21.43.241:56812]" --> agent
Loading

Copy link
Contributor

Choose a reason for hiding this comment

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

It's unfortunate Mermaid lays these out differently. Presumably it's due to the arrow directions... does it look weird to keep the use of arrows consistent?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm honestly considering replacing with some manual drawings just so we can more easily fine-tune it.

Copy link
Member Author

Choose a reason for hiding this comment

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

For now, fixed by changing the arrow directions.


### 3. Direct connections with VPN and NAT hairpinning
Expand Down
0