Skip to main content

HTTP/HTTPS

Surfboard supports both standard HTTP proxies and secure HTTPS (HTTP over TLS) proxies for routing traffic.

Protocol Standard

Example

# Standard HTTP proxy without encryption
ProxyHTTP = http, 1.2.3.4, 443, username, password

# Secure HTTPS proxy with TLS and SNI configuration
ProxyHTTPS = https, 1.2.3.4, 443, username, password, skip-cert-verify=true, sni=www.example.com, server-cert-fingerprint-sha256=fac26f65c034829da42d740d23c4a7202475a3834f0ebaecae5f934adbbfd640

Format

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

Parameters

NameValueMandatoryNote
proxy name-true
protocolhttp
https
true
server-trueSupports domain and IP formats.
port0-65535true
username-false
password-false
skip-cert-verifytrue
false
falseApplicable if protocol is https.
Set to true if the proxy does not have a valid TLS certificate.
sni-falseApplicable if protocol is https.
Definition is unnecessary if the SNI value matches the host value.
server-cert-fingerprint-sha256-falseApplicable if protocol is https.
SHA-256 fingerprint of the server certificate, hex-encoded (64 characters). Used for certificate pinning. Multiple fingerprints can be comma-separated.
underlying-proxy-falseUse a proxy or proxy group to connect another proxy (proxy chain). See Common Parameters.