Skip to content

Docker image for having a SSLH service listening on the docker host and forward SSH and SSL.

License

Notifications You must be signed in to change notification settings

mpeterson/docker-sslh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpeterson/sslh

Usage

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.

Requirements

As it uses the docker host networking feature it needs docker >= 0.11

Configuration

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 is a table of the supported variables:

Variable Function
LISTEN_ADDR Address to listen on waiting for new connections. The format is <ip>:<port>. Defaults to: 0.0.0.0:443
SSL_TARGET_ADDR Address to relay when a new SSL (HTTPS) connection is detected. The format is <ip>:<port>. Defaults to: $HOST_ADDR:8443
SSH_TARGET_ADDR Address to relay when a new SSH connection is detected. The format is <ip>:<port>. Defaults to: $HOST_ADDR:22

About

Docker image for having a SSLH service listening on the docker host and forward SSH and SSL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages