Hello,

On Thu, May 04, 2023 at 08:43:52AM +0200, Michel Verdier wrote:
> Yes setting parameter on interface is better done in
> /etc/network/interfaces or /etc/network/interfaces.d/*
> which is used when the interface is configured

There's definitely race conditions between creation of interface and
setting of sysctls at boot, so I agree - I don't think I would use sysctl.d
for any of those interface settings except default/all.

I also don't know if an interface goes away and comes back again (
think ppp, dummy, VPNs, etc) if it gets the same sysctl settings as
you set last time or if it just gets the "default" ones all over
again. I suspect the latter.

So yeah, multiple reasons to not try setting per-interface sysctls
in sysctl.d.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to