On Thu, Aug 2, 2018 at 8:18 PM Filipe Brandenburger <[email protected]>
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
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to