Skip to content
A TLS reverse proxy with SNI multiplexing in Go
Branch: master
Clone or download
inconshreveable Merge pull request #8 from scele/master
go-yaml package has moved from launchpad to github
Latest commit 1ff6593 Oct 2, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE add apache license Feb 26, 2014 add apache license Feb 26, 2014
TODO add tests Dec 20, 2013
server.go go-yaml package has moved from launchpad to github Oct 2, 2017
server_test.go add custom error handler for muxing errors so that we can log the fai… Dec 28, 2013

slt is a dead-simple TLS reverse-proxy with SNI multiplexing (TLS virtual hosts).

That means you can send TLS/SSL connections for multiple different applications to the same port and forward them all to the appropriate backend hosts depending on the intended destination.


SNI Multiplexing

slt multiplexes connections to a single TLS port by inspecting the name in the SNI extension field of each connection.

Simple YAML Configuration

You configure slt with a simple YAML configuration file:

bind_addr: ":443"

        addr: ":4443"
        addr: ""
        addr: ""

Optional TLS Termination

Sometimes, you don't actually want to terminate the TLS traffic, you just want to forward it elsewhere. slt only terminates the TLS traffic if you specify a private key and certificate file like so:

    tls_key: /path/to/
    tls_crt: /path/to/

Round robin load balancing among arbitrary backends

slt performs simple round-robin load balancing when more than one backend is available (other strategies will be available in the future):

        addr: ":8080"
        addr: ":8081"

Running it

Running slt is also simple. It takes a single argument, the path to the configuration file:

./slt /path/to/config.yml

Building it

Just cd into the directory and "go build". It requires Go 1.1+.

Testing it

Just cd into the directory and "go test".


I run slt in production handling hundreds of thousands of connections daily.



You can’t perform that action at this time.