Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Created November 24, 2017 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mschmitt/48de6f3ac8cf8f61d85f64ea84c44f2e to your computer and use it in GitHub Desktop.
Save mschmitt/48de6f3ac8cf8f61d85f64ea84c44f2e to your computer and use it in GitHub Desktop.
pid=/var/run/stunnel-8443-ssh.pid
sslVersion=TLSv1
# decoy web service mail.example.com
[8443-ssh]
cert=/etc/tls/signed-cert.20141107.pem
key=/etc/tls/key.20130329.pem
accept=:::8443
connect=::1:80
# proxied ssh service on SAN securemail.example.com
[proxied-ssh]
cert=/etc/tls/signed-cert.20141107.pem
key=/etc/tls/key.20130329.pem
CAfile=/etc/tls/martinschmitt_20171005.crt
verifyPeer=yes
sni=8443-ssh:securemail.example.com
connect=::1:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment