From 4046d8361c55c80ab8577aea52523b9e6eab0d0c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 24 Apr 2015 19:53:38 +0200 Subject: [PATCH] man: extend documentation on IPForward= and IPMasquerade= Mention the default values, and clarify how this relates to the underlying sysctls. --- man/systemd.network.xml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 087e9e2156..c7e4db4e3c 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -358,7 +358,24 @@ the routing table. Takes either a boolean argument, or the values ipv4 or ipv6, which only enables IP forwarding for the specified address - family. + family. This controls the + net.ipv4.conf.<interface>.forwarding + and + net.ipv6.conf.<interface>.forwarding + sysctl options of the network interface (see ip-sysctl.txt + for details about sysctl options). Defaults to + no. + + Note: unless this option is turned on, no IP + forwarding is done on this interface, even if this is + globally turned on in the kernel, with the + net.ipv4.ip_forward and + net.ipv4.ip_forward sysctl + options. Also, if this option is enabled for at least one + interface, the global options in the kernel are also enabled + as necessary, to ensure IP forwarding can take place. + IPMasquerade= @@ -366,7 +383,8 @@ interface. If enabled packets forwarded from the network interface will be appear as coming from the local host. Takes a boolean argument. Implies - IPForward=yes. + IPForward=yes. Defaults to + no. Bridge=