Giter Club home page Giter Club logo

sslh's Introduction

sslh

Docker image exposing sslh (SSH/HTTPS/OpenVPN multiplexer)

Quick Start

  • Start the SSLH server process, expose port 443
    docker run -d -p 443:443 --name sslh1 amondit/sslh
  • You can set environment variables to define the service routing (here with their default values).
     LISTEN_IP 0.0.0.0
     LISTEN_PORT 443
     SSH_HOST localhost
     SSH_PORT 22
     OPENVPN_HOST localhost
     OPENVPN_PORT 1194
     HTTPS_HOST localhost
     HTTPS_PORT 8443
  • However if you need to route to other Docker containers, don't forget to link them and then place the instance name in the environment:
    docker run -d -p 443:443 --link web1 -e HTTPS_HOST=web1 -e HTTPS_PORT=443  amondit/sslh

Notes

Please note that I defaulted the HTTPS forward port to localhost:8443 because the service will by default bing sslh on all interfaces and setting the forward to localhost:443 could cause a loop. It's no big deal anyway as you will probably use this image to reference external services (whether they're linked Docker containers or external IPs), so you'll never have to use localhost. Unless you're using this image as a base for extension to run multiple services on 1 container, which you shouldn't as it would be against the philosophy of Docker.

sslh's People

Contributors

amondit avatar

Stargazers

5l1v3r1 avatar Thijs avatar abdullah azad avatar Roy Storey avatar Pavel V. Sysolyatin avatar mendhak avatar GEOMETRYBASE avatar

Watchers

James Cloos avatar  avatar abdullah azad avatar Jesse Jusoli avatar

sslh's Issues

build missing on docker hub registry

Did you remove this image from the docker hub registry awhile back? I've been using it, and just wondering if I need to rebuild myself or just a bug/oversight. Thanks.

Transparent mode

Did you succeed in enable transparent mode using SSLH on docker?

When I add "--transparent", I get an error:

curl -v https://ssl.exemple.com
* Rebuilt URL to: https://ssl.exemple.com/
*   Trying 127.0.0.1...
* Connected to ssl.exemple.com (127.0.0.1) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 597 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: The TLS connection was non-properly terminated.
* Closing connection 0
curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

And sslh doesn't print any log about this request.

But the same request without the transparent option is working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.