SOCKS Protocol Version 6
draft-olteanu-intarea-socks-6-05

Document Type Active Internet-Draft (individual)
Last updated 2018-10-23
Replaces draft-intarea-olteanu-socks-6, draft-olteanu-socks-6
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Internet Area Working Group                                   V. Olteanu
Internet-Draft                                              D. Niculescu
Intended status: Experimental        University Politehnica of Bucharest
Expires: April 26, 2019                                 October 23, 2018

                        SOCKS Protocol Version 6
                    draft-olteanu-intarea-socks-6-05

Abstract

   The SOCKS protocol is used primarily to proxy TCP connections to
   arbitrary destinations via the use of a proxy server.  Under the
   latest version of the protocol (version 5), it takes 2 RTTs (or 3, if
   authentication is used) before data can flow between the client and
   the server.

   This memo proposes SOCKS version 6, which reduces the number of RTTs
   used, takes full advantage of TCP Fast Open, and adds support for
   0-RTT authentication.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on April 26, 2019.

Copyright Notice

   Copyright (c) 2018 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect

Olteanu & Niculescu      Expires April 26, 2019                 [Page 1]
Internet-Draft                   SOCKS 6                    October 2018

   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Revision log  . . . . . . . . . . . . . . . . . . . . . .   4
   2.  Requirements language . . . . . . . . . . . . . . . . . . . .   7
   3.  Mode of operation . . . . . . . . . . . . . . . . . . . . . .   7
   4.  Requests  . . . . . . . . . . . . . . . . . . . . . . . . . .   9
   5.  Version Mismatch Replies  . . . . . . . . . . . . . . . . . .  10
   6.  Authentication Replies  . . . . . . . . . . . . . . . . . . .  11
   7.  Operation Replies . . . . . . . . . . . . . . . . . . . . . .  12
     7.1.  Handling CONNECT  . . . . . . . . . . . . . . . . . . . .  13
     7.2.  Handling BIND . . . . . . . . . . . . . . . . . . . . . .  14
     7.3.  Handling UDP ASSOCIATE  . . . . . . . . . . . . . . . . .  14
       7.3.1.  Proxying UDP servers  . . . . . . . . . . . . . . . .  16
   8.  SOCKS Options . . . . . . . . . . . . . . . . . . . . . . . .  16
     8.1.  Stack options . . . . . . . . . . . . . . . . . . . . . .  16
       8.1.1.  IP TOS options  . . . . . . . . . . . . . . . . . . .  18
       8.1.2.  TFO options . . . . . . . . . . . . . . . . . . . . .  18
       8.1.3.  Multipath TCP options . . . . . . . . . . . . . . . .  19
       8.1.4.  MPTCP Scheduler options . . . . . . . . . . . . . . .  19
       8.1.5.  Listen Backlog options  . . . . . . . . . . . . . . .  20
     8.2.  Authentication Method options . . . . . . . . . . . . . .  21
     8.3.  Authentication Data options . . . . . . . . . . . . . . .  22
     8.4.  Idempotence options . . . . . . . . . . . . . . . . . . .  22
       8.4.1.  Requesting a fresh token window . . . . . . . . . . .  23
       8.4.2.  Spending a token  . . . . . . . . . . . . . . . . . .  24
       8.4.3.  Handling Token Window Advertisements  . . . . . . . .  26
   9.  Username/Password Authentication  . . . . . . . . . . . . . .  26
   10. TCP Fast Open on the Client-Proxy Leg . . . . . . . . . . . .  26
   11. False Starts  . . . . . . . . . . . . . . . . . . . . . . . .  27
   12. Security Considerations . . . . . . . . . . . . . . . . . . .  27
     12.1.  Large requests . . . . . . . . . . . . . . . . . . . . .  27
     12.2.  Replay attacks . . . . . . . . . . . . . . . . . . . . .  28
   13. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  28
   14. Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  28
   15. References  . . . . . . . . . . . . . . . . . . . . . . . . .  28
     15.1.  Normative References . . . . . . . . . . . . . . . . . .  29
Show full document text