Skip to main content

AnyTLS

AnyTLS is a proxy type that uses TLS for secure communication. It is a simple and efficient way to tunnel traffic through a TLS-encrypted connection.

Format

{proxy name} = anytls, {server}, {port}, {password}, {skip-cert-verify}, {sni}, {server-cert-fingerprint-sha256}, {reuse}

Parameters

NameValueMandatoryNote
proxy name-true
server-trueSupports domain and IP formats.
port0 - 65535true
password-trueAuthentication password.
skip-cert-verifytrue
false
falseSet to true if the proxy does not have a valid TLS certificate. Default value: false.
sni-falseServer Name Indication. Definition is unnecessary if the SNI value matches the host value.
server-cert-fingerprint-sha256-falseSHA-256 fingerprint of the server certificate, hex-encoded (64 characters). Used for certificate pinning. Multiple fingerprints can be comma-separated.
reusetrue
false
falseWhether to reuse connections. Default value: true.
underlying-proxy-falseUse a proxy or proxy group to connect another proxy (proxy chain). See Common Parameters.

Example

# Full configuration
ProxyAnyTLS = anytls, 1.2.3.4, 443, password, skip-cert-verify=true, sni=abc.com, server-cert-fingerprint-sha256=fac26f65c034829da42d740d23c4a7202475a3834f0ebaecae5f934adbbfd640, reuse=false

# Minimal configuration
ProxyAnyTLSMin = anytls, 1.2.3.4, 443, password