Appendix vii: socks information, continued, Server response – Fairbanks FB3000 Kernel Program Operators Manual User Manual

Page 64

Advertising
background image

Appendix VII: SOCKS Information

04/12

64

51146 Rev. 3

APPENDIX VII: SOCKS INFORMATION, CONTINUED

Server response:

Field 1: SOCKS protocol version, 1 byte (0x05 for this version).

Field 2: Status, 1 byte:

─

0x00 = Request granted.

─

0x01 = General failure.

─

0x02 = Connection not allowed by ruleset.

─

0x03 = Network unreachable.

─

0x04 = Host unreachable.

─

0x05 = Connection refused by destination host.

─

0x06 = TTL expired.

─

0x07 = Command not supported / protocol error.

─

0x08 = Address type not supported.

Field 3: Reserved, must be 0x00.

Field 4: Address type, 1 byte:

─

0x01 = IPv4 address.

─

0x03 = Domain name.

─

0x04 = IPv6 address.

Field 5: Destination address of :

─

4 bytes for IPv4 address.

─

1 byte of name length followed by the name for Domain name.

─

16 bytes for IPv6 address.

Field 6: Network byte order port number, 2 bytes.

Advertising