{"slug":"vpn","title":"自建正向代理服务器","description":"不要再买机场了！自建它不香吗？!","coverImage":"https://b.acofork.com/img/vpn-2024-11-21-08-24-54-image.webp","coverWidth":1282,"coverHeight":992,"date":"2024-11-21","tags":["网络"],"pinned":false,"wordCount":839,"html":"<h2 id=\"将cloudflare作为代理使用-vless-edgetunnel\">将Cloudflare作为代理使用（Vless - EdgeTunnel）</h2><p>下面内容参考自：<a href=\"https://vercel.blog.cmliussss.com/p/CM24/\" target=\"_blank\" rel=\"noopener noreferrer\">CF VLESS 从入门到精通 cmliu/edgetunnel 必看内容 免费节点 优选订阅 Workers &amp; Pages CM喂饭干货满满24 | CMLiussss Blog</a> 请支持原创作者！</p>\n<ol>\n<li><a href=\"https://github.com/cmliu/edgetunnel/archive/refs/heads/main.zip\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/cmliu/edgetunnel/archive/refs/heads/main.zip</a> 将它上传到你的Cloudflare Pages项目（没有Cloudflare账号？先去因特网上搜索教程注册一个！如果遇到卡慢可以试试看科学上网）</li>\n<li>进入 <a href=\"https://it-tools.tech/uuid-generator\" target=\"_blank\" rel=\"noopener noreferrer\">https://it-tools.tech/uuid-generator</a> 随机获取一个uuid</li>\n<li>添加一个名称为<code>UUID</code>的变量绑定，值为第二步随机获取的（请不要泄露给他人！）</li>\n<li>重新上传第一步的<code>main.zip</code>。让Cloudflare重新部署page以适配新变量</li>\n<li>前往Pages项目 -&gt; 自定义域：绑定自定义域名。（没有域名？推荐 <a href=\"https://nic.us.kg\" target=\"_blank\" rel=\"noopener noreferrer\">https://nic.us.kg</a> <a href=\"https://www.cloudns.net\" target=\"_blank\" rel=\"noopener noreferrer\">https://www.cloudns.net</a> 。可以自行前往因特网搜索教程，这里不再赘述。也可以不绑定，直接使用cf分配的<code>pages.dev</code>域名。但是，部分地区<code>pages.dev</code>可能无法访问或者较易和谐）</li>\n<li>通过 <code>https://你的自定义域名/uuid</code> 查看仪表盘</li>\n<li>如图复制链接，打开V2Ray，导入。V2Ray客户端下载地址在文章最后</li>\n<li><img src=\"https://b.acofork.com/img/vpn-2024-11-24-00-17-22-image.webp\" alt=\"\" width=\"2036\" height=\"1481\" loading=\"eager\" decoding=\"async\" /></li>\n<li>500Mbps的移动宽带，通过edgetunnel测速速度如下。测速网址： <a href=\"https://fast.com\" target=\"_blank\" rel=\"noopener noreferrer\">https://fast.com</a></li>\n<li><img src=\"https://b.acofork.com/img/vpn-2024-11-22-09-08-38-image.webp\" alt=\"\" width=\"1092\" height=\"706\" loading=\"lazy\" decoding=\"async\" /></li>\n<li>如果你就是想要最低延迟，可以去用cfnat，这里放一个Windows的链接： <a href=\"https://www.youtube.com/watch?v=N2Y9TsiBgls\" target=\"_blank\" rel=\"noopener noreferrer\">https://www.youtube.com/watch?v=N2Y9TsiBgls</a> 其他平台可以自行前往CM的YouTube查找</li>\n<li><strong>注意！edgetunnel近期在Cloudflare新号上可能会报错1101，这可能并不是你的配置问题，而是被cf风控了。解决方案是删除原项目重新部署一遍，不要用一样的项目名！你也可以多弄几个其他的正常pages或workers项目做伪装！博主使用新号实测被gank了3次（每一次都换名字删除pages然后重新部署），然后一直稳定到现在</strong></li>\n<li><strong>本人实测在全天使用edgetunnel的情况下已经使用了大部分的配额，所以请不要将自己的项目分享给别人，也不要拿去卖！自己注册简简单单！</strong></li>\n<li>如图为博主半天的使用量：我只是上了上Telegram~</li>\n<li><img src=\"https://b.acofork.com/img/vpn-2024-11-26-16-07-50-image.webp\" alt=\"\" width=\"492\" height=\"93\" loading=\"lazy\" decoding=\"async\" /></li>\n</ol>\n<h2 id=\"将你自己的国外vps作为代理使用\">将你自己的国外VPS作为代理使用</h2><h3 id=\"使用新协议-hysteria2\">使用新协议：Hysteria2</h3><p>可以前往这两个仓库进行一键安装~</p>\n<p><a href=\"https://github.com/0x0129/hysteria2\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/0x0129/hysteria2</a></p>\n<p><a href=\"https://github.com/seagullz4/hysteria2\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/seagullz4/hysteria2</a></p>\n<p>大致安装过程：自签名，不使用acme，不使用端口跳跃</p>\n<p>客户端（Hiddify）：</p>\n<p><a href=\"https://github.com/hiddify/hiddify-app\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/hiddify/hiddify-app</a></p>\n<p>其他客户端在第二个Github Repo获取</p>\n<h3 id=\"使用旧协议-v2ray\">使用旧协议：V2Ray</h3><p><a href=\"https://github.com/233boy/v2ray\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/233boy/v2ray</a></p>\n<p>VPS安装脚本：<code>bash &lt;(curl -s -L https://git.io/v2ray.sh)</code></p>\n<p>详细安装：脚本执行完毕后输入<code>v2ray</code>更改配置为Shadowsocks</p>\n<p>Windows客户端： <a href=\"https://github.com/2dust/v2rayN/releases\" target=\"_blank\" rel=\"noopener noreferrer\">Releases · 2dust/v2rayN · GitHub</a></p>\n<p>Android客户端： <a href=\"https://github.com/2dust/v2rayNG/releases\" target=\"_blank\" rel=\"noopener noreferrer\">Releases · 2dust/v2rayNG · GitHub</a></p>\n","toc":[{"id":"将cloudflare作为代理使用-vless-edgetunnel","text":"将Cloudflare作为代理使用（Vless - EdgeTunnel）","depth":2},{"id":"将你自己的国外vps作为代理使用","text":"将你自己的国外VPS作为代理使用","depth":2},{"id":"使用新协议-hysteria2","text":"使用新协议：Hysteria2","depth":3},{"id":"使用旧协议-v2ray","text":"使用旧协议：V2Ray","depth":3}]}