github.com/igoogolx/clash@v1.19.8/docs/premium/userspace-wireguard.md (about)

     1  ---
     2  sidebarTitle: "Feature: Userspace Wireguard"
     3  sidebarOrder: 7
     4  ---
     5  
     6  # Userspace Wireguard
     7  
     8  Due to the dependency on gvisor TCP/IP stack, Wireguard outbound is currently only available in the Premium core.
     9  
    10  ```yaml
    11  proxies:
    12    - name: "wg"
    13      type: wireguard
    14      server: 127.0.0.1
    15      port: 443
    16      ip: 172.16.0.2
    17      # ipv6: your_ipv6
    18      private-key: eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU=
    19      public-key: Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo=
    20      # preshared-key: base64
    21      # remote-dns-resolve: true # remote resolve DNS with `dns` field, default is true
    22      # dns: [1.1.1.1, 8.8.8.8]
    23      # mtu: 1420
    24      udp: true
    25  ```