{"id":6192,"date":"2024-11-03T20:53:15","date_gmt":"2024-11-03T12:53:15","guid":{"rendered":"https:\/\/dmesg.app\/?p=6192"},"modified":"2025-05-27T17:43:28","modified_gmt":"2025-05-27T09:43:28","slug":"warp-http-proxy","status":"publish","type":"post","link":"https:\/\/dmesg.app\/warp-http-proxy.html","title":{"rendered":"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406"},"content":{"rendered":"<div  class=\"sc_act\">\u8fd9\u7bc7\u6587\u7ae0\u5728 2025\u5e7405\u670827\u65e517:43:28 \u66f4\u65b0\u4e86\u54e6~<\/div><p>Cloduflare WARP\u771f\u7684\u975e\u5e38\u597d\u7528\uff0c\u5e76\u4e14\u652f\u6301\u4ee3\u7406\u6a21\u5f0f\u3002\u542f\u7528\u8fd9\u4e2a\u6a21\u5f0f\u4e4b\u540e\uff0c\u5b83\u4f1a\u5728\u672c\u673a\u76d1\u542c\u4e00\u4e2asocks\u7aef\u53e3\uff0c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u914d\u7f6e\u5230\u8fd9\u4e2a\u7aef\u53e3\u6765\u4f7f\u7528\u4ee3\u7406\u3002<\/p>\n<p>\u5bf9\u4e8e\u670d\u52a1\u5668\u6765\u8bf4\uff0c\u4e00\u822c\u4f7f\u7528 <code>warp-cli<\/code><\/p>\n<pre class=\"prettyprint linenums\">warp-cli proxy port 60606\r\nwarp-cli mode proxy\r\n<\/pre>\n<p>\u4e4b\u540e\u4f60\u5c31\u53ef\u4ee5 <code>curl<\/code> \u5566<\/p>\n<pre class=\"prettyprint linenums\">https_proxy=socks5:\/\/127.0.0.1:60606 http_proxy=socks5:\/\/127.0.0.1:60606 curl ipv4.win\r\nIP: 104.28.157.116 CLOUDFLARE.COM CLOUDFLARE.COM\r\n<\/pre>\n<p>\u7136\u800c\uff0cGo\u7684\u7a0b\u5e8f\u4e0d\u652f\u6301 socks \u4ee3\u7406\uff0c\u8981\u624b\u52a8\u52a0transport\u6211\u53ef\u6ca1\u90a3\u4e2a\u529f\u592b\u53bb\u52a0\u3002<\/p>\n<p>\u597d\u6d88\u606f\u662f\uff0cGo\u9ed8\u8ba4\u662f\u5c0a\u91cd\u73af\u5883\u53d8\u91cf<code>http_proxy<\/code>\u7684\u3002\u90a3\u4e48\u5c31\u8981\u60f3\u529e\u6cd5\u7ed9socks\u4ee3\u7406\u8f6c\u6362\u4e3ahttp\u4ee3\u7406<\/p>\n<p>\u8fd9\u4e8b\u5f88\u7b80\u5355\u561b\uff01\u7528<code>pproxy<\/code>\u5c31\u597d\u4e86\uff0c\u522b\u7684\u4e0d\u4f1a\uff0c\u8fd9\u4e2a\u80af\u5b9a\u5f88\u4f1a\uff01<\/p>\n<pre class=\"prettyprint linenums\">pproxy -v -l http:\/\/127.0.0.1:8118 -r socks5:\/\/127.0.0.1:60606\r\n\r\nhttps_proxy=http:\/\/127.0.0.1:8118 http_proxy=http:\/\/127.0.0.1:8118 curl ipv4.win\r\ncurl: (52) Empty reply from server\r\n\r\n# pproxy logs\r\nServing on ipv? 127.0.0.1:8118 by http\r\nhttp 127.0.0.1:45012 -&gt; socks5 127.0.0.1:60606 -&gt; ipv4.win:80\r\nUnknown remote protocol from 127.0.0.1\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/7bc5d24.webp.ee\/wp-content\/uploads\/2024\/11\/2024110320441822.png\" alt=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" title=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" alt=\"\u5973\u5b69\u5728\u5fae\u7b11\" \/><\/p>\n<p>\u600e\u4e48\u62a5\u9519\u4e86\u5462\ud83e\udd28<\/p>\n<p>\u53ef\u80fd\u662f <code>pproxy<\/code>\u7684\u95ee\u9898\uff0c\u90a3\u4e48\u7528<code>gost<\/code>\uff01<\/p>\n<pre class=\"prettyprint linenums\">gost -L http:\/\/127.0.0.1:8118 -F socks5:\/\/127.0.0.1:60606\r\n2024\/11\/03 12:32:43 route.go:700: http:\/\/127.0.0.1:8118 on 127.0.0.1:8118\r\n2024\/11\/03 12:32:46 http.go:162: [http] 127.0.0.1:33284 -&gt; http:\/\/127.0.0.1:8118 -&gt; ipv4.win:80\r\n2024\/11\/03 12:32:46 http.go:257: [route] 127.0.0.1:33284 -&gt; http:\/\/127.0.0.1:8118 -&gt; 1@socks5:\/\/127.0.0.1:60606 -&gt; ipv4.win:80\r\n2024\/11\/03 12:32:46 http.go:280: [http] 127.0.0.1:33284 -&gt; 127.0.0.1:8118 : unexpected EOF\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/7bc5d24.webp.ee\/wp-content\/uploads\/2024\/11\/2024110320441992.png\" alt=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" title=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" alt=\"\u4eba\u751f\u6210\" \/><\/p>\n<p>\u90a3\u2026\u2026Privoxy<\/p>\n<pre class=\"prettyprint linenums\">forward-socks5 \/ 127.0.0.1:60606 .\r\n<\/pre>\n<p>\u4e5f\u4e0d\u884c\uff01<\/p>\n<p>\u751a\u81f3\u76f4\u63a5\u5728 Firefox\u91cc\u8bbe\u7f6esocks5\u4ee3\u7406\uff0c\u4e5f\u4e0d\u884c\ud83e\udd28<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/7bc5d24.webp.ee\/wp-content\/uploads\/2024\/11\/2024110320442061.jpeg\" alt=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" title=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" alt=\"\u56fe\u5f62\u7528\u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" \/><\/p>\n<p>\u4efb\u4f55\u7f51\u7ad9\u90fd\u6253\u4e0d\u5f00<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/7bc5d24.webp.ee\/wp-content\/uploads\/2024\/11\/2024110320442094.jpeg\" alt=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" title=\"\u628a Cloudflare WARP \u8f6c\u6362\u4e3a http \u4ee3\u7406\" alt=\"\u56fe\u5f62\u7528\u90ae\u4ef6\u751f\u6210\" \/><\/p>\n<p>\u5076\u7136\u53d6\u6d88 DNS\u8bf7\u6c42\u7684\u52fe\u9009\uff0c\u5c31\u6210\u529f\u4e86\u2026\u2026\u7a81\u7136\u604d\u7136\u5927\u609f\uff0cWARP\u53ef\u80fd\u4e0d\u652f\u6301\u8fdc\u7a0b\u89e3\u6790DNS<\/p>\n<p>&nbsp;<\/p>\n<p>\u90a3\u4e48\u8981\u4e48\u7528\u56de socks4<\/p>\n<pre class=\"prettyprint linenums\">pproxy -v -l http:\/\/127.0.0.1:8118 -r socks4:\/\/127.0.0.1:60606\r\ngost -L http:\/\/127.0.0.1:8118 -F socks4:\/\/127.0.0.1:60606\r\n<\/pre>\n<p>\u8981\u4e48\u7ed9\u52a0\u4e0aDNS\u7684\u652f\u6301<\/p>\n<pre class=\"prettyprint linenums\">gost -L &quot;http:\/\/127.0.0.1:8118?dns=1.1.1.1&quot; -F socks5:\/\/127.0.0.1:60606\r\n<\/pre>\n<p>\u4eba\u751f\u4e2d\u5b9d\u8d35\u7684\u51e0\u4e2a\u5c0f\u65f6\u5c31\u8fd9\u4e48\u6ca1\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u9700\u8981\u6ce8\u610f\uff1awarp-cli\u7684proxy mode <strong>\u4e0d\u652f\u6301\u8d85\u8fc710\u79d2\u7684\u8fde\u63a5<\/strong><\/p>\n<p class=\"p1\">Proxy mode has a timeout limit of 10 seconds for requests. If a request goes above the 10 second limit, Cloudflare will drop the connection.<\/p>\n<p>\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\uff0c\u8981\u4e48\u4e0d\u7528proxy mode\uff0c \u8981\u4e48\u5728 gost\u6216pproxy\u90a3\u8fb9\u7ed5\u8fc7\uff0c\u5982<\/p>\n<pre class=\"prettyprint linenums\">gost -L http:\/\/127.0.0.1:8118 -F socks4:\/\/127.0.0.1:60606?bypass=api.openai.com\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u5728 2025\u5e7405\u670827\u65e517:43:28 \u66f4\u65b0\u4e86\u54e6~Cloduflare WARP\u771f\u7684\u975e\u5e38\u597d\u7528\uff0c\u5e76\u4e14 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-6192","post","type-post","status-publish","format-standard","hentry","category-cloudflare"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts\/6192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/comments?post=6192"}],"version-history":[{"count":8,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts\/6192\/revisions"}],"predecessor-version":[{"id":6288,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts\/6192\/revisions\/6288"}],"wp:attachment":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/media?parent=6192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/categories?post=6192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/tags?post=6192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}