最强免费VPN 获取WARP配置文件 用Wireguard客户端进行国内外分流

蔡说
8 Feb 202407:20

Summary

TLDRThis video tutorial guides viewers through the process of setting up and configuring WireGuard VPN using WARP configuration files. It covers downloading the WireGuard software, deploying scripts on Replit, and optimizing IP selection for best performance. The video also demonstrates how to obtain WARP+ and team accounts, and how to set up geo-splitting for internet traffic. Detailed instructions are provided for each step, ensuring a comprehensive understanding of the VPN setup process.

Takeaways

  • 📺 Welcome to the third episode of the WARP VPN series where we guide you through obtaining WARP configuration files and setting up国内外分流 with WireGuard.
  • 💻 Start by visiting the WireGuard official website to download the appropriate software and install it by double-clicking the installation package.
  • 🌐 Go to the replit container website, create an account, and deploy the script to your account by forking it.
  • 🔟 Execute the script by clicking 'run' and follow the video demonstration for all three types of accounts.
  • 📋 Copy the highlighted text from the script output and paste it into WireGuard to replace the existing text in the new tunnel settings.
  • 🆕 Create a new empty tunnel in WireGuard, name it, and save the settings.
  • 🌐 Optimize your experience by selecting the IP with the lowest packet loss and latency as demonstrated in the first WARP video tutorial.
  • 🔑 For WARP+ accounts, run the script, input '2', and copy the 26-digit key as explained in the second WARP video.
  • 📱 For mobile devices, scan the QR code provided to add the configuration file to WireGuard.
  • 👥 For WARP team accounts, input '3', follow the steps to obtain the team token, and paste it into the WireGuard settings.
  • 🔄 To set up国内外分流, download and extract the files from GitHub, and follow the instructions to modify the WireGuard configuration files.
  • 🛠️ Modify the DNS to your local IP (127.0.0.1) and disable the勾选 option in WireGuard before saving the configuration changes.

Q & A

  • What is the main topic of this video?

    -The main topic of this video is how to set up and use the WARP VPN with the WireGuard client for split tunneling, including obtaining WARP configuration files and optimizing IP selection.

  • How can one obtain the WireGuard client?

    -To obtain the WireGuard client, one should visit the WireGuard official website, download the corresponding software, and install it by double-clicking the installation package.

  • What is the purpose of visiting the replit website as described in the script?

    -The purpose of visiting the replit website is to create an account and deploy the necessary scripts to one's own account by forking the project, which is then used to run the WireGuard setup.

  • How does one select an optimal IP for the WireGuard setup?

    -To select an optimal IP, one should use the lowest packet loss and latency IP, as demonstrated in the creator's WARP第一期 video.

  • What is the process for obtaining a WARP+ account configuration file?

    -To obtain a WARP+ account configuration file, one needs to run the script, input '2', and copy the 26-digit key from the Plus account, as explained in the WARP第二期 video.

  • How can a user add a configuration file to the WireGuard client on mobile devices?

    -On mobile devices, users can add a configuration file to the WireGuard client by scanning the QR code provided in the setup process.

  • What is the recommended type of WARP account according to the video creator?

    -The video creator recommends using the WARP team account as the most preferred option.

  • How does one obtain a WARP team account and its corresponding team token?

    -To obtain a WARP team account and team token, one should input '3', then '1', follow the link, enter the team name, provide an email, and fill in the verification code. The token is then copied and pasted into the WireGuard setup.

  • What is the GitHub project mentioned in the script used for?

    -The GitHub project mentioned is used for downloading and setting up the necessary scripts for split tunneling with WireGuard, which involves modifying the configuration files with specific commands and DNS settings.

  • What is the significance of modifying the MTU and DNS settings in the WireGuard configuration?

    -Modifying the MTU and DNS settings is part of the process to enable split tunneling, where the DNS is set to the local IP (127.0.0.1) and certain options are disabled to direct specific traffic through the VPN.

  • What is the recommended practice when editing WireGuard configuration files?

    -It is recommended to first disconnect from WireGuard before making any changes to the configuration files to avoid conflicts or errors.

Outlines

00:00

🌐 WARP VPN Configuration and WireGuard Setup

This paragraph introduces the viewer to the third installment of the WARP VPN series, focusing on obtaining WARP configuration files and setting up WireGuard for split tunneling. It guides the user through downloading WireGuard from the official website, registering on the replit platform, deploying scripts, and running the project. The process of using different types of accounts (standard, Plus, and team) is explained, including how to copy and paste the necessary information into WireGuard to establish a connection. It also briefly mentions a previous video that demonstrates how to select the best IP for optimal performance.

05:35

🛠️ Advanced Configuration and Split Tunneling

The second paragraph delves into the technical aspects of configuring WireGuard for advanced users. It instructs the viewer on how to execute commands in the terminal to set up a batch file for WireGuard. The user is guided to modify the DNS settings to point to the local IP and to disable certain options within WireGuard. This paragraph assumes a level of technical proficiency and references a GitHub project for further instructions on split tunneling, which allows for internet traffic to be routed appropriately.

Mindmap

Keywords

💡WARP VPN

WARP VPN is a service that provides users with an encrypted and optimized connection to the internet. In the context of the video, it is the primary tool being discussed and utilized for creating a secure and efficient connection. The video series focuses on how to configure and use WARP VPN with the WireGuard client for various purposes, including traffic splitting between domestic and international traffic.

💡WireGuard

WireGuard is a modern, high-performance VPN protocol that is designed to be simple, fast, and easy to configure. In the video, WireGuard is used as the client software to implement the WARP VPN service, allowing users to create secure tunnels and manage their VPN connections effectively.

💡Configuration File

A configuration file is a file used to store settings and configurations for software. In the context of VPNs, such as WARP VPN, configuration files contain the necessary information for a VPN client to establish a connection to a VPN server. The video demonstrates how to obtain and apply these files for WireGuard to set up VPN tunnels.

💡Replit

Replit is an online platform that allows users to write, run, and collaborate on code in various programming languages. In the video, Replit is used as a hosting service to deploy scripts that can be run in the browser, which simplifies the process of obtaining and applying WARP VPN configurations.

💡IP Address

An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. In the context of the video, selecting an optimal IP address is crucial for ensuring a stable and fast VPN connection with low packet loss and latency.

💡WARP+ Account

A WARP+ Account is a premium subscription plan offered by Cloudflare that provides users with additional features and benefits compared to the free WARP VPN service. These benefits may include faster speeds, higher security, and priority support. The video demonstrates how to obtain and use a WARP+ Account configuration file for WireGuard.

💡Team Account

A WARP Team Account is a subscription plan designed for organizations or groups that want to provide VPN services to multiple users. It typically includes centralized management, billing, and support features. In the video, the creator explains how to obtain and configure a WARP Team Account for use with WireGuard.

💡GitHub

GitHub is a web-based hosting service for version control using Git. It is a platform where developers share and collaborate on code, including scripts and projects. In the video, GitHub is used as a source for downloading specific scripts and files needed to set up traffic splitting for WireGuard.

💡Traffic Splitting

Traffic splitting is the process of routing different types of network traffic through different paths or connections. In the context of VPNs, this can be used to separate domestic and international traffic for optimized performance and security. The video provides instructions on how to set up traffic splitting using WireGuard and additional scripts.

💡DNS

DNS, or Domain Name System, is a system that translates more readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices on the internet. In the video, changing the DNS in the WireGuard configuration to a local IP address is part of the traffic splitting setup.

💡MTU

MTU, or Maximum Transmission Unit, is the size of the largest protocol data unit that can be communicated in a single network layer transaction. In the context of the video, adjusting the MTU value in the WireGuard configuration can help optimize the performance of the VPN connection by preventing fragmentation and reducing loss.

Highlights

Introduction to the third video in the WARP VPN series focusing on obtaining WARP configuration files and using WireGuard for geo-splitting.

Downloading the WireGuard software from the official WireGuard website.

Using the replit container website to deploy scripts by forking and running them.

Demonstration of creating a new tunnel in WireGuard with specific configuration text copied from replit.

Explanation of the necessity to select an optimal IP with the lowest packet loss and latency.

Showcase of connecting successfully with the optimized IP and running traffic.

Instructions on obtaining a WARP+ account configuration file using a 26-digit key.

Guidance on naming devices and the consistent process of creating tunnels and saving configurations.

Demonstration of how to acquire a WARP team account configuration file.

Details on obtaining a team token and applying it to the WireGuard configuration.

Recommendation of the team account as the most preferred option for WARP users.

Introduction to GitHub and the method for downloading and setting up WireGuard configurations for geo-splitting.

Explanation of the process to create a batch file for WireGuard configuration setup.

Instructions on modifying the DNS to local IP and disabling certain settings in WireGuard for proper configuration.

Emphasis on the importance of disconnecting WireGuard before making configuration changes.

Transcripts

00:00

大家好,欢迎来到我的频道

00:03

本期视频是WARP VPN系列第三期

00:07

获取WARP配置文件

00:09

并用Wrieguard客户端进行国内外分流

00:13

首先来到Wrieguard官网

00:16

下载对应的软件

00:31

双击安装包

00:49

来到replit这个容器网站

00:52

先注册一个账号

00:57

然后点击右边的fork

01:00

把脚本部署到自己的账号里

01:04

然后打开自己账号中的这个项目就行

01:07

之后就和视频中一样点击run

01:14

3种账号我们都演示一下,输入1

01:17

回车,复制红字部分

01:32

鼠标右键点击复制,快捷键用不了

01:36

然后打开Wrieguard

01:38

点击新建隧道旁的小三角

01:42

点击新建空隧道

01:44

将之前复制的内容粘贴替换掉这里的文字

01:48

命名后保存

02:00

但这个时候你可能还是用不了

02:02

需要优选IP

02:03

然后用丢包率和延迟最低的IP替换掉这里Endpoint后面的内容

02:09

如何优选IP在我的WARP第一期视频中有演示

02:14

可以看到底下流量在正常跑动

02:16

成功连接上了

02:21

然后来演示获得WARP+账户的配置文件

02:26

点击run,输入2

02:35

复制Plus账户的26位密钥

02:38

我的WARP第二期视频中有说怎么获取

02:40

不了解的可以去看一下

02:42

粘贴好密钥后,随便给设备取个名

02:45

然后就是跟之前一样的操作

02:51

移动端的Wrieguard直接扫描下方的二维码即可添加配置文件

03:10

然后就是新建空隧道,重命名

03:12

优选IP

03:13

保存,操作与之前一样

03:17

接下来演示获得WARP团队账户的配置文件

03:22

也是我最推荐的一种

03:24

输入3,再输入1,然后点击这个链接

03:38

输入自己的团队名

03:40

我的WARP第二期视频中有说怎么获得团队账户和团队名

03:50

然后输入邮箱,填写验证码

04:15

这个就是团队Token

04:22

复制下来,粘贴到这里

04:33

然后就还是一样的操作

04:45

替换

04:46

重命名,保存

04:47

最后来看一下怎么国内外分流

04:52

来到GitHub这个项目这里

04:55

点击zip,点击wireguard

04:57

zip,下载然后解压

05:34

按照这里的方法

05:37

先复制这条命令

05:40

鼠标右键,点击终端管理员

05:44

右键粘贴命令,回车

06:01

把解压的这些文件全部复制

06:18

在这里新建一个bat文件夹

06:32

把刚才复制的文件全部粘贴到这里

06:39

复制这四条命令

06:51

打开Wrieguard,点击编辑

06:55

在MTU下面一行粘贴这四条命令

07:00

把DNS改成本地IP,即127.0.0.1

07:08

把底下这个取消勾选

07:11

修改配置文件时要先断开Wrieguard的连接