Job tlstunnel-monitoring


Skip to build


This is a MirageOS unikernel accepting TLS connections via the public (service) network interface on frontend-port, and proxying them using TCP via the private network interface to backend-ip and backend-port. A client connecting to TLStunnel has to establish a TLS connection, which payload is forwarded to the backend service via TCP.

TLStunnel can be used for load-balancing - using multiple TLStunnel on the frontend doing expensive crypto operations (asymmetrics TLS handshakes and symmetric cryptography) with a single (or multiple) backend-services which communicate via plain TCP.

Security-wise only the TLStunnel needs access to the private key of the X.509 certificate(s). When TLStunnel is configured to do client authentication, only valid clients can access the backend service, limiting the attack surface drastically.

Installation from source

To install this unikernel from source, you need to have opam (>= 2.0.0) and ocaml (>= 4.07.0) installed. Also, mirage is required (>= 3.10.0). Please follow the installation instructions.

The following steps will clone this git repository and compile the unikernel:

$ git clone
$ mirage configure -t <your-favourite-target>
$ make depend
$ make

Installing as binary

There are not yet any binaries available, but work is underway to provide reproducible binaries.


Please open an issue if you have questions, feature requests, or comments.

Build 2022-01-14 13:20:26Z

Back to readme

Built on platform freebsd-12

Build took 10min48s.

Execution result: exited 0.

Build info

Build artifacts

SHA256:484c36227ddd3880ae1b09919af8721e0403328ead6a012fecb03aefe2dccc46 (6.31MB)
SHA256:013451059fb311008db6373a7437ee55df4a87b6a00c3a0342eed53edd570238 (395B)
SHA256:6a04d18c4bd72acad07bea2b959a2414c5f98669c7e137bed6a09e6f735e54d4 (193kB)
SHA256:27e4630f3711612022f38a595cb2e6e86d45ba6613d01e8f5f97dd1c964d62ee (195B)
SHA256:34d3c1044df07c1f5d2db2314cbf51371ba038ce3445285d394f2840a122fc40 (9.37MB)

Reproduced by 7 builds

Comparisons with other builds on the same platform