{"id":54843,"date":"2025-02-18T09:06:45","date_gmt":"2025-02-18T01:06:45","guid":{"rendered":"https:\/\/fwq.ai\/blog\/54843\/"},"modified":"2025-02-18T09:06:45","modified_gmt":"2025-02-18T01:06:45","slug":"%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3v2ray-tproxy%e7%9a%84%e9%85%8d%e7%bd%ae%e4%b8%8e%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/54843\/","title":{"rendered":"\u6df1\u5165\u7406\u89e3v2ray tproxy\u7684\u914d\u7f6e\u4e0e\u5e94\u7528"},"content":{"rendered":"<h2>\u76ee\u5f55<\/h2>\n<ol>\n<li>\u4ec0\u4e48\u662fv2ray tproxy\uff1f<\/li>\n<li>v2ray tproxy\u7684\u5de5\u4f5c\u539f\u7406<\/li>\n<li>v2ray tproxy\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e<\/li>\n<li>\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u7b54<\/li>\n<li>\u7ed3\u8bba<\/li>\n<\/ol>\n<h2>1. \u4ec0\u4e48\u662fv2ray tproxy\uff1f<\/h2>\n<p><em>v2ray tproxy<\/em> \u662f\u57fa\u4e8eV2Ray\u6846\u67b6\u7684\u900f\u660e\u4ee3\u7406\u5de5\u5177\u3002\u5b83\u80fd\u591f\u6709\u6548\u5730\u5c06\u6d41\u91cf\u900f\u660e\u5730\u8f6c\u53d1\u81f3\u6307\u5b9a\u7684\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4e0d\u9700\u8981\u7528\u6237\u7684\u624b\u52a8\u5e72\u9884\u3002Tproxy\u4f7f\u5f97\u5728\u9700\u8981\u5bf9\u6d41\u91cf\u8fdb\u884c\u7ba1\u7406\u548c\u63a7\u5236\u7684\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u80fd\u66f4\u65b9\u4fbf\u5730\u5b9e\u73b0\u7f51\u7edc\u4ee3\u7406\u3002<\/p>\n<h2>2. v2ray tproxy\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p><em>v2ray tproxy<\/em> \u5de5\u4f5c\u539f\u7406\u57fa\u4e8eLinux\u5185\u6838\u7684iptables\u529f\u80fd\u3002\u901a\u8fc7\u5728\u7cfb\u7edf\u5c42\u9762\u6355\u83b7\u6570\u636e\u5305\uff0cTproxy\u80fd\u591f\u65e0\u7f1d\u5c06\u6d41\u91cf\u91cd\u5b9a\u5411\u5230\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u80fd\u591f\u8bbf\u95ee\u88ab\u9650\u5236\u7684\u7f51\u7ad9\u6216\u670d\u52a1\u3002<\/p>\n<h3>2.1 Tproxy\u4e0e\u5176\u4ed6\u4ee3\u7406\u7684\u533a\u522b<\/h3>\n<p>\u4e0e\u4f20\u7edf\u7684HTTP\/SOCKS\u4ee3\u7406\u76f8\u6bd4\uff0c<em>v2ray tproxy<\/em> \u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7075\u6d3b\u6027\u548c\u900f\u660e\u6027\u3002<\/p>\n<ul>\n<li><strong>\u900f\u660e\u4ee3\u7406<\/strong>\uff1a\u7528\u6237\u4e0d\u9700\u8981\u6539\u53d8\u5176\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u7f6e\uff0c\u6240\u6709\u6d41\u91cf\u90fd\u4f1a\u81ea\u52a8\u7ecf\u8fc7\u4ee3\u7406\u3002<\/li>\n<li><strong>\u652f\u6301\u591a\u79cd\u534f\u8bae<\/strong>\uff1aTproxy\u652f\u6301\u591a\u79cd\u534f\u8bae\u7684\u8f6c\u53d1\uff0c\u5982HTTP\u3001HTTPS\u3001WebSocket\u7b49\u3002<\/li>\n<li><strong>\u9ad8\u6548\u6027\u80fd<\/strong>\uff1a\u7531\u4e8eTproxy\u662f\u901a\u8fc7\u7cfb\u7edf\u7ea7\u522b\u8fdb\u884c\u6d41\u91cf\u6355\u83b7\uff0c\u56e0\u6b64\u5728\u6027\u80fd\u4e0a\u76f8\u8f83\u4e8e\u4f20\u7edf\u4ee3\u7406\u6709\u663e\u8457\u63d0\u5347\u3002<\/li>\n<\/ul>\n<h2>3. v2ray tproxy\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e<\/h2>\n<p>\u8981\u4f7f\u7528<em>v2ray tproxy<\/em>\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5V2Ray\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u4e0e\u914d\u7f6e\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<h3>3.1 \u5b89\u88c5V2Ray<\/h3>\n<p>\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u76f4\u63a5\u5b89\u88c5V2Ray\uff1a<br \/> bash<br \/> bash &lt;(curl -L -s https:\/\/install.direct\/go.sh)<\/p>\n<h3>3.2 \u914d\u7f6eV2Ray<\/h3>\n<p>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u8981\u914d\u7f6eV2Ray\u4ee5\u542f\u7528Tproxy\u3002<\/p>\n<ol>\n<li><strong>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1a<br \/> \u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u4f4d\u4e8e <code>\/etc\/v2ray\/config.json<\/code>\u3002<\/li>\n<li><strong>\u6dfb\u52a0Tproxy\u914d\u7f6e<\/strong>\uff1a<br \/> \u5728 <code>inbounds<\/code> \u4e0b\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a<\/li>\n<\/ol>\n<p>{<br \/> \u201cport\u201d: 1080,<br \/> \u201clisten\u201d: \u201c0.0.0.0\u201d,<br \/> \u201cprotocol\u201d: \u201cdokodemo-door\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201caddress\u201d: \u201c127.0.0.1\u201d,<br \/> \u201cport\u201d: 1080<br \/> }<br \/> }<\/p>\n<ol>\n<li>\n<p><strong>\u542f\u7528iptables<\/strong>\uff1a<br \/> \u8bbe\u7f6eiptables\u89c4\u5219\u4ee5\u652f\u6301Tproxy\uff1a<br \/> bash<br \/> iptables -t mangle -N V2RAY<br \/> iptables -t mangle -A V2RAY -p tcp -m tcp \u2013dport 80 -j TPROXY \u2013on-port 1080 \u2013tproxy-mark 0x1\/0x1<br \/> iptables -t mangle -A V2RAY -p tcp -m tcp \u2013dport 443 -j TPROXY \u2013on-port 1080 \u2013tproxy-mark 0x1\/0x1<\/p>\n<\/li>\n<li>\n<p><strong>\u91cd\u542fV2Ray<\/strong>\uff1a<br \/> \u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u91cd\u542fV2Ray\u4f7f\u5176\u751f\u6548\uff1a<br \/> bash<br \/> systemctl restart v2ray<\/p>\n<\/li>\n<\/ol>\n<h3>3.3 \u6d4b\u8bd5\u914d\u7f6e<\/h3>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u5982curl\u8fdb\u884c\u6d4b\u8bd5\uff1a<br \/> bash<br \/> curl \u2013proxy socks5:\/\/127.0.0.1:1080 http:\/\/www.example.com<\/p>\n<p>\u786e\u4fdd\u80fd\u591f\u6b63\u5e38\u8bbf\u95ee\u5916\u90e8\u7f51\u7ad9\uff0c\u8868\u660e\u914d\u7f6e\u6210\u529f\u3002<\/p>\n<h2>4. \u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u7b54<\/h2>\n<h3>4.1 Tproxy\u5982\u4f55\u89e3\u51b3\u7f51\u7ad9\u8bbf\u95ee\u901f\u5ea6\u6162\u7684\u95ee\u9898\uff1f<\/h3>\n<p><em>Tproxy<\/em>\u901a\u8fc7\u76f4\u63a5\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u91cd\u5b9a\u5411\u6d41\u91cf\uff0c\u51cf\u5c11\u4e86\u4e2d\u95f4\u73af\u8282\uff0c\u80fd\u591f\u6709\u6548\u63d0\u9ad8\u7f51\u7ad9\u8bbf\u95ee\u901f\u5ea6\u3002<\/p>\n<h3>4.2 v2ray tproxy\u662f\u5426\u652f\u6301\u591a\u7528\u6237\uff1f<\/h3>\n<p>\u662f\u7684\uff0c<em>v2ray tproxy<\/em> \u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u4e0d\u540c\u7684 <em>inbounds<\/em> \u6765\u5b9e\u73b0\u591a\u7528\u6237\u8bbf\u95ee\u3002<\/p>\n<h3>4.3 \u5982\u4f55\u89e3\u51b3V2Ray\u8fde\u63a5\u4e0d\u7a33\u5b9a\u7684\u95ee\u9898\uff1f<\/h3>\n<ul>\n<li>\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u7a33\u5b9a\u3002<\/li>\n<li>\u66f4\u65b0V2Ray\u81f3\u6700\u65b0\u7248\u672c\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u9519\u8bef\u4fee\u590d\u3002<\/li>\n<\/ul>\n<h3>4.4 v2ray tproxy\u7684\u5b89\u5168\u6027\u5982\u4f55\uff1f<\/h3>\n<p><em>Tproxy<\/em> \u901a\u8fc7\u52a0\u5bc6\u534f\u8bae\u4fdd\u62a4\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\uff0c\u786e\u4fdd\u7528\u6237\u9690\u79c1\u5b89\u5168\u3002\u4f46\u4ecd\u9700\u914d\u5408\u5176\u4ed6\u5b89\u5168\u5de5\u5177\u4f7f\u7528\uff0c\u589e\u5f3a\u9632\u62a4\u3002<\/p>\n<h2>5. \u7ed3\u8bba<\/h2>\n<p>\u603b\u4e4b\uff0c<em>v2ray tproxy<\/em> \u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u900f\u660e\u4ee3\u7406\u89e3\u51b3\u65b9\u6848\uff0c\u9002\u5408\u5404\u79cd\u7f51\u7edc\u73af\u5883\u4e0b\u7684\u4f7f\u7528\u3002\u901a\u8fc7\u4ee5\u4e0a\u7684\u914d\u7f6e\u4e0e\u4f7f\u7528\u6280\u5de7\uff0c\u7528\u6237\u80fd\u591f\u66f4\u9ad8\u6548\u5730\u5229\u7528\u8fd9\u4e00\u5de5\u5177\uff0c\u63d0\u5347\u7f51\u7edc\u8bbf\u95ee\u4f53\u9a8c\u3002\u5e0c\u671b\u672c\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u4e0e\u4f7f\u7528<em>v2ray tproxy<\/em>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4ec0\u4e48\u662fv2ray tproxy\uff1f v2ray tproxy\u7684\u5de5\u4f5c\u539f\u7406 v2ray tproxy\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e \u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u7b54 \u7ed3\u8bba 1. \u4ec0\u4e48\u662fv2ray tproxy\uff1f v2ray tproxy \u662f\u57fa\u4e8eV2Ray\u6846\u67b6\u7684\u900f\u660e\u4ee3\u7406\u5de5\u5177\u3002\u5b83\u80fd\u591f\u6709\u6548\u5730\u5c06\u6d41\u91cf\u900f\u660e\u5730\u8f6c\u53d1\u81f3\u6307\u5b9a\u7684\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4e0d\u9700\u8981\u7528\u6237\u7684\u624b\u52a8\u5e72\u9884\u3002Tproxy\u4f7f\u5f97\u5728\u9700\u8981\u5bf9\u6d41\u91cf\u8fdb\u884c\u7ba1\u7406\u548c\u63a7\u5236\u7684\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u80fd\u66f4\u65b9\u4fbf\u5730\u5b9e\u73b0\u7f51\u7edc\u4ee3\u7406\u3002 2. v2ray tproxy\u7684\u5de5\u4f5c\u539f\u7406 v2ray tproxy \u5de5\u4f5c\u539f\u7406\u57fa\u4e8eLinux\u5185\u6838\u7684iptables\u529f\u80fd\u3002\u901a\u8fc7\u5728\u7cfb\u7edf\u5c42\u9762\u6355\u83b7\u6570\u636e\u5305\uff0cTproxy\u80fd\u591f\u65e0\u7f1d\u5c06\u6d41\u91cf\u91cd\u5b9a\u5411\u5230\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u80fd\u591f\u8bbf\u95ee\u88ab\u9650\u5236\u7684\u7f51\u7ad9\u6216\u670d\u52a1\u3002 2.1 Tproxy\u4e0e\u5176\u4ed6\u4ee3\u7406\u7684\u533a\u522b \u4e0e\u4f20\u7edf\u7684HTTP\/SOCKS\u4ee3\u7406\u76f8\u6bd4\uff0cv2ray tproxy \u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7075\u6d3b\u6027\u548c\u900f\u660e\u6027\u3002 \u900f\u660e\u4ee3\u7406\uff1a\u7528\u6237\u4e0d\u9700\u8981\u6539\u53d8\u5176\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u7f6e\uff0c\u6240\u6709\u6d41\u91cf\u90fd\u4f1a\u81ea\u52a8\u7ecf\u8fc7\u4ee3\u7406\u3002 \u652f\u6301\u591a\u79cd\u534f\u8bae\uff1aTproxy\u652f\u6301\u591a\u79cd\u534f\u8bae\u7684\u8f6c\u53d1\uff0c\u5982HTTP\u3001HTTPS\u3001WebSocket\u7b49\u3002 \u9ad8\u6548\u6027\u80fd\uff1a\u7531\u4e8eTproxy\u662f\u901a\u8fc7\u7cfb\u7edf\u7ea7\u522b\u8fdb\u884c\u6d41\u91cf\u6355\u83b7\uff0c\u56e0\u6b64\u5728\u6027\u80fd\u4e0a\u76f8\u8f83\u4e8e\u4f20\u7edf\u4ee3\u7406\u6709\u663e\u8457\u63d0\u5347\u3002 3. v2ray tproxy\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e \u8981\u4f7f\u7528v2ray tproxy\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5V2Ray\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u4e0e\u914d\u7f6e\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a 3.1 \u5b89\u88c5V2Ray \u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u76f4\u63a5\u5b89\u88c5V2Ray\uff1a bash bash &lt;(curl -L -s https:\/\/install.direct\/go.sh) 3.2 \u914d\u7f6eV2Ray \u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u8981\u914d\u7f6eV2Ray\u4ee5\u542f\u7528Tproxy\u3002 \u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff1a \u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u4f4d\u4e8e \/etc\/v2ray\/config.json\u3002 \u6dfb\u52a0Tproxy\u914d\u7f6e\uff1a \u5728 inbounds \u4e0b\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a { \u201cport\u201d: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-54843","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=54843"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54843\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=54843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=54843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=54843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}