hannesm / tlstunnel-lwt

TLS tunnel -- an alternative to stud / stunnel
BSD 2-Clause "Simplified" License
84 stars 7 forks source link
mirageos ocaml stunnel tls tls-tunnel

TLS tunnel -- a TLS reverse proxy

Who needs a stunnel if you have a tls tunnel?

tlstunnel is picky; it won't accept connections:

Deprecated in favour of the MirageOS unikernel.

Installation

Build Status

You first need OCaml (at least 4.02.0) and OPAM (at least 1.2.2) from your distribution.

Run opam install tlstunnel after opam init finished.

Execution

A sample command line is:

tlstunnel -b 127.0.0.1:8080 -f 4433 -cert server.pem

which listens on TCP port 4433 with the given certificate chain and private key (both in server.pem), and forwards connections to 127.0.0.1 on port 8080.

An optional argument is -l FILE to log into a file instead of to stdout. Try --help for all command line arguments.