Open dmig opened 1 month ago
F.e.
[Match] Name = wg0 [Network] Description=WireGuard tunnel wg0 IPMasquerade=both Address = 10.1.0.1/24 Address = fd9f:8ab0:9ee5::1/120 [Route] Gateway = 10.1.0.1 Destination = 10.1.0.0/24 GatewayOnlink = true
Complains on IPMasquerade option:
IPMasquerade
[InvalidValue] IPMasquerade=both [SettingRequires] IPMasquerade requires IPForward=ipv4
IPForward is deprecated since version 256 (https://github.com/systemd/systemd/blob/main/NEWS#L345-L355) and extension is unaware of IPv6Forwarding/IPv4Forwarding. Also, [SettingRequires] is wrong: "IPv4Forwarding ... Defaults to true if IPMasquerade= is enabled for IPv4..."
IPForward
IPv6Forwarding
IPv4Forwarding
[SettingRequires]
IPMasquerade=
[InvalidValue] IPMasquerade=both error is awkward -- this is the value extension suggested me.
[InvalidValue] IPMasquerade=both
[InvalidValue] Address=fd9f:8ab0:9ee5::1/120 -- it doesn't like this address
[InvalidValue] Address=fd9f:8ab0:9ee5::1/120
[InvalidSetting] GatewayOnlink is not supported in section Route -- wrong (https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#GatewayOnLink=)
[InvalidSetting] GatewayOnlink is not supported in section Route
The support for version 256 will be added in next release
Great to know. Still, take a look at the last 2 points.
F.e.
Complains on
IPMasquerade
option:IPForward
is deprecated since version 256 (https://github.com/systemd/systemd/blob/main/NEWS#L345-L355) and extension is unaware ofIPv6Forwarding
/IPv4Forwarding
. Also,[SettingRequires]
is wrong: "IPv4Forwarding
... Defaults to true ifIPMasquerade=
is enabled for IPv4..."[InvalidValue] IPMasquerade=both
error is awkward -- this is the value extension suggested me.[InvalidValue] Address=fd9f:8ab0:9ee5::1/120
-- it doesn't like this address[InvalidSetting] GatewayOnlink is not supported in section Route
-- wrong (https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#GatewayOnLink=)