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.