diff options
Diffstat (limited to 'spec/socks-extensions.md')
-rw-r--r-- | spec/socks-extensions.md | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/spec/socks-extensions.md b/spec/socks-extensions.md index d4d7010..25b3eab 100644 --- a/spec/socks-extensions.md +++ b/spec/socks-extensions.md @@ -1,20 +1,8 @@ -Tor's extensions to the SOCKS protocol - -Table of Contents - -```text - 1. Overview - 1.1. Extent of support - 2. Name lookup - 3. Other command extensions. - 4. HTTP-resistance - 5. Optimistic data - 6. Extended error codes -``` +# Tor's extensions to the SOCKS protocol <a id="socks-extensions.txt-1"></a> -# Overview +## Overview The SOCKS protocol provides a generic interface for TCP proxies. Client software connects to a SOCKS server via TCP, and requests a TCP connection @@ -34,7 +22,7 @@ hostnames. <a id="socks-extensions.txt-1.1"></a> -## Extent of support +### Extent of support Tor supports the SOCKS4, SOCKS4A, and SOCKS5 standards, except as follows: @@ -72,7 +60,7 @@ manpage.) <a id="socks-extensions.txt-2"></a> -# Name lookup +## Name lookup As an extension to SOCKS4A and SOCKS5, Tor implements a new command value, "RESOLVE" \[F0\]. When Tor receives a "RESOLVE" SOCKS command, it initiates @@ -92,7 +80,7 @@ address" portion of the reply. <a id="socks-extensions.txt-3"></a> -# Other command extensions +## Other command extensions Tor 0.1.2.4-alpha added a new command value: "CONNECT_DIR" \[F2\]. In this case, Tor will open an encrypted direct TCP connection to the @@ -105,7 +93,7 @@ new use_begindir flag in edge_connection_t. <a id="socks-extensions.txt-4"></a> -# HTTP-resistance +## HTTP-resistance Tor checks the first byte of each SOCKS request to see whether it looks more like an HTTP request (that is, it starts with a "G", "H", or "P"). If @@ -115,7 +103,7 @@ use Tor as an HTTP proxy instead of a SOCKS proxy. <a id="socks-extensions.txt-5"></a> -# Optimistic data +## Optimistic data Tor allows SOCKS clients to send connection data before Tor has sent a SOCKS response. When using an exit node that supports "optimistic data", @@ -128,7 +116,7 @@ data. <a id="socks-extensions.txt-6"></a> -# Extended error codes +## Extended error codes We define a set of additional extension error codes that can be returned by our SOCKS implementation in response to failed onion service |