tlstun

simple go program to add tls support to other listeners
git clone https://git.parazyd.org/tlstun
Log | Files | Refs | README | LICENSE

commit ac9c00dd0aee01a1e7a52e8d3d62afdd39c43b46
parent 9eafb026d57f43fd31bd1b6cf6428cb3ca55043e
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 10 Jul 2019 02:26:21 +0200

Add OpenRC initscript in contrib.

Diffstat:
Acontrib/tlstun.confd | 7+++++++
Acontrib/tlstun.initd | 10++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/contrib/tlstun.confd b/contrib/tlstun.confd @@ -0,0 +1,7 @@ +# Parameters to be passed to tlstun + +#TLSTUN_ARGS="-cacert /etc/ssl/ca.pem -cert /etc/ssl/server.pem -key /etc/ssl/server.key" +#TLSTUN_ARGS="$TLSTUN_ARGS -forward 127.0.0.1:72 -listen 0.0.0.0:7443 -verifyclient" + +TLSTUN_ARGS="-cert /etc/ssl/server.pem -key /etc/ssl/server.key" +TLSTUN_ARGS="$TLSTUN_ARGS -forward 127.0.0.1:72 -listen 0.0.0.0:7443" diff --git a/contrib/tlstun.initd b/contrib/tlstun.initd @@ -0,0 +1,10 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="${RC_SVCNAME}" +command="/usr/bin/tlstun" +pidfile="/run/${RC_SVCNAME}.pid" +command_args="${TLSTUN_ARGS}" +command_user="nobody" +command_background="yes"