Premium · Clash documentation

Feature: Userspace WireGuard

Build a Clash Premium userspace WireGuard node using private-key, public-key, preshared-key, remote DNS, MTU, UDP, and address fields.

  • WireGuard
  • private-key
  • public-key
  • remote-dns-resolve
  • MTU
Premium

Because it depends on the gvisor TCP/IP stack, userspace Wireguard is currently available only in the Premium core.

yaml
proxies:
  - name: "wg"
    type: wireguard
    server: 127.0.0.1
    port: 443
    ip: 172.16.0.2
    # ipv6: your_ipv6
    private-key: eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU=
    public-key: Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo=
    # preshared-key: base64
    # remote-dns-resolve: true # 远程解析 DNS, 使用 `dns` 字段, 默认为 true
    # dns: [1.1.1.1, 8.8.8.8]
    # mtu: 1420
    udp: true