An image to allow multiplexing SSL and SSH through port 443 (ssh redirected to 22 and SSL to port 8443)
4.9K
Considering you have SSH listening on port 22 and HTTPS listening on port 443.
$ sudo docker run -d --name sslh --net=host -p 443:443 -p 127.0.0.1::22 mpeterson/sslh
Note: Notice that since the image is based on [phusion/baseimage-docker] it has a SSH service listening on 22 which in the example above is mapped so we can access the image in the case we wanted to.
As it uses the docker host networking feature it needs docker >= 0.11
Configuration options are set by setting environment variables when running the image. This options should be passed to the container using docker
-e <variable>. What follows it a table of the supported variables:
LISTEN_ADDR: Address to listen on waiting for new connections. The format is <ip>:<port>. Defaults to: 0.0.0.0:443SSL_TARGET_ADDR : Address to relay when a new SSL (HTTPS) connection is detected. The format is <ip>:<port>. Defaults to: $HOST_ADDR:8443SSH_TARGET_ADDR: Address to relay when a new SSH connection is detected. The format is <ip>:<port>. Defaults to: $HOST_ADDR:22Content type
Image
Digest
sha256:1bfd2997e…
Size
127.7 MB
Last updated
almost 11 years ago
docker pull mpeterson/sslh