{"id":477,"date":"2023-03-08T19:51:29","date_gmt":"2023-03-08T11:51:29","guid":{"rendered":"https:\/\/su.f3ck.cc\/?p=477"},"modified":"2023-03-09T18:09:28","modified_gmt":"2023-03-09T10:09:28","slug":"warp-cli-%e8%a7%a3%e5%86%b3chatgpt%e8%ae%bf%e9%97%ae%e9%99%90%e5%88%b6","status":"publish","type":"post","link":"https:\/\/su.f3ck.cc\/?p=477","title":{"rendered":"warp-cli \u89e3\u51b3chatGPT\u8bbf\u95ee\u9650\u5236"},"content":{"rendered":"\n<p>https:\/\/developers.cloudflare.com\/warp-client\/get-started\/linux\/<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a https:\/\/github.com\/willoong9559\/XrayWarp<\/p>\n\n\n<p>\u73b0\u5728\u673a\u573a\u5927\u591a\u6570\u4f7f\u7528\u7684\u662fDnsmasq\u5c06\u7f51\u7ad9\u89e3\u6790\u52ab\u6301\u5230SNI proxy\u53cd\u5411\u4ee3\u7406\u7684\u9875\u9762\u4e0a\u3002<\/p>\n<p>\u8fd9\u91cc\u662f\u4f7f\u7528WARP Client\u8fdb\u884c\u4ee3\u7406\u89e3\u9501Netflix\u7b49\u3002 \u53ef\u4ee5\u53bbcloudfalre\u5b98\u65b9\u9875\u9762\u6709\u8be6\u7ec6\u7684\u5b89\u88c5\u6d41\u7a0b\u548c\u539f\u7406\uff0c\u4e0d\u8d58\u8ff0\u3002 \u4e2a\u4eba\u8ba4\u4e3a\u5b98\u65b9socks\u8fd9\u79cd\u4ee3\u7406\u65b9\u5f0f\u66f4\u7075\u6d3b\u4e14\u4f18\u96c5\u3002 https:\/\/developers.cloudflare.com\/warp-client\/setting-up\/linux<\/p>\n<p>\u8fd9\u91cc\u5199\u4e0b\u6211\u7684\u914d\u7f6e\u8fc7\u7a0b<\/p>\n<p>1.\u6ce8\u518c\u5ba2\u6237\u7aef<\/p>\n<p>warp-cli register<br \/>\n2.\u8bbe\u7f6eWARP\u4ee3\u7406\u6a21\u5f0f<\/p>\n<p>warp-cli set-mode proxy<br \/>\n3.\u8fde\u63a5WARP<\/p>\n<p>warp-cli connect<br \/>\n\u6b64\u65f6WARP\u4f1a\u4f7f\u7528socks5\u672c\u673a\u4ee3\u7406127.0.0.1\uff1a40000 4.\u6253\u5f00warp always-on<\/p>\n<p>warp-cli enable-always-on<br \/>\n6.\u6d4b\u8bd5socks\u4ee3\uff0c\u7406\u68c0\u67e5ip\u662f\u5426\u6539\u53d8<\/p>\n<p>export ALL_PROXY=socks5:\/\/127.0.0.1:40000<br \/>\ncurl ifconfig.me<br \/>\n7.\u4fee\u6539v2ray\/xray outbounds\u548c\u5206\u6d41\u89c4\u5219\uff0c\u8fd9\u91cc\u7ed9\u51fa\u6211\u7684\u914d\u7f6e\u53ef\u81ea\u7531\u53d1\u6325\u3002<\/p>\n<p>vim \/usr\/local\/etc\/xray\/config.json<br \/>\ninbounds\u8981\u542f\u52a8sniffing<\/p>\n<p>&#8220;sniffing&#8221;: {<br \/>\n    &#8220;enabled&#8221;: true,<br \/>\n    &#8220;destOverride&#8221;: [&#8220;http&#8221;, &#8220;tls&#8221;]<br \/>\n}<br \/>\n &#8220;outbounds&#8221;: [<br \/>\n        {<br \/>\n            &#8220;tag&#8221;: &#8220;default&#8221;,<br \/>\n            &#8220;protocol&#8221;: &#8220;freedom&#8221;<br \/>\n        },<br \/>\n        {<br \/>\n            &#8220;tag&#8221;:&#8221;socks_out&#8221;,<br \/>\n            &#8220;protocol&#8221;: &#8220;socks&#8221;,<br \/>\n            &#8220;settings&#8221;: {<br \/>\n                &#8220;servers&#8221;: [<br \/>\n                     {<br \/>\n                        &#8220;address&#8221;: &#8220;127.0.0.1&#8221;,<br \/>\n                        &#8220;port&#8221;: 40000<br \/>\n                    }<br \/>\n                ]<br \/>\n            }<br \/>\n        }<br \/>\n    ],<br \/>\n    &#8220;routing&#8221;: {<br \/>\n        &#8220;rules&#8221;: [<br \/>\n            {<br \/>\n                &#8220;type&#8221;: &#8220;field&#8221;,<br \/>\n                &#8220;outboundTag&#8221;: &#8220;socks_out&#8221;,<br \/>\n                &#8220;domain&#8221;: [&#8220;geosite:netflix&#8221;]<br \/>\n            },<br \/>\n            {<br \/>\n                &#8220;type&#8221;: &#8220;field&#8221;,<br \/>\n                &#8220;outboundTag&#8221;: &#8220;default&#8221;,<br \/>\n                &#8220;network&#8221;: &#8220;udp,tcp&#8221;<br \/>\n            }<br \/>\n        ]<br \/>\n    }<br \/>\n8.\u91cd\u65b0\u542f\u52a8v2ray\/xray<\/p>\n<p>systemctl restart v2ray\/xray<br \/>\nsystemctl status v2ray\/xray<br \/>\nxray\u53ef\u80fd\u9700\u8981\u4e0b\u8f7dgeosite\u548cgeoip\uff0c google github\u4e0a\u5c31\u80fd\u627e\u5230\uff0c\u4e0b\u8f7d\u540e\u653e\u5728 \/usr\/local\/bin<\/p>\n\n\n\n<p>\u6ce8\u610frouting\u7684\u4f4d\u7f6e\u987a\u5e8f<\/p>\n\n\n<p>cat \/etc\/v2ray\/config.json<br \/>\n{<br \/>\n  &#8220;log&#8221;: {<br \/>\n        &#8220;access&#8221;: &#8220;\/var\/log\/v2ray\/access.log&#8221;,<br \/>\n        &#8220;error&#8221;: &#8220;\/var\/log\/v2ray\/error.log&#8221;,<br \/>\n        &#8220;loglevel&#8221;: &#8220;warning&#8221;<br \/>\n    },<br \/>\n  &#8220;inbounds&#8221;: [<br \/>\n    {<br \/>\n    &#8220;port&#8221;:12026,<br \/>\n      &#8220;listen&#8221;: &#8220;127.0.0.1&#8221;,<br \/>\n      &#8220;tag&#8221;: &#8220;vmess-in&#8221;,<br \/>\n      &#8220;protocol&#8221;: &#8220;vmess&#8221;,<br \/>\n      &#8220;settings&#8221;: {<br \/>\n        &#8220;clients&#8221;: [<br \/>\n          {<br \/>\n  &#8220;id&#8221;:&#8221;b9d6e3c5-dea4-4cac-8c0e-30fb1ccbe906&#8243;,<br \/>\n            &#8220;alterId&#8221;: 64<br \/>\n          }<br \/>\n        ]<br \/>\n      },<br \/>\n      &#8220;streamSettings&#8221;: {<br \/>\n        &#8220;network&#8221;: &#8220;ws&#8221;,<br \/>\n        &#8220;wsSettings&#8221;: {<br \/>\n  &#8220;path&#8221;:&#8221;\/fb4e\/&#8221;<br \/>\n        }<br \/>\n      }<br \/>\n    }<br \/>\n  ],<br \/>\n  &#8220;outbounds&#8221;: [<br \/>\n    {<br \/>\n      &#8220;protocol&#8221;: &#8220;freedom&#8221;,<br \/>\n      &#8220;settings&#8221;: { },<br \/>\n      &#8220;tag&#8221;: &#8220;direct&#8221;<br \/>\n    },<br \/>\n    {<br \/>\n      &#8220;protocol&#8221;: &#8220;blackhole&#8221;,<br \/>\n      &#8220;settings&#8221;: { },<br \/>\n      &#8220;tag&#8221;: &#8220;blocked&#8221;<br \/>\n    },<br \/>\n    {<br \/>\n&#8220;tag&#8221;:&#8221;socks_out&#8221;,<br \/>\n        &#8220;protocol&#8221;: &#8220;socks&#8221;,<br \/>\n        &#8220;settings&#8221;: {<br \/>\n           &#8220;servers&#8221;: [<br \/>\n               {<br \/>\n                &#8220;address&#8221;: &#8220;127.0.0.1&#8221;,<br \/>\n                &#8220;port&#8221;: 40000<br \/>\n                }<br \/>\n            ]<br \/>\n         }<\/p>\n<p>    }<br \/>\n  ],<br \/>\n  &#8220;dns&#8221;: {<br \/>\n    &#8220;servers&#8221;: [<br \/>\n      &#8220;https+local:\/\/1.1.1.1\/dns-query&#8221;,<br \/>\n  &#8220;1.1.1.1&#8221;,<br \/>\n  &#8220;1.0.0.1&#8221;,<br \/>\n  &#8220;8.8.8.8&#8221;,<br \/>\n  &#8220;8.8.4.4&#8221;,<br \/>\n  &#8220;localhost&#8221;<br \/>\n    ]<br \/>\n  },<br \/>\n  &#8220;routing&#8221;: {<br \/>\n    &#8220;domainStrategy&#8221;: &#8220;AsIs&#8221;,<br \/>\n    &#8220;rules&#8221;: [<br \/>\n      {<br \/>\n              &#8220;type&#8221;: &#8220;field&#8221;,<br \/>\n                &#8220;outboundTag&#8221;: &#8220;socks_out&#8221;,<br \/>\n                &#8220;domain&#8221;: [&#8220;geosite:openai&#8221;]<\/p>\n<p>      },<\/p>\n<p>      {<br \/>\n        &#8220;type&#8221;: &#8220;field&#8221;,<br \/>\n        &#8220;inboundTag&#8221;: [<br \/>\n          &#8220;vmess-in&#8221;<br \/>\n        ],<br \/>\n        &#8220;outboundTag&#8221;: &#8220;direct&#8221;<br \/>\n      }<br \/>\n    ]<br \/>\n  }<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/developers.cloudflare.com\/warp-client\/get-start &hellip; <a href=\"https:\/\/su.f3ck.cc\/?p=477\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cwarp-cli \u89e3\u51b3chatGPT\u8bbf\u95ee\u9650\u5236\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":[1],"tags":[15,4],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-1","tag-15","tag-4"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":538,"url":"https:\/\/su.f3ck.cc\/?p=538","url_meta":{"origin":477,"position":0},"title":"macOS Gemini CLI \u5b89\u88c5","author":"suhaha","date":"2025-07-01","format":false,"excerpt":"1.\u5b89\u88c5npm # Download and install nvm: curl -o- https\u2026","rel":"","context":"\u5728\u201c\u7b14\u8bb0\u201d\u4e2d","block_context":{"text":"\u7b14\u8bb0","link":"https:\/\/su.f3ck.cc\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":400,"url":"https:\/\/su.f3ck.cc\/?p=400","url_meta":{"origin":477,"position":1},"title":"Debian 11\u642d\u5efanaiveproxy\u670d\u52a1\u5668","author":"suhaha","date":"2022-12-09","format":false,"excerpt":"naiveproxy \u662f\u57fa\u4e8ecaddy\u4f7f\u7528go\u8bed\u8a00\u5f00\u53d1\u7684\u4e00\u4e2a\u8f6c\u53d1\u670d\u52a1\u5668\u3002\u4f5c\u8005\u7684github\u5730\u5740 ht\u2026","rel":"","context":"\u5728\u201c\u7b14\u8bb0\u201d\u4e2d","block_context":{"text":"\u7b14\u8bb0","link":"https:\/\/su.f3ck.cc\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":515,"url":"https:\/\/su.f3ck.cc\/?p=515","url_meta":{"origin":477,"position":2},"title":"\u5047\u5982\u5927\u591a\u6570\u4eba\u6ca1\u6709\u201c\u968f\u5927\u6d41\u201d\uff0c\u60c5\u51b5\u4f1a\u5982\u4f55\uff1f","author":"suhaha","date":"2024-02-28","format":false,"excerpt":"\u3010\u5047\u5982\u5927\u591a\u6570\u4eba\u6ca1\u6709\u201c\u968f\u5927\u6d41\u201d\uff0c\u60c5\u51b5\u4f1a\u5982\u4f55\uff1f\uff5c#\u5e26\u7740\u95ee\u9898\u53bb\u8bfb\u4e66#\u3011\uff08 \u6587\uff5c\u70ed\u62c9\u5c14\u4e01\u00b7\u65bd\u74e6\u8328 \uff09\u6211\u5bf9\u7eb3\u7cb9\u2026","rel":"","context":"\u5728\u201c\u7b14\u8bb0\u201d\u4e2d","block_context":{"text":"\u7b14\u8bb0","link":"https:\/\/su.f3ck.cc\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":532,"url":"https:\/\/su.f3ck.cc\/?p=532","url_meta":{"origin":477,"position":3},"title":"\u5982\u4f55\u5173\u95ediOS\u201c\u5feb\u6377\u6307\u4ee4\u201d\u8fd0\u884c\u65f6\u7684\u6a2a\u5e45\u901a\u77e5","author":"suhaha","date":"2024-11-12","format":false,"excerpt":"\u5728\u6267\u884c\u67d0\u4e9b iOS \u5feb\u6377\u6307\u4ee4(Shortcut)\u65f6\uff0c\u624b\u673a\u9876\u90e8\u603b\u662f\u4f1a\u5f39\u51fa\u201c\u8f7b\u70b9\u4ee5\u56de\u5e94\u201d\u7684\u63d0\u793a\u6d88\u606f\uff0c\u975e\u5e38\u2026","rel":"","context":"\u5728\u201c\u7b14\u8bb0\u201d\u4e2d","block_context":{"text":"\u7b14\u8bb0","link":"https:\/\/su.f3ck.cc\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":473,"url":"https:\/\/su.f3ck.cc\/?p=473","url_meta":{"origin":477,"position":4},"title":"chatGPT\u767b\u5f55\uff08Google\u8d26\u6237\uff09\u6d41\u7a0b","author":"suhaha","date":"2023-03-02","format":false,"excerpt":"chatGPT\u767b\u5f55\uff08Google\u8d26\u6237\uff09\u6d41\u7a0b\uff1a1.\u5148\u4e0d\u7ffb\u5899\uff0c\u4fdd\u6301\u7f51\u7edc\u5e72\u51c0\u3002\u5e76\u6e05\u9664\u6d4f\u89c8\u5668\u6709\u5173openai\u2026","rel":"","context":"\u5728\u201c\u7b14\u8bb0\u201d\u4e2d","block_context":{"text":"\u7b14\u8bb0","link":"https:\/\/su.f3ck.cc\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":122,"url":"https:\/\/su.f3ck.cc\/?p=122","url_meta":{"origin":477,"position":5},"title":"iPhone \u201cshadowrocket\u201d app \u5b89\u88c5","author":"suhaha","date":"2021-04-02","format":false,"excerpt":"\u7531\u4e8e\u9700\u8981\u975ecn\u533a\u57df\u7684Apple ID\u5f88\u9ebb\u70e6\uff0c\u4e3a\u4e86\u4e0d\u5fd8\u8bb0\u6240\u4ee5\u5199\u4e2a\u5907\u4efd\u5907\u6ce8\u3002\u5177\u4f53\u4fe1\u606f\u5982\u4e0b\uff1a ID\u540d\u79f0\uff1as\u2026","rel":"","context":"\u5728\u201c\u7b14\u8bb0\u201d\u4e2d","block_context":{"text":"\u7b14\u8bb0","link":"https:\/\/su.f3ck.cc\/?cat=1"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/su.f3ck.cc\/wp-content\/uploads\/2021\/04\/img_1509-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/su.f3ck.cc\/wp-content\/uploads\/2021\/04\/img_1509-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/su.f3ck.cc\/wp-content\/uploads\/2021\/04\/img_1509-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/su.f3ck.cc\/wp-content\/uploads\/2021\/04\/img_1509-1.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/su.f3ck.cc\/wp-content\/uploads\/2021\/04\/img_1509-1.png?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=477"}],"version-history":[{"count":2,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts\/477\/revisions\/479"}],"wp:attachment":[{"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}