var img = document.createElement('img'); img.src = "https://matomo.0l.de/piwik.php?idsite=5&rec=1&url=https://cunicu.li" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Peer Discovery

The peer discovery feature can be used to find other peers. A set of peers is identified by a common community passphrase.

Peers belonging to the same community will be added as WireGuard peers to the interface configuration.

No other tasks are performed. Paired with other features like the endpoint discovery, auto configuration or route synchronization, the peer discovery is a cornerstone of a zero-configuration peer-to-peer VPN.

In addition to community passphrase, peers can be accepted by white- and blacklist filtering.

Configuration

The following settings can be used in the main section of the configuration file or with-in the interfaces section to customize settings of an individual interface.

discover_peers
boolean (Peer Discovery)
Default: true

Enable/disable peer discovery.

hostname
string <hostname> (Hostname)

The hostname which gets advertised to remote peers.

community
string (Community) non-empty

A passphrase shared among all peers of the same community.

networks
Array of strings (Networks)

Networks which are reachable via this peer and get advertised to remote peers. These will be part of this interfaces AllowedIPs at the remote peers.

whitelist
Array of strings (Peer Whitelist) [[^-A-Za-z0-9+/=]|=[^=]|={3,}$]

A list of WireGuard public keys which are accepted peers. If not configured, all peers will be accepted.

blacklist
Array of strings (Peer Blacklist) [[^-A-Za-z0-9+/=]|=[^=]|={3,}$]

A list of WireGuard public keys which are rejected as peers.

{
  • "discover_peers": true,
  • "hostname": "my-node",
  • "community": "some-common-password",
  • "networks": [
    ],
  • "whitelist": [
    ],
  • "blacklist": [
    ]
}