diff options
author | 1848 <nomail> | 2019-07-08 17:09:46 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-10 16:02:19 +0200 |
commit | 98d20a17a9f673ede7de6bfc72340b024af5071c (patch) | |
tree | 523e7a30b16da3a31e1904298dcae441806de008 /man | |
parent | fuzzbuzz: rename fuzz.yaml to fuzzbuzz.yaml (diff) | |
download | systemd-98d20a17a9f673ede7de6bfc72340b024af5071c.tar.xz systemd-98d20a17a9f673ede7de6bfc72340b024af5071c.zip |
Added support for xfrm interfaces
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd.netdev.xml | 43 | ||||
-rw-r--r-- | man/systemd.network.xml | 31 |
2 files changed, 74 insertions, 0 deletions
diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml index d083fb9a6f..3cce776cc2 100644 --- a/man/systemd.netdev.xml +++ b/man/systemd.netdev.xml @@ -179,6 +179,9 @@ <row><entry><varname>fou</varname></entry> <entry>Foo-over-UDP tunneling.</entry></row> + <row><entry><varname>xfrm</varname></entry> + <entry>A virtual tunnel interface like vti/vti6 but with several advantages.</entry></row> + </tbody> </tgroup> </table> @@ -1849,6 +1852,36 @@ </refsect1> <refsect1> + <title>[Xfrm] Section Options</title> + + <para>The <literal>[Xfrm]</literal> section accepts the following + keys:</para> + + <variablelist class='network-directives'> + <varlistentry> + <term><varname>InterfaceId=</varname></term> + <listitem> + <para>Sets the ID/key of the xfrm interface which needs to be associated with a SA/policy. + Can be decimal or hexadecimal, valid range is 0-0xffffffff, defaults to 0.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><varname>Independent=</varname></term> + <listitem> + <para>Takes a boolean. If set to <literal>no</literal>, the xfrm interface should have an + underlying device which can be used for hardware offloading. Defaults to <literal>no</literal>. + See <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for how to configure the underlying device.</para> + </listitem> + </varlistentry> + </variablelist> + + <para>For more detail information see + <ulink url="https://lwn.net/Articles/757391"> + Virtual xfrm interfaces</ulink></para> + </refsect1> + + <refsect1> <title>[VRF] Section Options</title> <para>The <literal>[VRF]</literal> section only applies for netdevs of kind <literal>vrf</literal> and accepts the @@ -2048,6 +2081,16 @@ PublicKey=RDf+LSpeEre7YEIKaxg+wbpsNV7du+ktR99uBEtIiCA= AllowedIPs=fd31:bf08:57cb::/48,192.168.26.0/24 Endpoint=wireguard.example.com:51820</programlisting> </example> + + <example> + <title>/etc/systemd/network/27-xfrm.netdev</title> + <programlisting>[Xfrm] +Name=xfrm0 +Kind=xfrm + +[Xfrm] +Independent=yes</programlisting> + </example> </refsect1> <refsect1> diff --git a/man/systemd.network.xml b/man/systemd.network.xml index d32b60a2c9..c48b294551 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -857,6 +857,14 @@ </listitem> </varlistentry> <varlistentry> + <term><varname>Xfrm=</varname></term> + <listitem> + <para>The name of the xfrm to create on the link. See + <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>. + This option may be specified more than once.</para> + </listitem> + </varlistentry> + <varlistentry> <term><varname>KeepConfiguration=</varname></term> <listitem> <para>Takes a boolean or one of <literal>static</literal>, <literal>dhcp-on-stop</literal>, @@ -2338,6 +2346,29 @@ Name=enp0s25 MACVTAP=macvtap-test </programlisting> </example> + + <example> + <title>A Xfrm interface with physical underlying device.</title> + + <programlisting># /etc/systemd/network/27-xfrm.netdev +[NetDev] +Name=xfrm0 + +[Xfrm] +InterfaceId=7</programlisting> + + <programlisting># /etc/systemd/network/27-eth0.network +[Match] +Name=eth0 + +[Network] +Xfrm=xfrm0</programlisting> + + <para>This creates a <literal>xfrm0</literal> interface and binds it to the <literal>eth0</literal> device. + This allows hardware based ipsec offloading to the <literal>eth0</literal> nic. + If offloading is not needed, xfrm interfaces can be assigned to the <literal>lo</literal> device. + </para> + </example> </refsect1> <refsect1> |