From d24ceef937ae95b6befc7cd0e7e2ac58dfdf1d11 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 30 May 2024 12:44:07 +0900 Subject: [PATCH] man: mention that IPMasquerade= and IPv6SendRA= implies IPv4Forwarding=/IPv6Forwarding= It has been mentioned in IPv4Forwarding= and IPv6Forwarding=, but let's also explain in the settings who imply these settings. Follow-up for 3976c430927e1bfefa0413f80ebac84ab9a64350 and 485f5148b3a3e5ebc7e14acef78494a98435c4b9. --- man/systemd.network.xml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 10876ae3095..82dff651222 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -866,11 +866,20 @@ Table=1234 IPMasquerade= Configures IP masquerading for the network interface. If enabled, packets forwarded - from the network interface will be appear as coming from the local host. Takes one of - ipv4, ipv6, both, or - no. Defaults to no. - Note. Any positive boolean values such as yes or - true are now deprecated. Please use one of the values above. + from the network interface will be appear as coming from the local host. Typically, this should be + enabled on the downstream interface of routers. Takes one of ipv4, + ipv6, both, or no. Defaults to + no. Note. Any positive boolean values such as yes or + true are now deprecated. Please use one of the values above. Specifying + ipv4 or both implies IPv4Forwarding=, + unless it is explicitly specified. Similary for IPv6Forwarding= when + ipv6 or both is specified. These implications are only on + this interface. Hence, to make the IP packet forwarding works, + IPv4Forwarding=/IPv6Forwarding= need to be enabled on an + upstream interface, or globally enabled by specifying them in + networkd.conf5. + See IPv4Forwarding=/IPv6Forwarding= in the above for more + details. @@ -1068,6 +1077,9 @@ Table=1234 distributed. See DHCPPrefixDelegation= setting and the [IPv6SendRA], [IPv6Prefix], [IPv6RoutePrefix], and [DHCPPrefixDelegation] sections for more configuration options. + If enabled, IPv6Forwarding= on this interface is also enabled, unless + the setting is explicitly specified. See IPv6Forwarding= in the above for more + details. -- 2.47.3