{"id":400,"date":"2022-12-09T12:55:07","date_gmt":"2022-12-09T04:55:07","guid":{"rendered":"https:\/\/su.f3ck.cc\/?p=400"},"modified":"2022-12-09T12:55:44","modified_gmt":"2022-12-09T04:55:44","slug":"debian-11%e6%90%ad%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8naiveproxy%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/su.f3ck.cc\/?p=400","title":{"rendered":"Debian 11\u642d\u5efanaiveproxy\u670d\u52a1\u5668"},"content":{"rendered":"\n<p>naiveproxy \u662f\u57fa\u4e8ecaddy\u4f7f\u7528go\u8bed\u8a00\u5f00\u53d1\u7684\u4e00\u4e2a\u8f6c\u53d1\u670d\u52a1\u5668\u3002\u4f5c\u8005\u7684github\u5730\u5740 <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/klzgrad\/naiveproxy\" target=\"_blank\">https:\/\/github.com\/klzgrad\/naiveproxy<\/a><\/p>\n\n\n\n<p>\u642d\u5efa\u4efb\u52a1\u6b65\u9aa4<br>\u9996\u5148\u5b89\u88c5go\u8bed\u8a00<br>\u7f16\u8bd1\u5e26\u8f6c\u53d1\u7684caddy<br>\u7f16\u8f91caddy\u914d\u7f6e\u6587\u4ef6<br>\u542f\u7528\u670d\u52a1<\/p>\n\n\n\n<p>1.\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684go\u8bed\u8a00\uff0c\u4e0b\u8f7d\u94fe\u63a5\u9700\u8981\u67e5\u770b\u94fe\u63a5 <a rel=\"noreferrer noopener\" href=\"https:\/\/go.dev\/doc\/install\" target=\"_blank\">https:\/\/go.dev\/doc\/install<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/go.dev\/dl\/go1.19.4.linux-amd64.tar.gz\nrm -rf \/usr\/local\/go &amp;&amp; tar -C \/usr\/local -xzf go1.19.4.linux-amd64.tar.gz\nexport PATH=$PATH:\/usr\/local\/go\/bin<\/code><\/pre>\n\n\n\n<p>2.\u65b0\u5efa\u4e00\u4e2acaddy\u914d\u7f6e\u6587\u4ef6\uff08\u7cfb\u7edf\u4e0d\u542b\u8fd9\u4e2a\u8def\u5f84\uff0c\u9700\u8981\u65b0\u5efa\u76ee\u5f55\uff09\u3002<br>\u6587\u4ef6\u540d\uff1a \/etc\/caddy\/Caddyfile&nbsp;<br>\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\norder forward_proxy before file_server\n}\n:443, xxx.f3ck.cn {\ntls suhaha1024@gmail.com\nforward_proxy {\nbasic_auth username password\nhide_ip\nhide_via\nprobe_resistance\n}\nfile_server {\nroot \/var\/www\/html\n}\n}<\/code><\/pre>\n\n\n\n<p>3.\u7f16\u8bd1\u5e26naiveproxy\u7684caddy\u3002\u4e5f\u53ef\u4ee5\u65b0\u5efa\u4e00\u4e2aupdate.sh \uff0c\u65b9\u4fbf\u4ee5\u540e\u5347\u7ea7\u7528\u3002<br>\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PATH=$PATH:\/usr\/local\/go\/bin\n\ngo install github.com\/caddyserver\/xcaddy\/cmd\/xcaddy@latest\n~\/go\/bin\/xcaddy build --with github.com\/caddyserver\/forwardproxy@caddy2=github.com\/klzgrad\/forwardproxy@naive\n\nsystemctl stop caddy.service&nbsp;\ncp caddy \/usr\/bin\/caddy&nbsp;\nsystemctl start caddy.service&nbsp;\nsystemctl status caddy.service<\/code><\/pre>\n\n\n\n<p>4.\u6700\u540e\u65b0\u5efaDebian\u7684\u7cfb\u7edf\u670d\u52a1\uff0c\u5b8c\u6210\u81ea\u52a8\u5f00\u673a\u542f\u52a8\u3002<\/p>\n\n\n\n<p>\u6587\u4ef6\u540d\u79f0\uff1a \/etc\/systemd\/system\/caddy.service<br>\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=Caddy\nDocumentation=https:\/\/caddyserver.com\/docs\/\nAfter=network.targetnetwork-online.target\nRequires=network-online.target\n\n&#91;Service]\nUser=root\nGroup=root\nExecStart=\/usr\/bin\/caddy run --environ --config \/etc\/caddy\/Caddyfile\nExecReload=\/usr\/bin\/caddy reload --config \/etc\/caddy\/Caddyfile\nTimeoutStopSec=5s\nPrivateTmp=true\nProtectSystem=full\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>5.\u6b64\u5904\u8bb0\u5f97\u542f\u7528\u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable caddy.service<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u5b8c\u6210\u540e\u5bf9\u5e94\u7684\u5ba2\u6237\u7aef\u914d\u7f6e\u4fe1\u606f\uff1a<\/p>\n\n\n\n<p>naiveproxy\u8fde\u63a5\u65b9\u5f0f http2\u6216\u8005quic \u670d\u52a1\u5668\u5730\u5740 xxx.f3ck.cn \u7aef\u53e3\u53f7 443 \u7528\u6237\u540d username \u5bc6\u7801 password<\/p>\n","protected":false},"excerpt":{"rendered":"<p>naiveproxy \u662f\u57fa\u4e8ecaddy\u4f7f\u7528go\u8bed\u8a00\u5f00\u53d1\u7684\u4e00\u4e2a\u8f6c\u53d1\u670d\u52a1\u5668\u3002\u4f5c\u8005\u7684github\u5730\u5740 https:\/ &hellip; <a href=\"https:\/\/su.f3ck.cc\/?p=400\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cDebian 11\u642d\u5efanaiveproxy\u670d\u52a1\u5668\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-400","post","type-post","status-publish","format-standard","hentry","category-1","tag-15","tag-4"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":517,"url":"https:\/\/su.f3ck.cc\/?p=517","url_meta":{"origin":400,"position":0},"title":"How to Resolve \u201cPackage crypto\/ecdh is not in GOROOT\u201d Error in Linux","author":"suhaha","date":"2024-03-13","format":false,"excerpt":"Have you encountered the \u201cPackage crypto\/ecdh is n\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":477,"url":"https:\/\/su.f3ck.cc\/?p=477","url_meta":{"origin":400,"position":1},"title":"warp-cli \u89e3\u51b3chatGPT\u8bbf\u95ee\u9650\u5236","author":"suhaha","date":"2023-03-08","format":false,"excerpt":"https:\/\/developers.cloudflare.com\/warp-client\/get-\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":400,"position":2},"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":[]},{"id":150,"url":"https:\/\/su.f3ck.cc\/?p=150","url_meta":{"origin":400,"position":3},"title":"Authy 2FA app apk","author":"suhaha","date":"2021-04-19","format":false,"excerpt":"https:\/\/su.f3ck.cc\/wp-content\/uploads\/2021\/04\/Twil\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":530,"url":"https:\/\/su.f3ck.cc\/?p=530","url_meta":{"origin":400,"position":4},"title":"OpenWRT \u5b9e\u73b0HP1020\u6253\u5370\u673a\u7f51\u7edc\u5171\u4eab","author":"suhaha","date":"2024-05-06","format":false,"excerpt":"1\u3001\u4e0b\u8f7dHP1020\u56fa\u4ef6\u6587\u4ef6sihp1020.dl\u6587\u4ef6\u81f3\/etc\u76ee\u5f55 2\u3001\u5728USB\u70ed\u62d4\u63d2\u89e6\u53d1\u76ee\u5f55\u4e0b\u5efa\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":400,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts\/400","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=400"}],"version-history":[{"count":2,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/su.f3ck.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}