diff options
Diffstat (limited to 'src/libnm-core-impl/nm-setting-wireguard.c')
| -rw-r--r-- | src/libnm-core-impl/nm-setting-wireguard.c | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/libnm-core-impl/nm-setting-wireguard.c b/src/libnm-core-impl/nm-setting-wireguard.c index 614be0f6..9a324188 100644 --- a/src/libnm-core-impl/nm-setting-wireguard.c +++ b/src/libnm-core-impl/nm-setting-wireguard.c @@ -2532,6 +2532,73 @@ nm_setting_wireguard_class_init(NMSettingWireGuardClass *klass) NMSettingWireGuard, _priv.ip6_auto_default_route); + /* ---nmcli--- + * property: peers + * format: a comma-separated list of WireGuard peers + * description: + * A comma-separated list of WireGuard peers. Each peer has the following syntax: + * + * PUBLIC_KEY [ATTRIBUTE=VALUE [ATTRIBUTE=VALUE]...] + * + * The supported attributes are: endpoint, allowed-ips, persistent-keepalive, + * preshared-key, preshared-key-flags. + * description-docbook: + * <para> + * A comma-separated list of WireGuard peers. Each peer has the following syntax: + * </para> + * <para> + * <literal> + * <replaceable>public-key</replaceable> + * [<replaceable>attribute</replaceable>=<replaceable>value</replaceable> + * [<replaceable>attribute</replaceable>=<replaceable>value</replaceable>]...] + * </literal> + * </para> + * <para> + * The public key is required and must be encoded as base64; it can be + * calculated by running <command>wg pubkey</command> on the private key, + * and it is usually transmitted out of band to the author of the configuration + * file. + * </para> + * <para> + * The supported attributes are: + * <variablelist> + * <varlistentry> + * <term><varname>endpoint</varname></term> + * <listitem><para>An endpoint IP or hostname, followed by a colon, and then + * a port number.</para></listitem> + * </varlistentry> + * + * <varlistentry> + * <term><varname></varname></term> + * <listitem><para></para></listitem> + * </varlistentry> + * <varlistentry> + * <term><varname>allowed-ips</varname></term> + * <listitem><para>A semicolon-separated list of IP (v4 or v6) addresses + * with CIDR masks from which incoming traffic for this peer is allowed + * and to which outgoing traffic for this peer is directed + * </para></listitem> + * </varlistentry> + * <varlistentry> + * <term><varname>persistent-keepalive</varname></term> + * <listitem><para>An interval in seconds, between 1 and 65535, of + * how often to send an authenticated empty packet to the peer for the + * purpose of keeping a stateful firewall or NAT mapping valid persistently. + * </para></listitem> + * </varlistentry> + * <varlistentry> + * <term><varname>preshared-key</varname></term> + * <listitem><para>A base64 preshared key generated by "wg genpsk". Optional, + * and may be omitted.</para></listitem> + * </varlistentry> + * <varlistentry> + * <term><varname>preshared-key-flags</varname></term> + * <listitem><para>The secret flags for the preshared-key.</para></listitem> + * </varlistentry> + * </variablelist> + * </para> + * ---end--- + */ /* ---dbus--- * property: peers * format: array of 'a{sv}' |