{"id":1230,"date":"2023-09-24T18:28:41","date_gmt":"2023-09-24T10:28:41","guid":{"rendered":"http:\/\/davidblus.top\/wordpress\/?p=1230"},"modified":"2025-10-02T20:29:19","modified_gmt":"2025-10-02T12:29:19","slug":"ke_xue_shang_wang_bei_wang","status":"publish","type":"post","link":"http:\/\/davidblus.top\/wordpress\/index.php\/2023\/09\/24\/ke_xue_shang_wang_bei_wang\/","title":{"rendered":"ssh\u52a8\u6001\u7aef\u53e3\u8f6c\u53d1->socks5->Android\u624b\u673a\u4f7f\u7528"},"content":{"rendered":"\n<p>ssh\u96a7\u9053\uff1a<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/148825449\" target=\"_blank\" rel=\"noreferrer noopener\">\u5f7b\u5e95\u641e\u61c2SSH\u7aef\u53e3\u8f6c\u53d1\u547d\u4ee4<\/a> \u3002\u6839\u636e\u8fd9\u7bc7\u6587\u7ae0\uff0c\u6574\u51fa\u6765\u4e86\u4e00\u4e2a\u65b0\u7684\u7b80\u5355\u7684\u96a7\u9053socks5\u4ee3\u7406\uff1a<code>autossh -M 5300 -N -f -D \"*:8688\" Amazon<\/code>\uff0c\u5b9e\u9645\u8fd0\u884c\u547d\u4ee4\u4e3a\uff1a<code>ssh -L 5300:127.0.0.1:5300 -R 5300:127.0.0.1:5301 -N -D \"*:8688\" Amazon<\/code>\uff0c\u5173\u952e\u5728\u4e8e-D\u53c2\u6570\u3002\u8fd9\u6837\u7684\u8bdd\u5c31\u76f4\u63a5\u641e\u51fa\u6765\u4e86\u4e00\u4e2a\u672c\u5730\u7684socks5\u4ee3\u7406\uff0c\u76d1\u542c<code>0.0.0.0:8688<\/code>\uff0c\u90fd\u4e0d\u9700\u8981AWS\u4e0a\u9762\u8d77squid\u4ee3\u7406\u670d\u52a1\u4e86\uff0c\u5c11\u4e861\u5c42\u4e2d\u8f6c\uff0c\u7406\u8bba\u4e0a\u901f\u5ea6\u4f1a\u6bd4\u7ecf\u8fc7squid\u7684\u5feb\u3002\u5b9e\u9645\u4f7f\u7528\u611f\u53d7\u4e0b\u6765\uff0c\u7684\u786e\u66f4\u5feb\u4e86\u3002\u5982\u679c\u53ea\u662f\u5728MAC\u4e0aChrome\u6d4f\u89c8\u5668\u4f7f\u7528\u8fd9\u4e2asocks5\u4ee3\u7406\uff0c\u90a3\u4e48\u662f\u5b8c\u5168\u6ca1\u95ee\u9898\u7684\uff0c\u95ee\u9898\u5728\u4e8e\u6211\u540c\u4e00\u4e2awifi\u4e0b\u7684Android\u624b\u673a\u600e\u4e48\u7528\u8fd9\u4e2asocks5\u4ee3\u7406\u5462\uff1f<\/p>\n\n\n\n<p>\u4e4b\u524d\u641eOculus\u7684\u65f6\u5019<a href=\"http:\/\/davidblus.top\/wordpress\/index.php\/2021\/12\/14\/oculus_quest2_chu_tan\/\">\u5229\u7528VPN\u641e\u4e86\u4e2a\u79d1\u5b66\u4e0a\u7f51\u7684wifi\u70ed\u70b9<\/a>\uff0c\u5176\u5b9e\u4e5f\u80fd\u89e3\u51b3Android\u624b\u673a\u4e0a\u7f51\u7684\u95ee\u9898\uff0c\u4f46\u662f\u4e0d\u77e5\u4e3a\u5565\uff0c\u8fd9\u4e24\u5929\u5c31\u60f3\u770b\u770b\u600e\u4e48\u8ba9Android\u624b\u673a\u7528\u4e0a\u8fd9\u4e2asocks5\u4ee3\u7406\u3002\u3002\u7ecf\u8fc7\u591a\u79cd\u5c1d\u8bd5\uff0c\u76f4\u63a5\u5199\u6210\u529f\u7684\u64cd\u4f5c\u5427\uff0c\u540c\u4e00\u4e2awifi\u4e0b\u7684Android\u624b\u673a\uff0c\u5b89\u88c5v2rayNG\u8f6f\u4ef6\uff0c\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u540c\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d\u7684socks5\u4ee3\u7406\uff0c\u7136\u540e\u8bbe\u7f6e\u4e2d\u8981\u6253\u5f00\u201c\u542f\u7528\u672c\u5730DNS\u201d\u548c\u201c\u542f\u7528\u865a\u62dfDNS\u201d\uff0c\u7136\u540e\u5c31OK\u4e86\uff0c\u5c31\u53ef\u4ee5\u5168\u5c40TCP\u6d41\u91cf\u90fd\u8d70socks5\u4ee3\u7406\u4e86\u3002\u56e0\u4e3asocks5\u4ee3\u7406\u4e0d\u80fd\u8f6c\u53d1UDP\u534f\u8bae\uff08\u6216\u8005\u53ef\u80fd\u662fssh\u7aef\u53e3\u8f6c\u53d1\u4e0d\u80fd\u8f6c\u53d1UDP\u534f\u8bae\uff09\uff0c\u6240\u4ee5\u8981\u7528\u672c\u5730\u7684DNS\u3002\u53e6\u5916\u6ce8\u610f\u4e00\u70b9\uff0cAndroid\u7cfb\u7edf\u7684wifi\u914d\u7f6e\u4e2d\u7684\u4ee3\u7406\u8bbe\u7f6e\uff0c\u662f\u6307http\/s\u4ee3\u7406\uff0c\u4e0d\u80fd\u4f7f\u7528socks\u4ee3\u7406\u3002<\/p>\n\n\n\n<p>\u90a3\u4e48\u603b\u7ed3\u4e00\u4e0b\uff0c\u540e\u9762\u5bf9\u4e8e\u65b0\u7684AWS EC2\u673a\u5668\uff0csquid\u670d\u52a1\u4e5f\u662f\u7684\u53ef\u9009\u9879\u800c\u975e\u5fc5\u9009\u9879\u4e86\uff0c\u53ea\u5229\u7528ssh\u52a8\u6001\u7aef\u53e3\u8f6c\u53d1\u5373\u53ef\u5b9e\u73b0socks5\u4ee3\u7406\uff0c\u800c\u5982\u679c\u60f3\u8981\u4ee3\u7406UDP\u7684\u8bdd\uff0c\u6bd4\u5982Oculus\u7684\u573a\u666f\uff0c\u5c31\u53ea\u9700\u8981\u518d\u642d\u5efaVPN server\u5c31\u884c\u4e86\uff0c\u5b8c\u5168\u4e0d\u9700\u8981squid\u670d\u52a1\u4e86\u3002<\/p>\n\n\n\n<p>\u7136\u540e\uff0c\u6211\u7a81\u7136\u60f3\u5230Android\u624b\u673a\u662f\u4e0d\u662f\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8fd9\u4e48\u641e\uff0c\u4e0d\u7528\u7ecf\u8fc7\u7535\u8111\u8f6c\u4e00\u9053\u4e86\u3002\u90a3\u4e48\u5c31\u8981\u8ba9\u624b\u673a\u4e5f\u80fdssh\u5230\u6211\u7684AWS\uff0c\u7136\u540e\u80fd\u591f\u8fdb\u884c\u52a8\u6001\u7aef\u53e3\u8f6c\u53d1\uff0c\u4e5f\u662f\u672c\u5730\u8d77\u4e00\u4e2asocks5\u4ee3\u7406\uff0c\u7136\u540e\u518d\u8ba9\u624b\u673a\u8fde\u5230\u8fd9\u4e2asocks5\u4ee3\u7406\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u7ecf\u8fc7\u5c1d\u8bd5\uff0c\u6700\u540e\u53d1\u73b0\u6709\u4e2a\u8f6f\u4ef6\u592a\u725b\u4e86\uff0cTermius\uff0c\u8fd9\u4e2a\u4e0d\u4ec5\u652f\u6301ssh\u5230AWS\uff0c\u800c\u4e14\u8fd8\u81ea\u5e26\u7aef\u53e3\u8f6c\u53d1\u529f\u80fd\uff0c\u76f4\u63a5\u7528\u5b83\u73b0\u6210\u7684\u529f\u80fd\u5373\u53ef\u672c\u5730\u8d77\u4e00\u4e2a\u76d1\u542clocalhost\u7684socks5\u4ee3\u7406\uff0c\u7136\u540e\u518d\u7528\u4e0a\u9762\u7528\u8fc7\u7684v2rayNG\uff0c\u8d70\u672c\u5730\u8d77\u7684\u8fd9\u4e2asocks\u4ee3\u7406\uff0c\u5f3a\u5f3a\u5f3a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ssh\u96a7\u9053\uff1a\u5f7b\u5e95\u641e\u61c2SSH\u7aef\u53e3\u8f6c\u53d1\u547d\u4ee4 \u3002\u6839\u636e\u8fd9\u7bc7\u6587\u7ae0\uff0c\u6574\u51fa\u6765\u4e86\u4e00\u4e2a\u65b0\u7684\u7b80\u5355\u7684\u96a7\u9053socks5\u4ee3\u7406\uff1aautos &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/davidblus.top\/wordpress\/index.php\/2023\/09\/24\/ke_xue_shang_wang_bei_wang\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cssh\u52a8\u6001\u7aef\u53e3\u8f6c\u53d1->socks5->Android\u624b\u673a\u4f7f\u7528\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1230","post","type-post","status-publish","format-standard","hentry","category-ke_xue_shang_wang","entry"],"_links":{"self":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=1230"}],"version-history":[{"count":5,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1230\/revisions"}],"predecessor-version":[{"id":1329,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1230\/revisions\/1329"}],"wp:attachment":[{"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/davidblus.top\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}