WireGuard® VPN 协议使用

4 min


我们一直在努力探索新的协议方案,现在已上线测试 协议!

WireGuard 是一种低占用率、高速、的协议,经过我们的内部测试,我们认为这将是一个很好的补充协议。

开通

DUN.IM PLAN +WireGuard +500G/月

WireGuard VPN 协议 + 500G 流量/月 + 指定专属区域 + 3 个设备同时使用 + 专属远程支持 + 更多会员福利

客户端

标签:VPN & 代理WireGuard

下 载 – DUN.IM STORE

‎Outline is an easy way for you to set up your own virtual private network (VPN) server to more safely access the open internet and keep your communications private. If you have received an access key, download the Outline app to get started. If you haven't received an access key, you'll first ne…

使用

推荐 Windows 使用 TunSafe 1.5-rc2 客户端

  1. 打开 TunSafe,窗口选项栏 FileImport File – 导入 PANEL 配置文件。
    或者可以拖动下载的配置文件到 TunSafe 窗口完成导入。
  2. 点击客户端 Connect 按钮即可连接 VPN
  3. 你也可以将多个节点配置放到一个文件夹中,再将这个文件夹放入 TunSafe 安装路径的 Config 文件夹下面。

Android

推荐 Android 使用 TunSafe 客户端

  1. 进入 App 点击右上角展开功能,依次为:配置文件,排除 App,设置,关于。
  2. 点击 Config Files 进入配置文件功能,导入配置文件,并勾选。
  3. 返回 点击 App 首屏 大按钮即可。
  4. 可选,在 Excluded Apps 功能中,可以设置排除国内 App,以优化国内应用网速。

Wireguard

https://www.wireguard.com/install/

Android 示例

手机上下载配置文件 – 打开 WireGuard 客户端 – 点右下角加号 – 选择 Create from file or archive 导入配置文件,完成点击右边滑块即可连接。

iOS

示例

https://blog.dun.im/dun/surge-wireguard-vpn-to-proxy.html

配置参数说明/其他客户端配置

WireGuard 配置文件的参数包括以下内容,你可以对应手动添加配置到使用的其他客户端中:

1. Interface 部分:

  • Address:指定 VPN 接口的 IP 地址和子网掩码。
  • PrivateKey:定义 VPN 接口的私钥,用于加密和身份
  • ListenPort:指定 VPN 服务器监听的端口号。

2. Peer 部分:

  • PublicKey:对等方的公钥,用于身份验证和加密通信。
  • AllowedIPs:指定对等方允许访问的 IP 地址范围。
  • Endpoint:定义对等方的 IP 地址和端口号。

3. Peer 部分的其他参数:

  • PersistentKeepalive:指定保持活动连接的间隔时间,有助于防止连接超时。

更多高级自定义设置

  • 通过添加 PreUp PostDown 脚本,实现在 VPN 连接建立和断开时执行特定操作。
  • 使用 AllowedIPs 参数来限制对等方的访问范围,增强网络安全性。
  • 结合网络命名空间和路由表,实现更复杂的网络拓扑结构和隔离。

如果您有任何问题,请随时联系我们的支持团队。您可以通过 DUN.IM SOCIAL,或 Telegram 进行联系。


Like it? Share with your friends!

0
DUN

Choose A Format
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Video
Youtube and Vimeo Embeds