Matecho - Argo Tunnel
type: channel
link: https://matecho-dev.zapic.moe/tag/Argo-Tunnel/
items: 使用Cloudflare Argo Tunnel快速免公网IP建站

使用Cloudflare Argo Tunnel快速免公网IP建站
type: item
date: 2021-04-24T05:35:00+00:00
description: Cloudflare真的是白嫖党的福利啊(前几天,Cloudflare用户应该收到一封邮件,Cloudflare Argo Tunnel向所有用户免费开放使用了(Source Link).A few months ago, we announced that we wanted to make Zero Trust security accessible to everyone, regardless of size, scale, or resources. Argo Tunnel, our secure method of connecting resources directly to Cloudflare, is the next piece of the puzzle.几个月前,我们宣布我们想要让零信任安全对所有人可用,无论大小,规模资源如何.Argo Tunnel,将资源连接到Cloudflare的安全方式,就是完成这个项目的下一块拼图.但是谁管他什么拼图不拼图的,嫖就完事了.以下教程针对Linux环境,Windows用户请酌情调整.什么?你不会酌情调整?你他妈连Windows都不会用,自己滚回去补点基础再想着白嫖.\#0 安装cloudflared下载cloudflared在这个页面里寻找适合你的安装方式: Install cloudflared\#1 登录Cloudflare账号zapic@zapic-server:~$ cloudflared tunnel login Please open the following URL and log in with your Cloudflare account: https://dash.cloudflare.com/argotunnel?callback=https%3A%2F%2Flogin.argotunnel.com%2F1145141919810%3D Leave cloudflared running to download the cert automatically.在浏览器打开显示的链接,登录你的Cloudflare账号.然后选择一个域名启用Cloudflare Argo Tunnel,并同意授权.注意你有可能看到如下的消息:Failed to write the certificate due to the following error: Failed to fetch resource Your browser will download the certificate instead. You will have to manually copy it to the following path: /home/zapic/.cloudflared/cert.pem这通常发生在服务器网络状态不佳的状况下.这时在浏览器完成授权后,会自动下载一个证书文件,你需要手动上传到服务器并放置在消息提示的位置.这样登录就完成了.\#2 创建隧道完成登录后,就可以创建和管理隧道了.zapic@zapic-server:~$ cloudflared tunnel create Website Tunnel credentials written to /home/zapic/.cloudflared/11451419-1981-0114-5141-919810114514.json. cloudflared chose this file based on where your origin certificate was found. Keep this file secret. To revoke these credentials, delete the tunnel. Created tunnel Website with id 11451419-1981-0114-5141-919810114514 zapic@zapic-server-0:~$ cloudflared tunnel list You can obtain more detailed information for each tunnel with `cloudflared tunnel info <name/uuid>` ID NAME CREATED CONNECTIONS 11451419-1981-0114-5141-919810114514 Website 2021-04-24T04:01:12Z # 这会删除刚刚创建的隧道(Website) # zapic@zapic-server:~$ cloudflared tunnel delete Website\#3 启动隧道…