{"id":19040911,"url":"https://github.com/cloudfoundry/jumpbox-deployment","last_synced_at":"2025-09-03T23:38:38.427Z","repository":{"id":14013923,"uuid":"74964877","full_name":"cloudfoundry/jumpbox-deployment","owner":"cloudfoundry","description":"Deploy single vanilla jumpbox machine with BOSH","archived":false,"fork":false,"pushed_at":"2025-04-17T02:35:42.000Z","size":310,"stargazers_count":29,"open_issues_count":0,"forks_count":21,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-17T16:19:54.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-28T11:04:38.000Z","updated_at":"2025-04-17T02:35:46.000Z","dependencies_parsed_at":"2023-11-15T10:24:50.898Z","dependency_job_id":"f66bf319-7d1d-4612-834a-ae9d655e3ce1","html_url":"https://github.com/cloudfoundry/jumpbox-deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjumpbox-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjumpbox-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjumpbox-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjumpbox-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry","download_url":"https://codeload.github.com/cloudfoundry/jumpbox-deployment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250515668,"owners_count":21443462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T22:26:04.481Z","updated_at":"2025-04-23T21:23:50.411Z","avatar_url":"https://github.com/cloudfoundry.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jumpbox-deployment\n\nDeploy single vanilla jumpbox machine. Works well with BOSH CLI SOCKS5 proxying.\n\nIMPORTANT: Make sure to configure security group to allow only necessary traffic! Better yet drop all incoming traffic when jumpbox is not being used.\n\n## Planned\n\n- Apply iptables rule to block all incoming traffic\n  - in addition to relying on IaaS security groups configuration\n- Stop all software aside from SSH after deploy is finished\n- Add `--vars-store /dev/null` CLI support?\n\n## Example on AWS\n\nRequires new [BOSH CLI v0.0.146+](https://github.com/cloudfoundry/bosh-cli).\n\n```\n$ git clone https://github.com/cloudfoundry/jumpbox-deployment ~/jumpbox-deployment\n\n$ mkdir -p ~/deployments/jumpbox-1\n\n$ cd ~/deployments/jumpbox-1\n\n# Deploy a jumpbox -- ./creds.yml is generated automatically\n$ bosh create-env ~/jumpbox-deployment/jumpbox.yml \\\n  --state ./state.json \\\n  -o ~/jumpbox-deployment/aws/cpi.yml \\\n  --vars-store ./creds.yml \\\n  -v access_key_id=... \\\n  -v secret_access_key=... \\\n  -v region=us-east-1 \\\n  -v az=us-east-1b \\\n  -v default_key_name=jumpbox \\\n  -v default_security_groups=[jumpbox] \\\n  -v subnet_id=subnet-... \\\n  -v internal_cidr=10.0.0.0/24 \\\n  -v internal_gw=10.0.0.1 \\\n  -v internal_ip=10.0.0.5 \\\n  -v external_ip=... \\\n  --var-file private_key=...\n\n# Currently, none of the generated credentials are necessary to persist\n# (possibly except for generated SSH private key)\n$ rm ./creds.yml\n```\n\nAbove command requires only two ports open:\n\n```\nType            Protocol Port Range  Source          Purpose\nSSH             TCP      22          \u003cBOSH CLI's IP\u003e SSH for bootstrapping \u0026 final access\nCustom TCP Rule TCP      6868        \u003cBOSH CLI's IP\u003e Agent for bootstrapping\n```\n\n## SSH into jumpbox\n\nBy default `jumpbox` user is added via `user_add` job. Unique SSH private key is generated.\n\n```\n$ bosh int ./creds.yml --path /jumpbox_ssh/private_key \u003e jumpbox.key \u0026\u0026 chmod 600 jumpbox.key\n\n$ ssh jumpbox@... -i jumpbox.key\n```\n\n## Consider using SOCKS5 proxying\n\nInstead of running CLI *from* the jumpbox VM, you can use it as a proxy.\n\n```\n# Start SOCKS5 proxy on your machine\n$ ssh -N -D 9999 jumpbox@... -i jumpbox.key -f\n\n# Let CLI know about it\n$ export BOSH_ALL_PROXY=socks5://localhost:9999\n\n# Access Director *thru* jumpbox (instead of being on the jumpbox)\n$ bosh -e bosh-1 env\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fjumpbox-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry%2Fjumpbox-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fjumpbox-deployment/lists"}