適用於Windows的Cloudflare免費WireGuard VPN教程



涉及2個步驟:
 1-創建要在Windows上使用的配置文件密鑰
 2-安裝Wireguard VPN本身並對其進行配置
 
 
步驟1 :
 -下載Node.js(https://nodejs.org/en/download/)
  安裝Node.js
 -以「管理員」身份打開powershell _輸入「 Set-ExecutionPolicy RemoteSigned」 _鍵入「 y」,然後按Enter

 -在Powershell中輸入「 npm i -g cf-warp」,然後按Enter

 -等待下載

 -鍵入「 cf-warp」以生成具有1 gb的免費warp +的新密鑰,您可以鍵入「 cf-warp 10」以獲取10 GB,但這會花費更長的時間(將數字更改為您的心愿)

 (您可以在帶寬用完後繼續使用此密鑰,而只是使用免費服務,但是對於某些人來說,它可能會變慢(我個人認為沒有區別)

第2步 :
 -從以下網址下載最新版本:https://www.wireguard.com/install/
 -安裝後,打開程序,然後單擊左下方的標有「添加隧道」的圖片
 -在此處複製在Powershell中以「 .conf」結尾的地址,然後在主菜單上單擊「激活」
 -使用以下命令檢查連接狀態:「 https://www.cloudflare.com/cdn-cgi/trace」,在最後一行,如果您未連接「 warp = off」,則省略了「 warp = on」重新獲得一個免費帳戶,如果您使用elif「 warp = plus」,則說明您是付費會員
—–
額外說明:
我們曾經用什麼包來做到這一點:https://github.com/maple3142/cf-warp

*為安全起見,您可以使用「 Set-ExecutionPolicy Restricted」來設置Powershell規則,但是我個人並不希望每次運行此腳本時都這樣做。

**如果您以無政府主義者的身份使用此協議,則可以並且應該偶爾使用此腳本隱藏您的蹤跡,wireguard仍然需要進一步的測試,並且使用此腳本創建一個新腳本確實很容易。

-請享用

5 comments
  1. It doesn't work here anymore, but the video is still good !! Would it be possible to pass the link to download the profile to WireGuard, and I edit the connection "data", along with what I already have on my smartphone, in the 1.1.1.1 app? If that is possible, thank you! By the way, your IP is exposed in the video, try to cover it

  2. i think there is something wrong, can you identifier what the problem is…(node:10760) UnhandledPromiseRejectionWarning: HTTPError: Forbidden

    at responseErrorThrower (C:UsersAdministratorAppDataRoamingnpmnode_modulescf-warpnode_modulesxfetch-jsxfetch.js:37:22)

    at processTicksAndRejections (internal/process/task_queues.js:97:5)

    at async module.exports (C:UsersAdministratorAppDataRoamingnpmnode_modulescf-warplibregister.js:11:15)

    at async init (C:UsersAdministratorAppDataRoamingnpmnode_modulescf-warpcli.js:41:15)

    (node:10760) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `–unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

    (node:10760) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Comments are closed.