Snell
Snell is a private proxy protocol developed by the Surge team. It is designed to be lightweight and secure.
Format
{proxy name} = snell, {server}, {port}, psk={psk}, version={version}, udp-relay={udp-relay}, obfs={obfs}, obfs-host={obfs-host}, obfs-uri={obfs-uri}
Parameters
| Name | Value | Mandatory | Note |
|---|---|---|---|
| proxy name | - | true | |
| protocol | snell | true | |
| server | - | true | Supports domain and IP formats. |
| port | 0-65535 | true | |
| psk | - | true | Pre-shared key for authentication. |
| version | 1, 2, 3 | false | Currently only versions 1, 2, and 3 are supported. |
| udp-relay | true false | false | Default value: false. Only supported when version is 3. |
| obfs | tls http | false | |
| obfs-host | - | false | Default value: cloudfront.net. Only applicable when obfs is specified. |
| obfs-uri | - | false | Default value: /. Only applicable when obfs is http. |
Example
# A standard Snell proxy configuration
ProxySnell = snell, 1.2.3.4, 443, psk=yourpsk, version=3, udp-relay=true
# A Snell proxy configuration with HTTP obfuscation
ProxySnellObfs = snell, 1.2.3.4, 443, psk=yourpsk, version=2, obfs=http, obfs-host=www.example.com, obfs-uri=/