-
-
Notifications
You must be signed in to change notification settings - Fork 543
Proxy Models
HTTP proxy server must support CONNECT method!
-proxy http://server_host:port
Socks4 only support USERID auth.
-proxy socks4://<userid>@server_host:port
-proxy socks5://<username>:<password>@server_host:port
Or for Unix Domain Socket (UDS)
-proxy socks5:///path/to/file
Please note that connecting with UDS is not a standard Socks5 protocol and requires server-side support.
-proxy ss://method:password@server_host:port/<?obfs=http;obfs-host=xxx>
or in SIP002 URI scheme:
-proxy ss://base64_encode(method:password)@server_host:port/<?obfs=http;obfs-host=xxx>
P.S. Leave method and password empty to use none cipher mode.
Latest GOST version is required for better compatibility.
-proxy relay://<username>:<password>@server_host:port?<nodelay=false>
Note that
Directis usually used for testing purposes.
-proxy direct://
Rejectsimply blocks all outgoing connections.
-proxy reject://
| Proxy | UDP Support | UDP Type |
|---|---|---|
| HTTP | ❌ | N/A |
| Socks4 | ❌ | N/A |
| Socks5 | ✅ | UDP |
| Shadowsocks | ✅ | UDP |
| Relay | ✅ | UDP over TCP |
| Direct | ✅ | UDP |
| Reject | N/A | N/A |