From 98d20a17a9f673ede7de6bfc72340b024af5071c Mon Sep 17 00:00:00 2001 From: 1848 Date: Mon, 8 Jul 2019 17:09:46 +0200 Subject: Added support for xfrm interfaces --- man/systemd.netdev.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ man/systemd.network.xml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) (limited to 'man') 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 @@ fou Foo-over-UDP tunneling. + xfrm + A virtual tunnel interface like vti/vti6 but with several advantages. + @@ -1848,6 +1851,36 @@ Linux Ethernet Bonding Driver HOWTO + + [Xfrm] Section Options + + The [Xfrm] section accepts the following + keys: + + + + InterfaceId= + + 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. + + + + Independent= + + Takes a boolean. If set to no, the xfrm interface should have an + underlying device which can be used for hardware offloading. Defaults to no. + See systemd.network5 + for how to configure the underlying device. + + + + + For more detail information see + + Virtual xfrm interfaces + + [VRF] Section Options The [VRF] section only applies for @@ -2048,6 +2081,16 @@ PublicKey=RDf+LSpeEre7YEIKaxg+wbpsNV7du+ktR99uBEtIiCA= AllowedIPs=fd31:bf08:57cb::/48,192.168.26.0/24 Endpoint=wireguard.example.com:51820 + + + /etc/systemd/network/27-xfrm.netdev + [Xfrm] +Name=xfrm0 +Kind=xfrm + +[Xfrm] +Independent=yes + 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 @@ -856,6 +856,14 @@ + + Xfrm= + + The name of the xfrm to create on the link. See + systemd.netdev5. + This option may be specified more than once. + + KeepConfiguration= @@ -2338,6 +2346,29 @@ Name=enp0s25 MACVTAP=macvtap-test + + + A Xfrm interface with physical underlying device. + + # /etc/systemd/network/27-xfrm.netdev +[NetDev] +Name=xfrm0 + +[Xfrm] +InterfaceId=7 + + # /etc/systemd/network/27-eth0.network +[Match] +Name=eth0 + +[Network] +Xfrm=xfrm0 + + This creates a xfrm0 interface and binds it to the eth0 device. + This allows hardware based ipsec offloading to the eth0 nic. + If offloading is not needed, xfrm interfaces can be assigned to the lo device. + + -- cgit v1.2.3