An h2 reverse that embeds TLS information in the headers before forwarding the request to an origin server.
nodemon --signal SIGTERM --exec "go run . -listen-addr :8443 -forward-url https://httpbin.org" --ext gocurl "https://localhost:8443/headers" --insecure
# It will output something like that:
# {
# "headers": {
# "Accept": "*/*",
# "Accept-Encoding": "gzip",
# "Host": "httpbin.org",
# "User-Agent": "curl/8.7.1",
# "X-Amzn-Trace-Id": "Root=1-682324f5-301a838407e297c9175d65cb",
# "X-Forwarded-Host": "localhost:8443",
# "X-Http2-Fingerprint": "3:100;4:10485760;2:0|1048510465|0|m,s,a,p",
# "X-Ja3-Fingerprint": "375c6162a492dfbf2795909110ce8424",
# "X-Ja4-Fingerprint": "t13d4907h2_0d8feac7bc37_7395dae3b2f3",
# "X-Tls-Ciphersuites-Codes": "4867,4866,4865,52393,52392,52394,49200,49196,49192,49188,49172,49162,159,107,57,65413,196,136,129,157,61,53,192,132,49199,49195,49191,49187,49171,49161,158,10
# 3,51,190,69,156,60,47,186,65,49169,49159,5,4,49170,49160,22,10,255",
# "X-Tls-Ciphersuites-Names": "0x1303 (unknown),0x1302 (unknown),0x1301 (unknown),TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,TLS_DHE_RSA_WITH_
# CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_
# RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,0xff85 (unknown),TLS_DHE
# _RSA_WITH_CAMELLIA_256_CBC_SHA256,TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,0x81 (unknown),TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WIT
# H_CAMELLIA_256_CBC_SHA256,TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA
# _WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_1
# 28_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256,TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_
# WITH_CAMELLIA_128_CBC_SHA256,TLS_RSA_WITH_CAMELLIA_128_CBC_SHA,TLS_ECDHE_RSA_WITH_RC4_128_SHA,TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,TLS_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_RC4_128_MD5,TLS_ECDHE_RSA_
# WITH_3DES_EDE_CBC_SHA,TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA,TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA,TLS_EMPTY_RENEGOTIATION_INFO_SCSV"
# }
# }The FP_SKIP environment variable allows you to configure the proxy to use dummy values for TLS fingerprinting headers instead of computing real values for specific domains. This is useful in two scenarios:
- Simple reverse proxy usage: When you want to use fingerproxy as a regular reverse proxy without TLS analysis for certain domains
- Large header mitigation: The TLS fingerprinting headers (especially HTTP/2 fingerprints) can become very large and may cause some origin servers to crash or reject requests
Usage:
# Skip fingerprinting for a single domain
export FP_SKIP=example.org
# Skip fingerprinting for multiple domains (comma-separated)
export FP_SKIP=example.org,api.example.com,cdn.example.netWhen a request's Host header or :authority HTTP/2 pseudo header matches any domain in the FP_SKIP list, the proxy will inject dummy placeholder values instead of performing actual TLS analysis.
This is my SystemD configuration file.
[Unit]
Description=Fingerproxy reverse-proxy server
After=network.target
[Service]
# Skip computing headers for example.org domain
Environment=FP_SKIP=example.org
ExecStart=fingerproxy -listen-addr :443 -forward-url http://localhost:8000 -cert-filename /etc/letsencrypt/live/MY-DOMAIN.ORG/cert.pem -certkey-filename /etc/letsencrypt/live/MY-DOMAIN.ORG/privkey.pem -preserve-host
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.targetYou can use Certbot to generate the certificates for you. Since fingerproxy doesn't listen on port :80, it'll even be able to auto-renew the certificates for you!