In techtopia we would never need to cross perfectly segmented network boundaries outside engineered established routes. This project exists for those in the real world who just need to get something done; whatever your reasons may be.
Sample tunnel_name.json
: file(s) name must end in .json
{
"jump_gateway": "jump.mydomain.com",
"user": "username",
"tunnels": [
"mongo001.mydomain.com:27017",
"mongo002.mydomain.com:27017"
]
}
The above tunnel_name.json
Would auto-genrate this script
#!/usr/bin/env bash
# AUTO GENERATED from docker_tunnels.py (source: /tunnels/tunnel_name.json)
ssh -M -S /tunnels/tunnel_name.socket -fnNT \
-L 127.0.0.2:27017:mongo001.mydomain.com:27017 \
-L 127.0.0.3:27017:mongo002.mydomain.com:27017 \
username@jump.mydomain.com
Sample myname.hosts
: name of file(s) doesn't matter at all.
127.0.0.7 testing.com
74.125.224.33 bing.com