summaryrefslogtreecommitdiff
path: root/man/systemd.netdev.xml
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-29 16:36:42 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-01 04:00:11 +0900
commite90843445890586912ec366cf017f01483c7fdd6 (patch)
treedefb70cf0c69f7519d0abb2d3483348fa32ebdaa /man/systemd.netdev.xml
parent28870a9d2e542a5987fe179119ff09db414d43d8 (diff)
downloadsystemd-e90843445890586912ec366cf017f01483c7fdd6.tar.gz
network: wireguard: automatically configure routes to addresses specified in AllowedIPs=
Closes #14176.
Diffstat (limited to 'man/systemd.netdev.xml')
-rw-r--r--man/systemd.netdev.xml44
1 files changed, 44 insertions, 0 deletions
diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml
index bd493a8c53..e4e7e611e7 100644
--- a/man/systemd.netdev.xml
+++ b/man/systemd.netdev.xml
@@ -1569,6 +1569,29 @@
<para>Sets a firewall mark on outgoing WireGuard packets from this interface. Takes a number between 1 and 4294967295.</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>RouteTable=</varname></term>
+ <listitem>
+ <para>The table identifier for the routes to the addresses specified in the
+ <varname>AllowedIPs=</varname>. Takes the special value <literal>off</literal>, one of the
+ predefined names <literal>default</literal>, <literal>main</literal>, and
+ <literal>local</literal>, names defined in <varname>RouteTable=</varname> in
+ <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
+ or a number in the range 1…4294967295. When <literal>off</literal> the routes to the
+ addresses specified in the <varname>AllowedIPs=</varname> setting will not be configured.
+ Defaults to <literal>main</literal>. This setting will be ignored when the same setting is
+ specified in the [WireGuardPeer] section.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><varname>RouteMetric=</varname></term>
+ <listitem>
+ <para>The priority of the routes to the addresses specified in the
+ <varname>AllowedIPs=</varname>. Takes an integer in the range 0…4294967295. Defaults to 0
+ for IPv4 addresses, and 1024 for IPv6 addresses. This setting will be ignored when the same
+ setting is specified in the [WireGuardPeer] section.</para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>
@@ -1653,6 +1676,27 @@
Most users will not need this.</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>RouteTable=</varname></term>
+ <listitem>
+ <para>The table identifier for the routes to the addresses specified in the
+ <varname>AllowedIPs=</varname>. Takes the special value <literal>off</literal>, one of the
+ predefined names <literal>default</literal>, <literal>main</literal>, and
+ <literal>local</literal>, names defined in <varname>RouteTable=</varname> in
+ <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
+ or a number in the range 1…4294967295. Defaults to unset, and the value specified in the
+ same setting in the [WireGuard] section will be used.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><varname>RouteMetric=</varname></term>
+ <listitem>
+ <para>The priority of the routes to the addresses specified in the
+ <varname>AllowedIPs=</varname>. Takes an integer in the range 0…4294967295. Defaults to
+ unset, and the value specified in the same setting in the [WireGuard] section will be used.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>