Surge 中使用 WireGuard 配置指南

本文将详细介绍如何在 Surge 中配置和使用 WireGuard VPN,为您提供安全可靠的网络连接。

1. 在 Surge 配置文件中添加 WireGuard 配置段落

首先,您需要在 Surge 的配置文件中添加 WireGuard 配置段落,示例如下:

[Proxy]
WireGuard = custom, '<name>', '<interface>', '<private key>', '<peer public key>', '<peer allowed IPs>', '<endpoint>'

[Proxy Group]
WireGuard = select, '<name>'

参数说明:

  • <name>:自定义名称
  • <interface>:WireGuard 网络接口名称
  • <private key>:本地私钥
  • <peer public key>:远程公钥
  • <peer allowed IPs>:远程允许访问的 IP 范围
  • <endpoint>:远程服务器地址和端口

2. 在 Surge 配置文件中添加代理组件段落

接下来,您需要在 Surge 配置文件中添加代理组件段落,示例如下:

[Proxy Group]
WireGuard = select, '<name>'

参数说明:

  • <name>:WireGuard 配置段落中自定义的名称

3. 重新加载 Surge 配置文件并启动 WireGuard 代理

最后,您需要重新加载 Surge 配置文件并启动 WireGuard 代理,即可使用 WireGuard 连接。

通过以上步骤,您就可以成功地在 Surge 中配置和使用 WireGuard VPN,享受安全可靠的网络连接。


原文地址: https://www.cveoy.top/t/topic/jzuu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录