{"id":479051,"date":"2023-08-09T10:01:33","date_gmt":"2023-08-09T10:01:33","guid":{"rendered":""},"modified":"2023-09-05T11:18:04","modified_gmt":"2023-09-05T11:18:04","slug":"socks","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/cn\/wiki\/socks\/","title":{"rendered":"SOCKS"},"content":{"rendered":"<p>SOCKS \u662f Socket Secure \u7684\u7f29\u5199\uff0c\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u4ee3\u7406\u534f\u8bae\uff0c\u53ef\u4fc3\u8fdb\u8ba1\u7b97\u673a\u7f51\u7edc\u4e0a\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u5b89\u5168\u548c\u533f\u540d\u901a\u4fe1\u3002\u5b83\u5728 OSI \u6a21\u578b\u7684\u4f20\u8f93\u5c42\u8fd0\u884c\uff0c\u4e3a\u6570\u636e\u5305\u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u4f20\u8f93\u63d0\u4f9b\u8def\u5f84\uff0c\u4ece\u800c\u589e\u5f3a\u9690\u79c1\u3001\u7ed5\u8fc7\u5185\u5bb9\u9650\u5236\u5e76\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<h2>SOCKS\u7684\u8d77\u6e90\u5386\u53f2\u548c\u9996\u6b21\u63d0\u53ca<\/h2>\n<p>SOCKS \u534f\u8bae\u6700\u521d\u7531 David Koblas \u4e8e 20 \u4e16\u7eaa 90 \u5e74\u4ee3\u521d\u5f00\u53d1\uff0c\u968f\u540e\u7531 Ying-Da Lee \u548c Marcus Ranum \u8bb0\u5f55\u3002\u521b\u5efa SOCKS \u7684\u4e3b\u8981\u52a8\u673a\u662f\u4f7f\u672c\u5730\u7f51\u7edc\u4e2d\u7684\u8ba1\u7b97\u673a\u80fd\u591f\u901a\u8fc7\u5355\u4e2a\u7f51\u5173\u5b89\u5168\u5730\u8bbf\u95ee\u4e92\u8054\u7f51\u3002\u7b2c\u4e00\u6b21\u63d0\u53ca SOCKS \u53ef\u4ee5\u8ffd\u6eaf\u5230 90 \u5e74\u4ee3\u521d\uff0c\u5f53\u65f6\u8be5\u534f\u8bae\u4f5c\u4e3a SOCKS v4 \u89c4\u8303\u7684\u4e00\u90e8\u5206\u5f15\u5165\u3002<\/p>\n<h2>\u6709\u5173 SOCKS \u7684\u8be6\u7ec6\u4fe1\u606f\uff1a\u6269\u5c55\u4e3b\u9898 SOCKS<\/h2>\n<p>SOCKS \u4f5c\u4e3a\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u4e2d\u4ecb\u8fd0\u884c\u3002\u5f53\u5ba2\u6237\u7aef\u8bf7\u6c42\u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u65f6\uff0c\u8bf7\u6c42\u5c06\u8f6c\u53d1\u5230 SOCKS \u670d\u52a1\u5668\u3002\u7136\u540e\uff0cSOCKS \u670d\u52a1\u5668\u4ee3\u8868\u5ba2\u6237\u7aef\u4e0e\u76ee\u6807\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5\uff0c\u5728\u4e24\u4e2a\u7aef\u70b9\u4e4b\u95f4\u6765\u56de\u4e2d\u7ee7\u6570\u636e\u3002\u6b64\u8fc7\u7a0b\u521b\u5efa\u4e00\u6761\u5b89\u5168\u96a7\u9053\uff0c\u6240\u6709\u6570\u636e\u6d41\u91cf\u90fd\u6d41\u7ecf\u8be5\u96a7\u9053\uff0c\u786e\u4fdd\u9690\u85cf\u5ba2\u6237\u7aef\u7684 IP \u5730\u5740\u5e76\u589e\u5f3a\u5b89\u5168\u6027\u3002<\/p>\n<p>\u4e0e\u5176\u4ed6\u4e13\u6ce8\u4e8e\u7279\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7406\u534f\u8bae\u4e0d\u540c\uff0cSOCKS \u662f\u72ec\u7acb\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\uff0c\u4f7f\u5176\u5177\u6709\u901a\u7528\u6027\u5e76\u9002\u7528\u4e8e\u5e7f\u6cdb\u7684\u7f51\u7edc\u670d\u52a1\u3002\u5b83\u652f\u6301\u591a\u79cd\u8eab\u4efd\u9a8c\u8bc1\u65b9\u6cd5\uff0c\u5305\u62ec\u65e0\u8eab\u4efd\u9a8c\u8bc1\u3001\u7528\u6237\u540d\/\u5bc6\u7801\u548c GSSAPI\uff08\u901a\u7528\u5b89\u5168\u670d\u52a1\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3\uff09\uff0c\u4ece\u800c\u5141\u8bb8\u7075\u6d3b\u7684\u7528\u6237\u8bbf\u95ee\u63a7\u5236\u3002<\/p>\n<h2>SOCKS\u7684\u5185\u90e8\u7ed3\u6784\uff1aSOCKS\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>\u8981\u4e86\u89e3 SOCKS \u7684\u5de5\u4f5c\u539f\u7406\uff0c\u6709\u5fc5\u8981\u63a2\u7d22\u5176\u5185\u90e8\u7ed3\u6784\u3002\u5f53\u5ba2\u6237\u7aef\u53d1\u8d77\u4e0e\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u8fde\u63a5\u65f6\uff0c\u4f1a\u53d1\u751f\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u5ba2\u6237\u7aef\u53d1\u9001\u8fde\u63a5\u8bf7\u6c42<\/strong>\uff1a\u5ba2\u6237\u7aef\u5411SOCKS\u670d\u52a1\u5668\u53d1\u9001\u8fde\u63a5\u8bf7\u6c42\uff0c\u6307\u5b9a\u76ee\u6807\u670d\u52a1\u5668\u7684IP\u5730\u5740\u548c\u7aef\u53e3\u53f7\u3002<\/p>\n<\/li>\n<li>\n<p><strong>SOCKS\u670d\u52a1\u5668\u8bc4\u4f30\u8bf7\u6c42<\/strong>\uff1aSOCKS\u670d\u52a1\u5668\u68c0\u67e5\u8bf7\u6c42\uff0c\u5982\u679c\u9700\u8981\u5219\u6267\u884c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u5e76\u6839\u636e\u9884\u5b9a\u4e49\u7684\u89c4\u5219\u51b3\u5b9a\u662f\u5426\u5141\u8bb8\u8bbf\u95ee\u6216\u62d2\u7edd\u8bbf\u95ee\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5efa\u7acb\u8fde\u63a5<\/strong>\uff1a\u5982\u679c\u8bf7\u6c42\u88ab\u6279\u51c6\uff0cSOCKS \u670d\u52a1\u5668\u4ee3\u8868\u5ba2\u6237\u7aef\u521b\u5efa\u4e0e\u76ee\u6807\u670d\u52a1\u5668\u7684\u8fde\u63a5\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u4e2d\u7ee7<\/strong>\uff1a\u8fde\u63a5\u5efa\u7acb\u540e\uff0cSOCKS \u670d\u52a1\u5668\u5728\u5ba2\u6237\u7aef\u548c\u76ee\u6807\u670d\u52a1\u5668\u4e4b\u95f4\u53cc\u5411\u4e2d\u7ee7\u6570\u636e\uff0c\u5145\u5f53\u4e2d\u4ecb\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8fde\u63a5\u7ec8\u6b62<\/strong>\uff1a\u5f53\u5ba2\u6237\u7aef\u6216\u670d\u52a1\u5668\u7ec8\u6b62\u8fde\u63a5\u65f6\uff0cSOCKS\u670d\u52a1\u5668\u5173\u95ed\u76f8\u5e94\u7684\u8fde\u63a5\uff0c\u7ed3\u675f\u6570\u636e\u6d41\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>SOCKS\u5173\u952e\u7279\u6027\u5206\u6790<\/h2>\n<p>SOCKS \u56e0\u5176\u4e3b\u8981\u7279\u6027\u800c\u4ece\u5176\u4ed6\u4ee3\u7406\u534f\u8bae\u4e2d\u8131\u9896\u800c\u51fa\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u5e94\u7528\u7a0b\u5e8f\u72ec\u7acb\u6027<\/strong>\uff1aSOCKS \u5bf9\u5e94\u7528\u7a0b\u5e8f\u662f\u900f\u660e\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u4e0e\u4efb\u4f55\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u4e00\u8d77\u4f7f\u7528\uff0c\u800c\u65e0\u9700\u4fee\u6539\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u534f\u8bae\u652f\u6301<\/strong>\uff1a\u5b83\u652f\u6301\u5404\u79cd\u534f\u8bae\uff0c\u5305\u62ec TCP\u3001UDP \u548c IPv4\/IPv6\uff0c\u4f7f\u5176\u9002\u7528\u4e8e\u4e0d\u540c\u7c7b\u578b\u7684\u7f51\u7edc\u6d41\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8eab\u4efd\u9a8c\u8bc1\u9009\u9879<\/strong>\uff1aSOCKS\u63d0\u4f9b\u591a\u79cd\u8eab\u4efd\u9a8c\u8bc1\u65b9\u6cd5\uff0c\u5141\u8bb8\u7ba1\u7406\u5458\u6839\u636e\u5b89\u5168\u9700\u6c42\u63a7\u5236\u8bbf\u95ee\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9632\u706b\u5899\u548c NAT \u53cb\u597d<\/strong>\uff1aSOCKS \u4e0e\u9632\u706b\u5899\u548c\u7f51\u7edc\u5730\u5740\u8f6c\u6362 (NAT) \u914d\u7f6e\u914d\u5408\u826f\u597d\uff0c\u5373\u4f7f\u5728\u590d\u6742\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u4e5f\u80fd\u786e\u4fdd\u901a\u4fe1\u987a\u7545\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7406\u94fe<\/strong>\uff1aSOCKS \u53ef\u4ee5\u4e0e\u5176\u4ed6\u4ee3\u7406\u534f\u8bae\u7ed3\u5408\u4f7f\u7528\uff0c\u542f\u7528\u4ee3\u7406\u94fe\u63a5\u4ee5\u589e\u52a0\u533f\u540d\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>SOCKS\u7684\u7c7b\u578b\uff1a\u7528\u8868\u683c\u548c\u5217\u8868\u6765\u5199<\/h2>\n<p>SOCKS\u7ecf\u5386\u4e86\u591a\u6b21\u8fed\u4ee3\uff0c\u6bcf\u4e2a\u7248\u672c\u90fd\u63d0\u4f9b\u4e86\u5404\u79cd\u6539\u8fdb\u3002 SOCKS \u6700\u8457\u540d\u7684\u7248\u672c\u662f\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>SOCKS\u7248\u672c<\/th>\n<th>\u7279\u5f81<\/th>\n<th>\u53d1\u5e03\u5e74\u4efd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>SOCKS4<\/td>\n<td>&ndash; \u652f\u6301 TCP \u548c\u57fa\u4e8e TCP \u7684\u534f\u8bae\u3002&lt;br&gt; &ndash; \u4e0d\u652f\u6301 UDP \u6d41\u91cf\u3002&lt;br&gt; &ndash; \u4e0d\u652f\u6301\u8eab\u4efd\u9a8c\u8bc1\u3002&lt;br&gt; &ndash; \u4ec5\u9650 IPv4\u3002<\/td>\n<td>1993<\/td>\n<\/tr>\n<tr>\n<td>SOCKS4a<\/td>\n<td>&ndash; SOCKS4 \u7684\u6240\u6709\u529f\u80fd\u3002&lt;br&gt; &ndash; \u5728\u670d\u52a1\u5668\u7aef\u800c\u4e0d\u662f\u5ba2\u6237\u7aef\u89e3\u6790\u57df\u540d\uff0c\u5141\u8bb8\u8bbf\u95ee\u5177\u6709\u52a8\u6001IP\u5730\u5740\u7684\u670d\u52a1\u5668\u3002<\/td>\n<td>1998<\/td>\n<\/tr>\n<tr>\n<td>SOCKS5<\/td>\n<td>&ndash; \u652f\u6301TCP\u3001UDP\u4ee5\u53ca\u591a\u79cd\u8ba4\u8bc1\u65b9\u5f0f\u3002&lt;br&gt; &ndash; IPv4 \u548c IPv6 \u517c\u5bb9\u3002&lt;br&gt; &ndash; \u652f\u6301\u57df\u540d\u89e3\u6790\u3002&lt;br&gt; &ndash; GSSAPI \u652f\u6301\u3002<\/td>\n<td>1996<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>SOCKS\u7684\u4f7f\u7528\u65b9\u6cd5\u3001\u4f7f\u7528\u4e2d\u51fa\u73b0\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>SOCKS \u6709\u591a\u79cd\u7528\u9014\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u4f7f\u7528\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u589e\u5f3a\u9690\u79c1<\/strong>\uff1aSOCKS \u4f7f\u7528\u6237\u80fd\u591f\u9690\u85cf\u5176 IP \u5730\u5740\uff0c\u4ece\u800c\u5728\u8bbf\u95ee\u4e92\u8054\u7f51\u65f6\u63d0\u4f9b\u4e00\u5c42\u533f\u540d\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed5\u8fc7\u5185\u5bb9\u9650\u5236<\/strong>\uff1aSOCKS \u5141\u8bb8\u7528\u6237\u7ed5\u8fc7\u5ba1\u67e5\u63aa\u65bd\u8bbf\u95ee\u5176\u6240\u5728\u5730\u533a\u53ef\u80fd\u53d7\u5230\u9650\u5236\u6216\u963b\u6b62\u7684\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u63d0\u9ad8\u6027\u80fd<\/strong>\uff1a\u901a\u8fc7\u4f7f\u7528\u8ddd\u79bb\u76ee\u6807\u670d\u52a1\u5668\u66f4\u8fd1\u7684 SOCKS \u4ee3\u7406\u670d\u52a1\u5668\uff0c\u7528\u6237\u53ef\u4ee5\u4f53\u9a8c\u5230\u67d0\u4e9b\u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\u7684\u6027\u80fd\u6539\u8fdb\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u7136\u800c\uff0c\u4f7f\u7528 SOCKS \u4e5f\u53ef\u80fd\u4f1a\u5e26\u6765\u4e00\u4e9b\u6311\u6218\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u5168\u98ce\u9669<\/strong>\uff1a\u4f7f\u7528\u4e0d\u53d7\u4fe1\u4efb\u7684 SOCKS \u670d\u52a1\u5668\u65f6\uff0c\u5b58\u5728\u6570\u636e\u62e6\u622a\u548c\u906d\u53d7\u6076\u610f\u6d3b\u52a8\u7684\u98ce\u9669\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u53ef\u9760\u6027<\/strong>\uff1aSOCKS\u4ee3\u7406\u7684\u53ef\u9760\u6027\u53d6\u51b3\u4e8e\u4ee3\u7406\u670d\u52a1\u5668\u7684\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5f71\u54cd\u6574\u4f53\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u517c\u5bb9\u6027<\/strong>\uff1a\u867d\u7136 SOCKS \u5f97\u5230\u5e7f\u6cdb\u652f\u6301\uff0c\u4f46\u67d0\u4e9b\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u65e0\u6cd5\u5145\u5206\u5229\u7528\u5176\u529f\u80fd\uff0c\u4ece\u800c\u9650\u5236\u5176\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\u7684\u529f\u80fd\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\uff0c\u7528\u6237\u5e94\u8be5\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u503c\u5f97\u4fe1\u8d56\u7684\u4f9b\u5e94\u5546<\/strong>\uff1a\u9009\u62e9\u4fe1\u8a89\u826f\u597d\u4e14\u5177\u6709\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u8bb0\u5f55\u7684 SOCKS \u4ee3\u7406\u670d\u52a1\u63d0\u4f9b\u5546\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u52a0\u5bc6<\/strong>\uff1a\u4f7f\u7528\u989d\u5916\u7684\u52a0\u5bc6\u65b9\u6cd5\uff0c\u4f8b\u5982VPN\uff08\u865a\u62df\u4e13\u7528\u7f51\u7edc\uff09\uff0c\u4ee5\u8fdb\u4e00\u6b65\u589e\u5f3a\u4f7f\u7528SOCKS\u65f6\u7684\u6570\u636e\u5b89\u5168\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u548c\u76d1\u63a7<\/strong>\uff1a\u5b9a\u671f\u6d4b\u8bd5\u548c\u76d1\u63a7SOCKS\u670d\u52a1\u5668\u7684\u6027\u80fd\uff0c\u4ee5\u786e\u4fdd\u6700\u4f73\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u4e3b\u8981\u7279\u5f81\u4ee5\u53ca\u4e0e\u7c7b\u4f3c\u672f\u8bed\u7684\u5176\u4ed6\u6bd4\u8f83\u4ee5\u8868\u683c\u548c\u5217\u8868\u7684\u5f62\u5f0f<\/h2>\n<table>\n<thead>\n<tr>\n<th>SOCKS \u4e0e VPN<\/th>\n<th>SOCKS \u4e0e HTTP\/HTTPS \u4ee3\u7406<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5728 OSI \u6a21\u578b\u7684\u4f20\u8f93\u5c42\u8fd0\u884c\u3002<\/td>\n<td>\u5728 OSI \u6a21\u578b\u7684\u5e94\u7528\u5c42\u8fd0\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u72ec\u7acb\u4e8e\u5e94\u7528\u7a0b\u5e8f\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u534f\u8bae\u3002<\/td>\n<td>\u901a\u5e38\u4ec5\u7528\u4e8e HTTP\/HTTPS \u6d41\u91cf\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u652f\u6301 TCP \u548c UDP \u6d41\u91cf\u3002<\/td>\n<td>\u4e3b\u8981\u8bbe\u8ba1\u7528\u4e8e HTTP \u548c Web \u6d4f\u89c8\u6d3b\u52a8\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u65e0\u5185\u7f6e\u52a0\u5bc6\uff1b\u53ef\u4ee5\u4e0e VPN \u7ed3\u5408\u4f7f\u7528\u3002<\/td>\n<td>\u901a\u5e38\u63d0\u4f9b SSL \u52a0\u5bc6\u4ee5\u786e\u4fdd\u5b89\u5168\u7684 Web \u6d4f\u89c8\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u9002\u5408\u7279\u5b9a\u7684\u7f51\u7edc\u5e94\u7528\u3002<\/td>\n<td>\u63d0\u4f9b\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u517c\u5bb9\u6027\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u975e\u5e38\u9002\u5408\u67d0\u4e9b\u533f\u540d\u548c\u6027\u80fd\u8981\u6c42\u3002<\/td>\n<td>\u4e13\u6ce8\u4e8e Web \u5185\u5bb9\u8fc7\u6ee4\u548c\u7f13\u5b58\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e0eSOCKS\u76f8\u5173\u7684\u672a\u6765\u524d\u666f\u548c\u6280\u672f<\/h2>\n<p>\u968f\u7740\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cSOCKS \u534f\u8bae\u6709\u671b\u968f\u4e4b\u9002\u5e94\u548c\u6539\u8fdb\u3002 SOCKS \u7684\u4e00\u4e9b\u6f5c\u5728\u672a\u6765\u53d1\u5c55\u53ef\u80fd\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u589e\u5f3a\u5b89\u5168\u6027<\/strong>\uff1a SOCKS \u7684\u672a\u6765\u7248\u672c\u53ef\u80fd\u4f1a\u91c7\u7528\u66f4\u5f3a\u5927\u7684\u52a0\u5bc6\u65b9\u6cd5\u548c\u66f4\u5148\u8fdb\u7684\u8eab\u4efd\u9a8c\u8bc1\u673a\u5236\uff0c\u4ee5\u6ee1\u8db3\u65e5\u76ca\u589e\u957f\u7684\u5b89\u5168\u548c\u79c1\u5bc6\u901a\u4fe1\u9700\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p><strong>IPv6 \u91c7\u7528<\/strong>\uff1a\u968f\u7740 IPv6 \u7684\u65e5\u76ca\u666e\u53ca\uff0c\u672a\u6765\u7684 SOCKS \u7248\u672c\u53ef\u80fd\u4f1a\u66f4\u52a0\u5f3a\u8c03 IPv6 \u652f\u6301\uff0c\u4ee5\u786e\u4fdd\u4e0e\u73b0\u4ee3\u7f51\u7edc\u57fa\u7840\u8bbe\u65bd\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0e\u65b0\u5174\u6280\u672f\u96c6\u6210<\/strong>\uff1aSOCKS\u53ef\u4ee5\u4e0e\u533a\u5757\u94fe\u7b49\u65b0\u5174\u6280\u672f\u96c6\u6210\uff0c\u4ee5\u589e\u5f3a\u53bb\u4e2d\u5fc3\u5316\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u5982\u4f55\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u6216\u5c06\u5176\u4e0e SOCKS \u5173\u8054<\/h2>\n<p>\u4ee3\u7406\u670d\u52a1\u5668\uff08\u5305\u62ec SOCKS \u4ee3\u7406\uff09\u5145\u5f53\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u4e2d\u4ecb\u3002\u5b83\u4eec\u4f7f\u7528\u6237\u80fd\u591f\u95f4\u63a5\u8bbf\u95ee\u5185\u5bb9\u548c\u670d\u52a1\uff0c\u4ece\u800c\u63d0\u4f9b\u5404\u79cd\u597d\u5904\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u9690\u79c1\u548c\u533f\u540d<\/strong>\uff1a\u4ee3\u7406\u670d\u52a1\u5668\uff08\u5982 SOCKS \u4ee3\u7406\uff09\u4f1a\u5c4f\u853d\u7528\u6237\u7684 IP \u5730\u5740\uff0c\u63d0\u4f9b\u4e00\u5b9a\u7a0b\u5ea6\u7684\u533f\u540d\u6027\u5e76\u4fdd\u62a4\u4e2a\u4eba\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5730\u7406\u9650\u5236\u7ed5\u8fc7<\/strong>\uff1a\u4ee3\u7406\u670d\u52a1\u5668\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u8fde\u63a5\u5230\u4f4d\u4e8e\u4e0d\u540c\u533a\u57df\u7684\u670d\u52a1\u5668\u6765\u8bbf\u95ee\u5730\u7406\u9650\u5236\u7684\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5185\u5bb9\u8fc7\u6ee4<\/strong>\uff1a\u7ec4\u7ec7\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u6765\u5b9e\u65bd\u5185\u5bb9\u8fc7\u6ee4\u7b56\u7565\uff0c\u963b\u6b62\u5bf9\u7279\u5b9a\u7f51\u7ad9\u6216\u5185\u5bb9\u7c7b\u578b\u7684\u8bbf\u95ee\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4ea4\u901a\u7ba1\u7406<\/strong>\uff1a\u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u901a\u8fc7\u7f13\u5b58\u9891\u7e41\u8bf7\u6c42\u7684\u5185\u5bb9\u6765\u4f18\u5316\u7f51\u7edc\u6d41\u91cf\uff0c\u4ece\u800c\u51cf\u5c11\u5e26\u5bbd\u4f7f\u7528\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<p>\u6709\u5173 SOCKS \u53ca\u5176\u5e94\u7528\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u8003\u8651\u63a2\u7d22\u4ee5\u4e0b\u8d44\u6e90\uff1a<\/p>\n<ol>\n<li><a href=\"https:\/\/tools.ietf.org\/html\/rfc1928\" target=\"_new\" rel=\"noopener nofollow\">IETF SOCKS \u534f\u8bae\u89c4\u8303<\/a><\/li>\n<li><a href=\"https:\/\/www.vpnmentor.com\/blog\/socks-proxy-vs-vpn\/\" target=\"_new\" rel=\"noopener nofollow\">SOCKS\u548cVPN\u7684\u533a\u522b<\/a><\/li>\n<li><a href=\"https:\/\/2019.www.torproject.org\/docs\/faq.html.en#TBBSocks\" target=\"_new\" rel=\"noopener nofollow\">\u5c06 SOCKS \u4e0e Tor \u7ed3\u5408\u4f7f\u7528\u4ee5\u589e\u5f3a\u533f\u540d\u6027<\/a><\/li>\n<li><a href=\"https:\/\/oneproxy.pro\/cn\/blog\/proxy-vs-vpn-whats-the-difference\/\" target=\"_new\" rel=\"noopener\">\u4ee3\u7406\u4e0e VPN\uff1a\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/a><\/li>\n<\/ol>\n<p>\u603b\u4e4b\uff0cSOCKS \u662f\u4e00\u79cd\u901a\u7528\u4e14\u5e7f\u6cdb\u4f7f\u7528\u7684\u4ee3\u7406\u534f\u8bae\uff0c\u5728\u589e\u5f3a\u9690\u79c1\u3001\u7ed5\u8fc7\u5185\u5bb9\u9650\u5236\u548c\u63d0\u9ad8\u5404\u79cd\u7f51\u7edc\u670d\u52a1\u7684\u6027\u80fd\u65b9\u9762\u53d1\u6325\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u968f\u7740\u6280\u672f\u7684\u8fdb\u6b65\uff0cSOCKS \u9884\u8ba1\u5c06\u4e0d\u65ad\u53d1\u5c55\uff0c\u7eb3\u5165\u66f4\u5f3a\u5927\u7684\u5b89\u5168\u63aa\u65bd\u5e76\u9002\u5e94\u65b0\u7684\u7f51\u7edc\u73af\u5883\u3002\u65e0\u8bba\u662f\u7528\u4e8e\u4e2a\u4eba\u9690\u79c1\u8fd8\u662f\u4f01\u4e1a\u73af\u5883\uff0cSOCKS \u4ecd\u7136\u662f\u901a\u8fc7\u4e92\u8054\u7f51\u8fdb\u884c\u5b89\u5168\u548c\u533f\u540d\u901a\u4fe1\u7684\u91cd\u8981\u5de5\u5177\u3002<\/p>","protected":false},"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-479051","wiki","type-wiki","status-publish","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>SOCKS: The Secure and Versatile Proxy Protocol<\/mark>","faq_items":[{"question":"What is SOCKS?","answer":"<p>SOCKS, short for Socket Secure, is a widely used proxy protocol that enables secure and anonymous communication between clients and servers over a computer network. It acts as an intermediary, providing a pathway for data packets to travel through proxy servers, enhancing privacy, bypassing content restrictions, and improving performance.<\/p>"},{"question":"How did SOCKS originate, and when was it first mentioned?","answer":"<p>SOCKS was developed in the early 1990s by David Koblas and documented by Ying-Da Lee and Marcus Ranum. The first mention of SOCKS can be traced back to the early '90s when it was introduced as part of the SOCKS v4 specification.<\/p>"},{"question":"How does SOCKS work?","answer":"<p>When a client requests a connection to a remote server, the request is forwarded to the SOCKS server. The SOCKS server then establishes a connection with the destination server on behalf of the client, relaying data back and forth between the two endpoints. This process creates a secure tunnel through which all data traffic flows, ensuring the client's IP address is hidden and enhancing security.<\/p>"},{"question":"What are the key features of SOCKS?","answer":"<p>SOCKS stands out due to its application independence, supporting various protocols, authentication options, firewall and NAT compatibility, and the ability to work in conjunction with other proxy protocols for added anonymity and security.<\/p>"},{"question":"What are the different versions of SOCKS?","answer":"<p>There are three notable versions of SOCKS:<\/p><ul><li>SOCKS4: Supports TCP and TCP-based protocols, but not UDP. It lacks authentication and is limited to IPv4.<\/li><li>SOCKS4Includes all features of SOCKS4 and allows domain name resolution on the server side, enabling access to servers with dynamic IP addresses.<\/li><li>SOCKS5: Supports TCP, UDP, various authentication methods, IPv4, and IPv6. It also offers domain name resolution and GSSAPI support.<\/li><\/ul>"},{"question":"How can SOCKS be used, and what are the potential issues?","answer":"<p>SOCKS can be used to enhance privacy, bypass content restrictions, and improve performance. However, using untrusted SOCKS servers may expose users to security risks. To mitigate these risks, users should choose reputable providers, consider additional encryption methods like VPNs, and regularly test server performance.<\/p>"},{"question":"How does SOCKS compare to other proxy types?","answer":"<p>SOCKS differs from VPNs in its transport layer operation and application independence. In comparison to HTTP\/HTTPS proxies, SOCKS is more versatile, supporting both TCP and UDP traffic and offering broader application compatibility.<\/p>"},{"question":"What are the future perspectives of SOCKS?","answer":"<p>As technology evolves, SOCKS is expected to incorporate enhanced security measures, increase IPv6 compatibility, and potentially integrate with emerging technologies like blockchain for improved decentralization and security.<\/p>"},{"question":"How can proxy servers be associated with SOCKS?","answer":"<p>Proxy servers, including SOCKS proxies, act as intermediaries between clients and servers. They provide added privacy, enable bypassing of geo-restrictions, enforce content filtering, and optimize network traffic through caching.<\/p><p>For more information about SOCKS and its applications, explore the related links provided in the article.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/479051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/479051\/revisions"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media?parent=479051"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}