Skip to main content

SOCKS5/SOCKS5-TLS

SOCKS5 is a versatile proxy protocol that routes packets between a client and a server. Surfboard supports both standard SOCKS5 and the encrypted SOCKS5-TLS variant.

Protocol Standard

Example

# Standard SOCKS5 proxy with authentication and UDP relay disabled
ProxySOCKS5 = socks5, 1.2.3.4, 443, username, password, udp-relay=false

# Secure SOCKS5-TLS proxy with certificate verification bypass and custom SNI
ProxySOCKS5TLS = socks5-tls, 1.2.3.4, 443, username, password, skip-cert-verify=true, sni=www.example.com

Format

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

Parameters

NameValueMandatoryNote
proxy name-true
protocolsocks5
socks5-tls
true
server-trueSupports domain and IP formats.
port0-65535true
username-false
password-false
skip-cert-verifytrue
false
falseApplicable if protocol is socks5-tls.
Set to true if the proxy does not have a valid TLS certificate.
snifalseApplicable if protocol is socks5-tls.
Definition is unnecessary if the SNI value matches the host value.
tip

To test with a SOCKS5-TLS proxy, please try using https://github.com/ginuerzh/gost, which can create a SOCKS-TLS proxy out of the box.