Skip to content

Instantly share code, notes, and snippets.

@trinitronx
Last active April 26, 2018 00:30
Show Gist options
  • Save trinitronx/6427d6454fb3b121fc2ab5ca7ac766bc to your computer and use it in GitHub Desktop.
Save trinitronx/6427d6454fb3b121fc2ab5ca7ac766bc to your computer and use it in GitHub Desktop.
Docker SOCKS5h Proxy Diagram

docker-socks5h-diagram.svg

ASCII art diagram for docker networking proxy setup. SVG file diagram generated from ditaa tool.

How to Generate from source & view

git clone https://gist.github.com/6427d6454fb3b121fc2ab5ca7ac766bc.git docker-socks5h-diagram.svg
cd ./docker-socks5h-diagram.svg
brew install ditaa
ditaa --transparent --verbose --no-separation --svg  ./docker-ditaa-diagram.md ./docker-diagram.svg
# Look at output SVG file with an SVG viewer:
# Note: This assumes you have set up default application for .svg files!
open ./docker-diagram.svg
/---------------------------------------------------\           +---------------------+      +--------------+
|                                                   |           | Bastion Host        |      | VPC          |
| cAAA                                              |           |  /-------\      /---|<---->|---\          |
| Mac OSX                                           |           |  | cEB0  |      |   |      |   |          |
| Laptop                                            |           |  |       |      |   |      |   |          |
|                                                   |           |  |       |      |   |      |   ^          |
|              /---------------------------------\  |           |  |       |      ^   |      |  /---------\ |
|              | cEB0                            |  |           |  |       |   DNS    |      |  | cE73    | |
|              | SSH Tunnel                      |  |           |  |       |   Lookup |      |  | Route53 | |
|              |                                 |  |           |  |       |      |   |      |  |         | |
|              |  -=-> (alias IP)꞉(port) >--=----|--|-----=---->|=-| SSHd  |-=--------|<-=-->|  \---------/ |
|              | ⎛                               |  |           |  |       |          |      |              |
|              | :                               |  |           |  \-------/          |      |              |
|              \---------------------------------/  |           |                     |      |              |
|      /--------------------------------------------/           |                     |      |              |
|      |         ^                                              +---------------------+      +--------------+
|      |         |                                   
|      | /------------------------------------------\
|      | | c1BE  |       ╌net꞊(bridgenet)           |
|      | |                                          |
|      | | ALL_PROXY꞊socks5h꞉//(alias IP)꞉(port)    |
|      | |                                          |
|      | | Terraform                                |
|      | | Docker                                   |
|      | | Container                                |
\------/ \------------------------------------------/
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment