{"id":85763,"date":"2023-12-26T09:30:28","date_gmt":"2023-12-26T01:30:28","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=85763"},"modified":"2023-12-26T09:30:28","modified_gmt":"2023-12-26T01:30:28","slug":"ssh-socks-server","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ssh-socks-server.html","title":{"rendered":"\u5b89\u88c5\u5e26\u6709 SSH \u7684 SOCKS \u670d\u52a1\u5668\uff01"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\uff08\u901a\u8fc7 SSH \u5b9e\u73b0 TCP \/ IP \u96a7\u9053\uff08\u7aef\u53e3\u8f6c\u53d1\uff09\uff1a\u4f7f\u7528 OpenSSH \u53ef\u80fd\u7684 8 \u79cd\u573a\u666f\uff09\u4e2d\uff0c\u6211\u4eec\u770b\u5230\u4e86\u5904\u7406\u7aef\u53e3\u8f6c\u53d1\u7684\u6240\u6709\u53ef\u80fd\u60c5\u51b5\uff0c\u4e0d\u8fc7\u90a3\u53ea\u662f\u9759\u6001\u7aef\u53e3\u8f6c\u53d1\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6211\u4eec\u53ea\u4ecb\u7ecd\u4e86\u901a\u8fc7 SSH \u8fde\u63a5\u6765\u8bbf\u95ee\u53e6\u4e00\u4e2a\u7cfb\u7edf\u7684\u7aef\u53e3\u7684\u60c5\u51b5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5728\u90a3\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u672a\u6d89\u53ca\u52a8\u6001\u7aef\u53e3\u8f6c\u53d1\uff0c\u6b64\u5916\u4e00\u4e9b\u8bfb\u8005\u6ca1\u770b\u8fc7\u8be5\u6587\u7ae0\uff0c\u672c\u7bc7\u6587\u7ae0\u4e2d\u5c06\u5c1d\u8bd5\u8865\u5145\u5b8c\u6574\u3002<\/p>\n

\u5f53\u6211\u4eec\u8c08\u8bba\u4f7f\u7528 SSH \u8fdb\u884c\u52a8\u6001\u7aef\u53e3\u8f6c\u53d1\u65f6\uff0c\u6211\u4eec\u8bf4\u7684\u662f\u5c06 SSH \u670d\u52a1\u5668\u8f6c\u6362\u4e3a SOCKS \u670d\u52a1\u5668\u3002\u90a3\u4e48\u4ec0\u4e48\u662f SOCKS \u670d\u52a1\u5668\uff1f<\/p>\n

\u4f60\u77e5\u9053 Web \u4ee3\u7406\u662f\u7528\u6765\u505a\u4ec0\u4e48\u7684\u5417\uff1f\u7b54\u6848\u53ef\u80fd\u662f\u80af\u5b9a\u7684\uff0c\u56e0\u4e3a\u5f88\u591a\u516c\u53f8\u90fd\u5728\u4f7f\u7528\u5b83\u3002\u5b83\u662f\u4e00\u4e2a\u76f4\u63a5\u8fde\u63a5\u5230\u4e92\u8054\u7f51\u7684\u7cfb\u7edf\uff0c\u5141\u8bb8\u6ca1\u6709\u4e92\u8054\u7f51\u8bbf\u95ee\u7684\u5185\u90e8\u7f51\u5ba2\u6237\u7aef\u8ba9\u5176\u6d4f\u89c8\u5668\u901a\u8fc7\u4ee3\u7406\u6765\uff08\u5c3d\u7ba1\u4e5f\u6709\u900f\u660e\u4ee3\u7406\uff09\u6d4f\u89c8\u7f51\u9875\u3002Web \u4ee3\u7406\u9664\u4e86\u5141\u8bb8\u8f93\u51fa\u5230 Internet \u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u7f13\u5b58\u9875\u9762\u3001\u56fe\u50cf\u7b49\u3002\u5df2\u7ecf\u7531\u67d0\u5ba2\u6237\u7aef\u4e0b\u8f7d\u7684\u8d44\u6e90\uff0c\u53e6\u4e00\u4e2a\u5ba2\u6237\u7aef\u4e0d\u5fc5\u518d\u4e0b\u8f7d\u5b83\u4eec\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u53ef\u4ee5\u8fc7\u6ee4\u5185\u5bb9\u5e76\u76d1\u89c6\u7528\u6237\u7684\u6d3b\u52a8\u3002\u5f53\u7136\u4e86\uff0c\u5b83\u7684\u57fa\u672c\u529f\u80fd\u662f\u8f6c\u53d1 HTTP \u548c HTTPS \u6d41\u91cf\u3002<\/p>\n

\u4e00\u4e2a SOCKS \u670d\u52a1\u5668\u63d0\u4f9b\u7684\u670d\u52a1\u7c7b\u4f3c\u4e8e\u516c\u53f8\u5185\u90e8\u7f51\u7edc\u63d0\u4f9b\u7684\u4ee3\u7406\u670d\u52a1\u5668\u670d\u52a1\uff0c\u4f46\u4e0d\u9650\u4e8e HTTP\/HTTPS\uff0c\u5b83\u8fd8\u5141\u8bb8\u8f6c\u53d1\u4efb\u4f55 TCP\/IP \u6d41\u91cf\uff08SOCKS 5 \u4e5f\u652f\u6301 UDP\uff09\u3002<\/p>\n

\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u5e0c\u671b\u5728\u4e00\u4e2a\u6ca1\u6709\u76f4\u63a5\u8fde\u63a5\u5230\u4e92\u8054\u7f51\u7684\u5185\u90e8\u7f51\u4e0a\u901a\u8fc7 Thunderbird \u4f7f\u7528 POP3 \u3001 ICMP \u548c SMTP \u7684\u90ae\u4ef6\u670d\u52a1\u3002\u5982\u679c\u6211\u4eec\u53ea\u6709\u4e00\u4e2a web \u4ee3\u7406\u53ef\u4ee5\u7528\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7684\u552f\u4e00\u7684\u7b80\u5355\u65b9\u5f0f\u662f\u4f7f\u7528\u67d0\u4e2a webmail\uff08\u4e5f\u53ef\u4ee5\u4f7f\u7528 Thunderbird \u7684 Webmail \u6269\u5c55\uff09\u3002\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7 HTTP \u96a7\u9053\u6765\u8d77\u5230\u4ee3\u7406\u7684\u7528\u9014\u3002\u4f46\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u5728\u7f51\u7edc\u4e2d\u8bbe\u7f6e\u4e00\u4e2a SOCKS \u670d\u52a1\u5668\uff0c\u5b83\u53ef\u4ee5\u8ba9\u6211\u4eec\u4f7f\u7528 POP3\u3001ICMP \u548c SMTP\uff0c\u800c\u4e0d\u4f1a\u9020\u6210\u4efb\u4f55\u7684\u4e0d\u4fbf\u3002<\/p>\n

\u867d\u7136\u6709\u5f88\u591a\u8f6f\u4ef6\u53ef\u4ee5\u914d\u7f6e\u975e\u5e38\u4e13\u4e1a\u7684 SOCKS \u670d\u52a1\u5668\uff0c\u4f46\u7528 OpenSSH \u8bbe\u7f6e\u4e00\u4e2a\u53ea\u9700\u8981\u7b80\u5355\u7684\u4e00\u6761\u547d\u4ee4\uff1a<\/p>\n

Clientessh $ ssh -D 1080 user@servidorssh<\/pre>\n

\u6216\u8005\u6211\u4eec\u53ef\u4ee5\u6539\u8fdb\u4e00\u4e0b\uff1a<\/p>\n

Clientessh $ ssh -fN -D 0.0.0.0:1080 user@servidorssh<\/pre>\n

\u5176\u4e2d\uff1a<\/p>\n

    \n
  • \u9009\u9879 -D \u7c7b\u4f3c\u4e8e\u9009\u9879\u4e3a -L \u548c -R \u7684\u9759\u6001\u7aef\u53e3\u8f6c\u53d1\u3002\u50cf\u90a3\u4e9b\u4e00\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba9\u5ba2\u6237\u7aef\u53ea\u76d1\u542c\u672c\u5730\u8bf7\u6c42\u6216\u4ece\u5176\u4ed6\u8282\u70b9\u5230\u8fbe\u7684\u8bf7\u6c42\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6211\u4eec\u5c06\u8bf7\u6c42\u5173\u8054\u5230\u54ea\u4e2a\u5730\u5740\uff1a\n
    -D [bind_address:] port<\/pre>\n

    \u5728\u9759\u6001\u7aef\u53e3\u8f6c\u53d1\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u4f7f\u7528\u9009\u9879 -R \u8fdb\u884c\u53cd\u5411\u7aef\u53e3\u8f6c\u53d1\uff0c\u800c\u52a8\u6001\u8f6c\u53d1\u662f\u4e0d\u53ef\u80fd\u7684\u3002\u6211\u4eec\u53ea\u80fd\u5728 SSH \u5ba2\u6237\u7aef\u521b\u5efa SOCKS \u670d\u52a1\u5668\uff0c\u800c\u4e0d\u80fd\u5728 SSH \u670d\u52a1\u5668\u7aef\u521b\u5efa\u3002<\/li>\n

  • 1080 \u662f SOCKS \u670d\u52a1\u5668\u7684\u5178\u578b\u7aef\u53e3\uff0c\u6b63\u5982 8080 \u662f Web \u4ee3\u7406\u670d\u52a1\u5668\u7684\u5178\u578b\u7aef\u53e3\u4e00\u6837\u3002<\/li>\n
  • \u9009\u9879 -N \u9632\u6b62\u5b9e\u9645\u542f\u52a8\u8fdc\u7a0b shell \u4ea4\u4e92\u5f0f\u4f1a\u8bdd\u3002\u5f53\u6211\u4eec\u53ea\u7528 ssh \u6765\u5efa\u7acb\u96a7\u9053\u65f6\u5f88\u6709\u7528\u3002<\/li>\n
  • \u9009\u9879 -f \u4f1a\u4f7f ssh \u505c\u7559\u5728\u540e\u53f0\u5e76\u5c06\u5176\u4e0e\u5f53\u524d shell \u5206\u79bb\uff0c\u4ee5\u4fbf\u4f7f\u8be5\u8fdb\u7a0b\u6210\u4e3a\u5b88\u62a4\u8fdb\u7a0b\u3002\u5982\u679c\u6ca1\u6709\u9009\u9879 -N\uff08\u6216\u4e0d\u6307\u5b9a\u547d\u4ee4\uff09\uff0c\u5219\u4e0d\u8d77\u4f5c\u7528\uff0c\u5426\u5219\u4ea4\u4e92\u5f0f shell \u5c06\u4e0e\u540e\u53f0\u8fdb\u7a0b\u4e0d\u517c\u5bb9\u3002<\/li>\n<\/ul>\n

    \u4f7f\u7528 PuTTY \u4e5f\u53ef\u4ee5\u975e\u5e38\u7b80\u5355\u5730\u8fdb\u884c\u7aef\u53e3\u91cd\u5b9a\u5411\u3002\u4e0e ssh -D 0.0.0.0:1080 \u76f8\u5f53\u7684\u914d\u7f6e\u5982\u4e0b\uff1a
    \n\"\"<\/p>\n

    PuTTY SOCKS<\/p>\n

    \u5bf9\u4e8e\u901a\u8fc7 SOCKS \u670d\u52a1\u5668\u8bbf\u95ee\u53e6\u4e00\u4e2a\u7f51\u7edc\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982\u679c\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u5bf9 SOCKS \u670d\u52a1\u5668\u7684\u7279\u522b\u652f\u6301\uff0c\u5c31\u4f1a\u975e\u5e38\u65b9\u4fbf\uff08\u867d\u7136\u4e0d\u662f\u5fc5\u9700\u7684\uff09\uff0c\u5c31\u50cf\u6d4f\u89c8\u5668\u652f\u6301\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u4e00\u6837\u3002\u4f5c\u4e3a\u4e00\u4e2a\u4f8b\u5b50\uff0c\u5982 Firefox \u6216 Internet Explorer \u8fd9\u6837\u7684\u6d4f\u89c8\u5668\u4f7f\u7528 SOCKS \u670d\u52a1\u5668\u8bbf\u95ee\u53e6\u4e00\u4e2a\u7f51\u7edc\u7684\u5e94\u7528\u7a0b\u5e8f\uff1a
    \n\"\"<\/p>\n

    Firefox SOCKS<\/p>\n

    \"\"<\/p>\n

    Internet Explorer SOCKS<\/p>\n

    \u6ce8\u610f\uff1a\u4e0a\u8ff0\u622a\u56fe\u6765\u81ea IE for Linux \uff1a\u5982\u679c\u60a8\u9700\u8981\u5728 Linux \u4e0a\u4f7f\u7528 Internet Explorer\uff0c\u5f3a\u70c8\u63a8\u8350\uff01<\/p>\n

    \u7136\u800c\uff0c\u6700\u5e38\u89c1\u7684\u6d4f\u89c8\u5668\u5e76\u4e0d\u8981\u6c42 SOCKS \u670d\u52a1\u5668\uff0c\u56e0\u4e3a\u5b83\u4eec\u901a\u5e38\u4e0e\u4ee3\u7406\u670d\u52a1\u5668\u914d\u5408\u5f97\u66f4\u597d\u3002<\/p>\n

    \u4e0d\u8fc7\uff0cThunderbird \u4e5f\u652f\u6301 SOCKS\uff0c\u800c\u4e14\u5f88\u6709\u7528\uff1a
    \n\"\"<\/p>\n

    Thunderbird SOCKS<\/p>\n

    \u53e6\u4e00\u4e2a\u4f8b\u5b50\uff1aSpotify \u5ba2\u6237\u7aef\u540c\u6837\u652f\u6301 SOCKS\uff1a
    \n\"\"<\/p>\n

    Spotify SOCKS<\/p>\n

    \u9700\u8981\u5173\u6ce8\u4e00\u4e0b\u540d\u79f0\u89e3\u6790\u3002\u6709\u65f6\u6211\u4eec\u4f1a\u53d1\u73b0\uff0c\u5728\u76ee\u524d\u7684\u7f51\u7edc\u4e2d\uff0c\u6211\u4eec\u65e0\u6cd5\u89e3\u6790 SOCKS \u670d\u52a1\u5668\u53e6\u4e00\u7aef\u6240\u8981\u8bbf\u95ee\u7684\u7cfb\u7edf\u7684\u540d\u79f0\u3002SOCKS 5 \u8fd8\u5141\u8bb8\u6211\u4eec\u901a\u8fc7\u96a7\u9053\u4f20\u64ad DNS \u8bf7\u6c42\uff08 \u56e0\u4e3a SOCKS 5 \u5141\u8bb8\u6211\u4eec\u4f7f\u7528 UDP\uff09\u5e76\u5c06\u5b83\u4eec\u53d1\u9001\u5230\u53e6\u4e00\u7aef\uff1a\u53ef\u4ee5\u6307\u5b9a\u662f\u672c\u5730\u8fd8\u662f\u8fdc\u7a0b\u89e3\u6790\uff08\u6216\u8005\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u8bd5\u8bd5\uff09\u3002\u652f\u6301\u6b64\u529f\u80fd\u7684\u5e94\u7528\u7a0b\u5e8f\u4e5f\u5fc5\u987b\u8003\u8651\u5230\u8fd9\u4e00\u70b9\u3002\u4f8b\u5982\uff0cFirefox \u5177\u6709\u53c2\u6570 network.proxy.socks_remote_dns\uff08\u5728 about:config \u4e2d\uff09\uff0c\u5141\u8bb8\u6211\u4eec\u6307\u5b9a\u8fdc\u7a0b\u89e3\u6790\u3002\u800c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b83\u5728\u672c\u5730\u89e3\u6790\u3002<\/p>\n

    Thunderbird \u4e5f\u652f\u6301\u53c2\u6570 network.proxy.socks_remote_dns\uff0c\u4f46\u7531\u4e8e\u6ca1\u6709\u5730\u5740\u680f\u6765\u653e\u7f6e about:config\uff0c\u6211\u4eec\u9700\u8981\u6539\u53d8\u5b83\uff0c\u5c31\u50cf\u5728 MozillaZine:about:config \u4e2d\u8bfb\u5230\u7684\uff0c\u4f9d\u6b21\u70b9\u51fb \u5de5\u5177 \u2192 \u9009\u9879 \u2192 \u9ad8\u7ea7 \u2192 \u5e38\u89c4 \u2192 \u914d\u7f6e\u7f16\u8f91\u5668\uff08\u6309\u94ae\uff09\u3002<\/p>\n

    \u6ca1\u6709\u5bf9 SOCKS \u7279\u522b\u652f\u6301\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u88ab sock \u5316socksified\u3002\u8fd9\u5bf9\u4e8e\u4f7f\u7528 TCP\/IP \u7684\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\u90fd\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u5e76\u4e0d\u662f\u5168\u90e8\u3002\u201csock \u5316\u201d \u9700\u8981\u52a0\u8f7d\u4e00\u4e2a\u989d\u5916\u7684\u5e93\uff0c\u5b83\u53ef\u4ee5\u68c0\u6d4b\u5bf9 TCP\/IP \u5806\u6808\u7684\u8bf7\u6c42\uff0c\u5e76\u4fee\u6539\u8bf7\u6c42\uff0c\u4ee5\u901a\u8fc7 SOCKS \u670d\u52a1\u5668\u91cd\u5b9a\u5411\uff0c\u4ece\u800c\u4e0d\u9700\u8981\u7279\u522b\u7f16\u7a0b\u6765\u652f\u6301 SOCKS \u4fbf\u53ef\u4ee5\u6b63\u5e38\u901a\u4fe1\u3002<\/p>\n

    \u5728 Windows \u548c Linux \u4e0a\u90fd\u6709 \u201cSock \u5316\u5de5\u5177\u201d\u3002<\/p>\n

    \u5bf9\u4e8e Windows\uff0c\u6211\u4eec\u4e3e\u4e2a\u4f8b\u5b50\uff0cSocksCap \u662f\u4e00\u79cd\u95ed\u6e90\uff0c\u4f46\u5bf9\u975e\u5546\u4e1a\u4f7f\u7528\u514d\u8d39\u7684\u4ea7\u54c1\uff0c\u6211\u4f7f\u7528\u4e86\u5f88\u957f\u65f6\u95f4\u90fd\u5341\u5206\u6ee1\u610f\u3002SocksCap \u7531\u4e00\u5bb6\u540d\u4e3a Permeo \u7684\u516c\u53f8\u5f00\u53d1\uff0c\u8be5\u516c\u53f8\u662f\u521b\u5efa SOCKS \u53c2\u8003\u6280\u672f\u7684\u516c\u53f8\u3002Permeo \u88ab Blue Coat \u4e70\u4e0b\u540e\uff0c\u5b83\u505c\u6b62\u4e86 SocksCap \u9879\u76ee\u3002\u73b0\u5728\u4f60\u4ecd\u7136\u53ef\u4ee5\u5728\u4e92\u8054\u7f51\u4e0a\u627e\u5230 sc32r240.exe \u6587\u4ef6\u3002FreeCap \u4e5f\u662f\u9762\u5411 Windows \u7684\u514d\u8d39\u4ee3\u7801\u9879\u76ee\uff0c\u5916\u89c2\u548c\u4f7f\u7528\u90fd\u975e\u5e38\u7c7b\u4f3c\u4e8e SocksCap\u3002\u7136\u800c\uff0c\u5b83\u5de5\u4f5c\u8d77\u6765\u66f4\u52a0\u7cdf\u7cd5\uff0c\u591a\u5e74\u6765\u4e00\u76f4\u6ca1\u6709\u7f3a\u5931\u7ef4\u62a4\u3002\u770b\u8d77\u6765\uff0c\u5b83\u7684\u4f5c\u8005\u503e\u5411\u4e8e\u63a8\u51fa\u9700\u8981\u4ed8\u6b3e\u7684\u65b0\u4ea7\u54c1 WideCap\u3002<\/p>\n

    \u8fd9\u662f SocksCap \u7684\u4e00\u4e2a\u754c\u9762\uff0c\u53ef\u4ee5\u770b\u5230\u6211\u4eec \u201csock \u5316\u201d \u4e86\u7684\u51e0\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002\u5f53\u6211\u4eec\u4ece\u8fd9\u91cc\u542f\u52a8\u5b83\u4eec\u65f6\uff0c\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u5c06\u901a\u8fc7 SOCKS \u670d\u52a1\u5668\u8bbf\u95ee\u7f51\u7edc\uff1a
    \n\"\"<\/p>\n

    SocksCap<\/p>\n

    \u5728\u914d\u7f6e\u5bf9\u8bdd\u6846\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u5982\u679c\u9009\u62e9\u4e86\u534f\u8bae SOCKS 5\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u5728\u672c\u5730\u6216\u8fdc\u7a0b\u89e3\u6790\u540d\u79f0\uff1a
    \n\"\"<\/p>\n

    SocksCap settings<\/p>\n

    \u5728 Linux \u4e0a\uff0c\u5982\u540c\u5f80\u5e38\u4e00\u6837\uff0c\u5bf9\u67d0\u4e2a\u8fdc\u7a0b\u547d\u4ee4\u6211\u4eec\u90fd\u6709\u8bb8\u591a\u66ff\u4ee3\u65b9\u6848\u3002\u5728 Debian\/Ubuntu \u4e2d\uff0c\u547d\u4ee4\u884c\uff1a<\/p>\n

    $ Apt-cache search socks<\/pre>\n

    \u7684\u8f93\u51fa\u4f1a\u544a\u8bc9\u6211\u4eec\u5f88\u591a\u3002<\/p>\n

    \u6700\u8457\u540d\u7684\u662f tsocks \u548c proxychains\u3002\u5b83\u4eec\u7684\u5de5\u4f5c\u65b9\u5f0f\u5927\u81f4\u76f8\u540c\uff1a\u53ea\u9700\u7528\u5b83\u4eec\u542f\u52a8\u6211\u4eec\u60f3\u8981 \u201csock \u5316\u201d \u7684\u5e94\u7528\u7a0b\u5e8f\u5c31\u884c\u3002\u4f7f\u7528 proxychains \u7684 wget \u7684\u4f8b\u5b50\uff1a<\/p>\n

    $ Proxychains wget http:\/\/www.google.com\r\nProxyChains-3.1 (http:\/\/proxychains.sf.net)\r\n--19: 13: 20-- http:\/\/www.google.com\/\r\nResolving www.google.com ...\r\nDNS-request | Www.google.com\r\n| S-chain | - <- - 10.23.37.3:1080-<><>-4.2.2.2:53-<><>-OK\r\n| DNS-response | Www.google.com is 72.14.221.147\r\n72.14.221.147\r\nConnecting to www.google.com | 72.14.221.147 |: 80 ...\r\n| S-chain | - <- - 10.23.37.3:1080-<><>-72.14.221.147:80-<><>-OK\r\nConnected.\r\nHTTP request sent, awaiting response ... 200 OK\r\nLength: unspecified [text \/ html]\r\nSaving to: `index.html '\r\n[<=>] 6,016 24.0K \/ s in 0.2s\r\n19:13:21 (24.0 KB \/ s) - `index.html 'saved [6016]<\/pre>\n

    \u8981\u8ba9\u5b83\u53ef\u4ee5\u5de5\u4f5c\uff0c\u6211\u4eec\u5fc5\u987b\u5728 \/etc\/proxychains.conf \u4e2d\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u4ee3\u7406\u670d\u52a1\u5668\uff1a<\/p>\n

    [ProxyList]\r\nSocks5 clientessh 1080<\/pre>\n

    \u6211\u4eec\u4e5f\u8bbe\u7f6e\u8fdc\u7a0b\u8fdb\u884c DNS \u8bf7\u6c42\uff1a<\/p>\n

    # Proxy DNS requests - no leak for DNS data<\/p>\n

    Proxy_dns<\/pre>\n

    \u53e6\u5916\uff0c\u5728\u524d\u9762\u7684\u8f93\u51fa\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u770b\u5230\u4e86\u540c\u4e00\u4e2a proxychains \u7684\u51e0\u6761\u4fe1\u606f\u6027\u7684\u6d88\u606f\uff0c \u975e wget \u7684\u884c\u662f\u6807\u6709\u5b57\u7b26\u4e32 |DNS-request|\u3001|S-chain| \u6216 |DNS-response| \u7684\u3002\u5982\u679c\u6211\u4eec\u4e0d\u60f3\u770b\u5230\u5b83\u4eec\uff0c\u4e5f\u53ef\u4ee5\u5728\u914d\u7f6e\u4e2d\u8fdb\u884c\u8c03\u6574\uff1a<\/p>\n

    # Quiet mode (no output from library)<\/p>\n

    Quiet_mode<\/pre>\n

    via: https:\/\/wesharethis.com\/2017\/07\/15\/dynamic-port-forwarding-mount-socks-server-ssh\/<\/p>\n

    \u4f5c\u8005\uff1aAhmad \u8bd1\u8005\uff1afirmianay \u6821\u5bf9\uff1ajasminepeng<\/p>\n

    \u672c\u6587\u7531 LCTT \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd \u8363\u8a89\u63a8\u51fa<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-8947-1.html<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/ssh-socks-server.html<\/a>\u7f16\u8f91\uff1a\u9ad8\u519b\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u5bfc\u8bfb \u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\uff08\u901a\u8fc7 SSH \u5b9e\u73b0 TCP \/ IP \u96a7\u9053\uff08\u7aef\u53e3\u8f6c\u53d1\uff09\uff1a\u4f7f\u7528 OpenSSH \u53ef\u80fd\u7684 8 […]<\/p>\n","protected":false},"author":63,"featured_media":85817,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-85763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/85763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=85763"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/85763\/revisions"}],"predecessor-version":[{"id":85916,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/85763\/revisions\/85916"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/85817"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=85763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=85763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=85763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}