Skip to content

Instantly share code, notes, and snippets.

@trinitronx trinitronx/README.md

Last active Apr 26, 2018
Embed
What would you like to do?
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                                |
\------/ \------------------------------------------/
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
You can’t perform that action at this time.