• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】SOCKS5是什么

问答 admin 1个月前 (03-06) 47次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

SOCKS是一种网络传输协议,主要用于客户端与外网服务器之间通讯的中间传递。当防火墙后的客户端要访问外部的服务器时,就跟SOCKS代理服务器连接。这个代理服务器控制客户端访问外网的资格,允许的话,就将客户端的请求发往外部的服务器。

Socks is a kind of network transmission protocol, which is mainly used for the intermediate transmission of communication between client and external network server. When the client behind the firewall wants to access the external server, it will connect with the socks proxy server. This proxy server controls the client’s access to the external network. If allowed, it sends the client’s request to the external server.

SOCKS5 是一个代理协议,它在使用 TCP/IP 协议通讯的前端机器和服务器机器之间扮演一个中介角色,使得内部网中的前端机器变得能够访问 Internet 网中的服务器,或者使通讯更加安全。

Socks5 is a proxy protocol, which acts as an intermediary between the front-end machine and the server machine using TCP / IP protocol to make the front-end machine in the intranet be able to access the server in the Internet, or make the communication more secure.

SOCKS5 服务器通过将前端发来的请求转发给真正的目标服务器, 模拟了一个前端的行为。在这里,前端和 SOCKS5 之间也是通过 TCP/IP 协议进行通讯,前端将原本要发送给真正服务器的请求发送给 SOCKS5 服务器,然后 SOCKS5 服务器将请求转发给真正的服务器。

Socks5 server simulates the behavior of a front end by forwarding the request from the front end to the real target server. Here, the front-end and Socks5 communicate through TCP / IP protocol. The front-end sends the original request to the real server to the Socks5 server, and then the Socks5 server forwards the request to the real server.

SOCKS 工作在比 HTTP 代理更低的层次:SOCKS 使用握手协议来通知代理软件其客户端试图进行的 SOCKS 连接,然后尽可能透明地进行操作,而常规代理可能会解释和重写报头(例如,使用另一种底层协议,例如 FTP;然而,HTTP 代理只是将 HTTP 请求转发到所需的 HTTP 服务器)。虽然 HTTP 代理有不同的使用模式,HTTP CONNECT 方法允许转发 TCP 连接;然而,SOCKS 代理还可以转发 UDP 流量(仅 SOCKS5),而 HTTP 代理不能。HTTP 代理通常更了解 HTTP 协议,执行更高层次的过滤(虽然通常只用于 GET 和 POST 方法,而不用于 CONNECT 方法)。

Socks works at a lower level than the HTTP proxy: socks uses the handshake protocol to notify the proxy software of the socks connection its client is trying to make, and then operates as transparently as possible, while the normal proxy may interpret and rewrite the header (for example, using another underlying protocol, such as FTP; however, the HTTP proxy only forwards the HTTP request to the required HTTP address) Server). Although HTTP proxy has different usage modes, HTTP connect method allows forwarding TCP connections; however, socks proxy can also forward UDP traffic (Socks5 only), while HTTP proxy cannot. HTTP proxies usually understand the HTTP protocol better and perform higher-level filtering (although they are usually only used for get and post methods, not connect methods).

如果您的机器具有一个合法的 Internet IP 地址, 或者您利用自己机器上的调制解调器拨号上网, 可以自由和 Internet 上任何主机沟通, 那么您通常不必关心 SOCKS5 协议。SOCKS5 协议对于处在内部网络中的机器, 需要透过网络中某些可以联通外部 Internet 的机器访问外部时,有用。SOCKS5 服务器在将通讯请求发送给真正服务器的过程中,对于请求数据包本身不加任何改变。SOCKS5 服务器接收到真正服务器的响应后,也原样转发给前端。因此,SOCKS5 协议是一种代理协议,对于各种基于 TCP/IP 的应用层协议都能够适应,几乎是万能的。它虽然不能理解自己转发的数据的内部结构,但是它能够忠实地转发通讯包,完成协议本来要完成的功能。

If your machine has a legal Internet IP address, or you can use your modem to dial up the Internet and freely communicate with any host on the Internet, you usually don’t have to care about Socks5 protocol. Socks5 protocol is useful for machines in the internal network to access the external network through some machines in the network that can connect to the external Internet. In the process of sending the communication request to the real server, Socks5 server does not change the request packet itself. After the Socks5 server receives the response from the real server, it also forwards it to the front end as it is. Therefore, Socks5 protocol is a proxy protocol, which can adapt to all kinds of application layer protocols based on TCP / IP. Although it can’t understand the internal structure of the data it forwards, it can faithfully forward the communication packets and complete the original function of the protocol.

与 SOCKS5 协议不同,HTTP 代理是通过 HTTP 协议进行的,HTTP 代理服务器软件了解通讯包的内部结构,在转发过程中还要对通讯进行某种程度的修改和转换。和 HTTP 代理协议不同,SOCKS5 实际上是一个传输层的代理协议。我们可以想象,如果每个具体的应用层协议都要设计对应的代理协议表达办法,一个特定的代理服务器无论如何也支持不过来那么多新出现的协议。因此,可以说 SOCKS5 的出现缓解了各种具体协议需要专门设计代理协议的困难局面。不过,并不是凡是使用基于 TCP/IP 协议的应用协议的软件,都可以无条件地透过 SOCKS5 服务器进行通讯,还要求前端软件本身具有 SOCKS5 的接口,才能利用 SOCKS5 代理服务器。

Different from Socks5 protocol, HTTP proxy is implemented through HTTP protocol. The HTTP proxy server software understands the internal structure of the communication package, and it also needs to modify and transform the communication to some extent in the forwarding process. Different from HTTP proxy protocol, Socks5 is actually a transport layer proxy protocol. We can imagine that if every specific application layer protocol has to design the corresponding proxy protocol expression, a specific proxy server can not support so many new protocols in any case. Therefore, it can be said that the emergence of Socks5 alleviates the difficult situation that a variety of specific protocols need to specially design proxy protocols. However, not all software that uses application protocol based on TCP / IP protocol can communicate unconditionally through Socks5 server, and the front-end software itself is required to have Socks5 interface in order to use Socks5 proxy server.

SOCKS 是一组由 Internal 工程工作小组(IETF)所开发出来的开放软件开放标准,用来处理网络安全的事宜。SOCKS 像一堵墙被夹在 Internal 服务器和客户端之间,对于出入企业网络的资讯提供流量和安全的管理。SOCKS 这个名词并不是一组英文字头的缩写,而是一个和 TCP/IP 的 Socket 端口有关的安全标准,一般防火墙系统通常是象网关(Gateway)一样是作用在 OSI 模型的第七层也就是应用层上,对 TCP/IP 的高级协议,如 Telnet、FTP、HTTP 和 SMTP 加以管制,而 SOCKS 作用在 OSI 模型的第五层也就是会话层上,像一个代理一样对客户端到服务器端或服务器和服务器之间的数据联系提供安全上的服务。

Socks is a group of open software standards developed by internal engineering working group (IETF) to deal with network security issues. Socks is like a wall sandwiched between the internal server and the client, providing traffic and security management for the information in and out of the enterprise network. Socks is not an abbreviation of a group of English words, but a security standard related to the socket port of TCP / IP. Generally, like gateway, the firewall system acts on the seventh layer of OSI model, that is, the application layer. It controls the advanced TCP / IP protocols, such as Telnet, FTP, HTTP and SMTP, while socks acts on OSI The fifth layer of the model, that is, the session layer, acts as an agent to provide security services for the data connection from client to server or between server and server.

由于 SOCKS 作用在会话层上,因此它是一个提供会话层到会话层间安全服务的方案,不受高层应用程序变更的影响。 Socks 代理只是简单地传递数据包,而不必关心是何种应用协议(比如 FTP、HTTP 和 NNTP 请求),所以 Socks 代理服务器比应用层代理服务器要快。

Since socks works on the session layer, it is a solution to provide security services from session layer to session layer, and is not affected by the changes of high-level applications. Socks proxy simply transfers packets, and does not care about the application protocol (such as FTP, HTTP and NNTP requests), so socks proxy server is faster than application layer proxy server.


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】SOCKS5是什么
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址