1. The problem I’m having:
I want to make a matcher for mTLS client_auth on WAN IPs only. Somewhat related to Using Caddy on LAN, while still having Cloudflare acme_dns for WAN. I’d like to use Cloudflare’s AOP feature, while still having accessibility on LAN, without adding/making any additional self-signed certs. Basically, I want to do something like:
@wan not remote_ip private_ranges
tls @wan {
client_auth {
mode require_and_verify
trust_pool file {
pem_file /path/to/file.pem
}
}
}
2. Error messages and/or full log output:
SSL_write() error: error:14FFF3E7:SSL routines:(UNKNOWN)SSL_internal:unknown failure occurred
3. Caddy version:
v2.10.0
4. How I installed and ran Caddy:
Built with xcaddy.
a. System environment:
Linux.
b. Command:
caddy run --config /etc/caddy/Caddyfile