securetunnel

module
v1.0.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: MIT

README

AWS IoT secure tunneling localproxy implementation

  • This is a repository created for studying for rehabilitation.
  • I do not speak English, so corrections in English are welcome.

Reference

localproxy golang implementation

Build
  • You have docker environment.

    $ git clone https://github.com/mizosukedev/securetunnel
    $ cd securetunnel
    
    $ ./misc/docker/run_on_docker.sh make build
    # or
    $ ./misc/docker/run_on_docker.sh make
    
  • You have golang environment.

    $ cd "${GOPATH}/src"
    $ git clone https://github.com/mizosukedev/securetunnel
    $ cd securetunnel
    
    $ make build
    # or
    $ make
    
Usage
Forward proxy
  • Setup forward proxy, if you need. The forward proxy can be specified with the http_proxy and https_proxy environment variables.

  • Exxample

    $ proxy=http://[proxy host address]:[proxy port]
    $ export https_proxy=${proxy}
    $ export http_proxy=${proxy}
    
Source mode
  • Exmample:

    $ export MITRA_LOCALPROXY_TOKEN=<set source token>
    
    # If destinationConfig.services was not specified when running OpenTunnel.
    $ mitra_localproxy -e "wss://data.tunneling.iot.us-east-1.amazonaws.com:443/tunnel" -s 10022
    
    # If you specified destinationConfig.services (multiple services) when running OpenTunnel,
    # specify services in the format "service name=[address:]port", separated by commas.
    $ mitra_localproxy -e "wss://data.tunneling.iot.us-east-1.amazonaws.com:443/tunnel" -s "SSH=10022, RDP=13389"   
    
Destination mode
  • Example:

    $ export MITRA_LOCALPROXY_TOKEN=<set destination token>
    
    # If destinationConfig.services was not specified when running OpenTunnel.
    $ mitra_localproxy -e wss://data.tunneling.iot.us-east-1.amazonaws.com:443/tunnel -d 22
    
    # If you specified destinationConfig.services (multiple services) when running OpenTunnel,
    # specify services in the format "service name=[address:]port", separated by commas.
    $ mitra_localproxy -e wss://data.tunneling.iot.us-east-1.amazonaws.com:443/tunnel -d "SSH=22, RDP=3389"
    

Server (TBD)

Directories

Path Synopsis
testutil is a package that implements a set of functions for testing.
testutil is a package that implements a set of functions for testing.
client is a package that implements a set of functions for connecting to the AWS secure tunneling service.
client is a package that implements a set of functions for connecting to the AWS secure tunneling service.
cmd
log is a package that summarizes the log output functions.
log is a package that summarizes the log output functions.
misc
proxy is a package that implements a set of functions for local proxy.
proxy is a package that implements a set of functions for local proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL