You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fangdingjun a336f89a1e init commit 7 years ago
.gitignore init commit 7 years ago
LICENSE init commit 7 years ago
README.md init commit 7 years ago
config.go init commit 7 years ago
config_example.yaml init commit 7 years ago
config_test.go init commit 7 years ago
handler.go init commit 7 years ago
main.go init commit 7 years ago

README.md

tlsendpoint

a tls termination util that forward the request to backend server by sni name

support many different kind of backends, tcp, unix, tls...

example:

client A requests with sni name a.example.com forward to 127.0.0.1:8081

client B requests with sni name b.example.com forward to 127.0.0.1:8082

usage

go get github.com/fangdingjun/tlsendpoint
cp $GOPATH/src/github.com/fangdingjun/tlsendpoint/config_example.yaml config.yaml
vim config.yaml
$GOPATH/bin/tlsendpoint -c config.yaml