![How to connect to Surfshark in countries with internet restrictions on a Windows device?](https://surfshark.com/wp-content/uploads/2023/08/Restricted_access_Windows-1024x501.png)
在本教程中,您将学习如何在 Windows 设备上设置 WireGuard 手动连接。
目录
凭证和位置
如要设置 WireGuard 手动连接,您将需要一个密钥对,并需选定您想要连接的位置,以下信息介绍了如何获取密钥对和服务器配置文件。
使用现有的密钥对
- 跳转到此页面,选择桌面端或移动端,然后点击 WireGuard。
![restricted connection wireguard windows 1](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-1.png)
- 在下一个窗口点击我有一个密钥对。
![restricted connection wireguard windows 2](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-2.png)
- 输入您的公钥,并点击保存。
![restricted connection wireguard windows 3](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-3.png)
- 现在,点击选择位置,并下载您想要连接的位置。
![restricted connection wireguard windows 4](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-4.png)
![restricted connection wireguard windows 5](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-5.png)
注:如果您未在下载该配置文件之前生成密钥对,那么该文件的密钥对信息将为空。这种情况下,您需要另行生成一个密钥对,然后将其手动输入至缺失字段中。
我没有密钥对
- 跳转到此页面,选择桌面端或移动端,然后点击 WireGuard。
![restricted connection wireguard windows 6](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-6.png)
- 在下一个窗口点击我没有密钥对。
![restricted connection wireguard windows 7](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-7.png)
- 点击生成新的密钥对。
注:密钥对生成之后,将其复制并存储在您的设备上,因为您将无法再次进行查看。
![restricted connection wireguard windows 8](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-8.png)
- 现在,点击选择位置,并下载您想要连接的位置。
![restricted connection wireguard windows 9](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-9.png)
![restricted connection wireguard windows 10](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-10.png)
注:如果您未在下载该配置文件之前生成密钥对,那么该文件的密钥对信息将为空。这种情况下,您需要另行生成一个密钥对,然后将其手动输入至缺失字段中。
下载并安装 WireGuard
![restricted connection wireguard windows 11](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-11.png)
- 安装完成后,该应用程序会自动打开。
连接 VPN
- 在 WireGuard 应用程序中,点击从文件导入通道。
![restricted connection wireguard windows 12](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-12.png)
- 现在选中您之前下载的 Surfshark 配置文件,然后点击打开。
![restricted connection wireguard windows 13](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-13.png)
- 您可以按照自己的喜好重新命名该上传连接。只需点击编辑,即可完成此操作。我会将其命名为 Surfshark WireGuard。
![restricted connection wireguard windows 14](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-14.png)
![restricted connection wireguard windows 15](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-15.png)
- 最后,点击激活,即可连接 VPN;点击禁用,即可断开 VPN 连接。
![restricted connection wireguard windows 16](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-windows-16.png)
祝贺您——现在您已知道如何在 Windows 设备上设置 WireGuard 手动连接。