25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Where:<br />

VER Indicates the version of SOCKS. For SOCKSv5, the value<br />

is hexadecimal X'05'.<br />

NMETHODS Indicates the number of the methods in the methods field.<br />

METHODS Indicates the supported authentication <strong>and</strong> encapsulation<br />

methods.<br />

The server responds by the following message (Figure 22-45).<br />

Figure 22-45 SOCKSv5: Selected method message format<br />

The hexadecimal values for current st<strong>and</strong>ard methods are as follows:<br />

X'00' No authentication required<br />

X'01' GSSAPI<br />

X'02' User name/password<br />

X'03' to X'7F' IANA assigned<br />

X'80' to X'FE' Reserved for private methods<br />

X'FF' No acceptable methods<br />

All implementations should support user name/password <strong>and</strong> GSSAPI<br />

authentication methods.<br />

SOCKSv5 Connect<br />

After authentication completes successfully, the client sends the request details.<br />

If an encapsulation method is negotiated during the method negotiation, the<br />

selected encapsulation method must be applied for the following messages. The<br />

detail request message format issued by the client is as shown in Figure 22-46.<br />

Figure 22-46 SOCKSv5: Detail request message format<br />

850 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

1 byte 1 byte<br />

ver method<br />

1 byte 1 byte X'00' 1 byte variable 2 bytes<br />

ver cmd RSV ATYP DST ADDR DST Port

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!