When using multiple peers, each peer's allowed-ips needs to be distinct. In this case, top-level fields such as server, port, public-key, pre-shared-key, and reserved are ignored, but private-key is still specified at the top level.
proxies:-name:"wg"type:wireguardip:172.16.0.2ipv6:fd01:5ca1:ab1e:80fa:ab85:6eea:213f:f4a5private-key:eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU=peers:-server:162.159.192.1port:2480public-key:Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo=allowed-ips:['0.0.0.0/0']# pre-shared-key: 31aIhAPwktDGpH4JDhA8GNvjFXEf/a6+UaQRyOAiyfM=# reserved: [209,98,59] # String format is also valid, such as "U4An"udp:true# mtu: 1408# dialer-proxy: "ss1" # Identifier of an outbound proxy. When non-empty, connections are sent through the specified proxy/proxy-group# remote-dns-resolve: true # Force remote DNS resolution, default is false# dns: [ 1.1.1.1, 8.8.8.8 ] # Effective only when remote-dns-resolve is true
-name:"wg"type:wireguardip:<local network IP, fill IPv4 here>ipv6:<local network IP, fill IPv6 here># Delete if there is no v6 addressprivate-key:<local private key>peers:-server:<remote address>port:<remote port>public-key:<remote public key>allowed-ips:['0.0.0.0/0']# Traffic splitting is handled by clash# reserved: [209,98,59] # Fill in if neededudp:truemtu:<preset MTU># Set as needed, delete if not neededremote-dns-resolve:true# Set as needed, delete if not neededdns:<DNS to use># Set as needed, delete if not needed