Skip to content

Tunnel through a disposable EC2 instance in your public AWS subnet to get to a private resource without interrupting your existing infrastructure

Notifications You must be signed in to change notification settings

velvetreactor/tunl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps

  1. Have the following pieces of information ready:
    • EC2_USER: user to login as
    • EC2_DNS: the public DNS of the intermediate EC2 instance
    • PORT: the port for the SSH tunnel. This should correspond to the port that:
      • will be published on the host
      • tunnel entrance from within the Docker container
      • tunnel exit on the EC2 instance
    • PEM: path to your local pem file that is set as the auth keypair for the EC2 instance
  2. Run:
    EC2_USER=ec2-user \
    EC2_HOST=ec2-0-0-0-0.compute-1.amazonaws.com \
    PORT=9000 \
    PEM=/path/to/pem/file \
    make run
    
  3. Point browser to localhost:9000

About

Tunnel through a disposable EC2 instance in your public AWS subnet to get to a private resource without interrupting your existing infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published