[systemd-devel] Recommended way to enable IPForward for a system using networkd?

Mantas Mikulėnas grawity at gmail.com
Thu Aug 2 17:21:37 UTC 2018


On Thu, Aug 2, 2018 at 8:18 PM Filipe Brandenburger <filbranden at google.com>
wrote:

> So, IPForward is a global setting and yet with networkd it needs to be
> attached to an interface...
>
> What's the best way to enable it on a system, that's general enough and
> won't really depend on the existing interface configurations (let's assume
> those will be managed separately through drop-ins somehow...)
>

It's a sysctl, so just set it through /etc/sysctl.d:

net.ipv4.conf.all.forwarding = 1
net.ipv6.conf.all.forwarding = 1

(For IPv4 it is both a global *and* per-interface setting, for some reason.)

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180802/8bebd1f0/attachment.html>


More information about the systemd-devel mailing list