In RFC 1928, it states:
It is expected that a SOCKS server will use DST.ADDR and DST.PORT in evaluating the BIND request.
And that's the only info about the DST fields in a BIND request context.
What's its purpose?
Perhaps it's the address and port of the host which the client wants to bind to? If so, should the server restrict incoming connection to the host as specified in DST fields?
RFC 1928 for SOCKS v5 does not explicitly state the use of
DST.ADDRandDST.PORTin theBINDrequest. However, SOCKS v5 builds on top of SOCKS v4, and the SOCKS v4 spec does explain it:So, it is used by the client to let the SOCKS server know who is expected to be connecting to its newly-
BIND'ed port. If any other party connects, the current session with the client is terminated.