Skip to content
DubiDubi

WireGuard

WireGuard servers are added on the Own server tab. The fields map one to one onto a standard wg0.conf:

wg0.confField in DubiDubi
[Interface] PrivateKeyClient private key
[Interface] AddressTunnel address
[Peer] PublicKeyServer public key
[Peer] PresharedKeyPreshared key (optional)
[Peer] Endpoint hostServer address
[Peer] Endpoint portPort

Things to know

  • Tunnel address is the client's address inside WireGuard, for example 10.0.0.2/32 — not the server's address. Several addresses can be separated with commas.
  • The endpoint needs a port. wg.example.com alone is not enough; the port field is required.
  • Latency is not measured. WireGuard listens on UDP, and the latency test uses TCP, so the server list shows a dash.
  • IPv6 endpoints are not supported yet.

As JSON

A WireGuard server can also be pasted as an Xray outbound in JSON on the Link or key tab:

{
  "protocol": "wireguard",
  "settings": {
    "secretKey": "<client private key>",
    "address": ["10.0.0.2/32"],
    "peers": [{ "publicKey": "<server public key>", "endpoint": "wg.example.com:51820" }]
  }
}

Something unclear? Write to support.