You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'll be using duckdns for real TLS certs since many clients don't issue SNI at all in -k, --insecure mode, and therefore cannot test against self-issued certs without putting the cert in the client's chain.
You can use openssl s_client, socat, sclient, or one of many other tls-terminating tools. Demonstrating with sclient because it is purpose-built for this use case and works on Windows.
I've got an example of multiplexing SSH over HTTPS to different hosts.
If there's a way to maintain the same functionality, but simplify the config, I'd love to know how to do it.
Is there some sort of template system I could use to say "here's a ruleset" and then "apply that ruleset, but for these hostnames"?
I believe the caddyfile has something like that.
1. Install xcaddy
xcaddy
(
pathman
can help if you're unfamiliar with that)2. Build with layer4
Needs layer4, l4tls, l4ssh, l4proxy.
We'll be using
duckdns
for real TLS certs since many clients don't issue SNI at all in-k, --insecure
mode, and therefore cannot test against self-issued certs without putting the cert in the client's chain.2b. How to run
Assuming an
.env
with theDUCKDNS_API_TOKEN
:3. Multiplexing HTTPS and SSH
Configure SSH Client
You can use
openssl s_client
,socat
,sclient
, or one of many other tls-terminating tools. Demonstrating withsclient
because it is purpose-built for this use case and works on Windows.~/.ssh/config
:Configure Caddy
This feels a little too verbose. Is there a some sort of ruleset that could be created and then applied per-host?
TODO
How to pass HTTP traffic through to Caddy's normal http handler? Perhaps related to #70 and #78?
How to simplify?
The text was updated successfully, but these errors were encountered: