aws-samples / aws-iot-securetunneling-localproxy

AWS Iot Secure Tunneling local proxy reference C++ implementation
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-secure-tunneling.html
Apache License 2.0
73 stars 70 forks source link

Switch the docker image to use AL instead of ubuntu #70

Closed kareali closed 2 years ago

kareali commented 2 years ago

Motivation:

Motivation

Testing

  1. Built the image locally sudo ./docker-build.sh
  2. Attached my terminal to the docker container docker run -it aws-iot-securetunneling-localproxy:latest /bin/bash
  3. Ensured localproxy is running successfully.
    bash-4.2# ./localproxy -h
    Allowed options:
    -h [ --help ]                   Show help message
    -t [ --access-token ] arg       Client access token
    -e [ --proxy-endpoint ] arg     Endpoint of proxy server with port (if not 
                                  default 443). Example: data.tunneling.iot.us-
                                  east-1.amazonaws.com:443
    -r [ --region ] arg             Endpoint region where tunnel exists. Mutually
                                  exclusive flag with --proxy-endpoint
    -s [ --source-listen-port ] arg Sets the mappings between source listening 
                                  ports and service identifier. Example: 
                                  SSH1=5555 or 5555
    -d [ --destination-app ] arg    Sets the mappings between the 
                                  endpoint(address:port/port) and service 
                                  identifier. Example: SSH1=127.0.0.1:22 or 22
    -b [ --local-bind-address ] arg Assigns a specific local address to bind to 
                                  for listening in source mode or a local 
                                  socket address for destination mode.
    -c [ --capath ] arg             Adds the directory containing certificate 
                                  authority files to be used for performing 
                                  verification
    -k [ --no-ssl-host-verify ]     Turn off SSL host verification
    --export-default-settings arg   Exports the default settings for the TCP 
                                  adapter to the given file as json and exit 
                                  program
    --settings-json arg             Use the input JSON file to apply fine grained
                                  settings.
    --config arg                    Use the supplied configuration file to apply 
                                  CLI args. Actual CLI args override the 
                                  contents of this file
    -v [ --verbose ] arg (=4)       Logging level to standard out. [0, 255] 
                                  (0=off, 1=fatal, 2=error, 3=warning, 4=info, 
                                  5=debug, >=6=trace)
    -m [ --mode ] arg               The mode local proxy will run: src(source) or
                                  dst(destination)
    --config-dir arg                Set the configuration directory where service
                                  identifier mappings are stored. If not 
                                  specified, will read mappings from default 
                                  directory ./config (same directory where 
                                  local proxy binary is running)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.