<p dir="ltr">IIRC, it is not quite a noop, but a logical AND between the two?</p>
<p dir="ltr">Or maybe it was an OR. I'm pretty sure now the 'forwarding' setting was an OR between all & interface (but, some other setting was an AND). I might be wrong though.</p>
<p dir="ltr">Anyway, different net.ipvx.conf settings have different rules, and it is frankly confusing as duck. But they aren't "broken" nor "ignored", no.</p>
<p dir="ltr">-- <br>
Mantas Mikulėnas</p>
<div class="gmail_quote">On Jun 8, 2015 23:00, "Lennart Poettering" <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 03.06.15 19:18, Sébastien Luttringer (<a href="mailto:seblu@seblu.net">seblu@seblu.net</a>) wrote:<br>
<br>
> Hello,<br>
><br>
> Since systemd v220, IPForward= parameter in [Network] set kernel<br>
> parameters by interface (/proc/sys/net/ipv[46]/conf/*/forwarding).<br>
> This is nice and works perfectly for ipv4.<br>
><br>
> Unfortunately, ipv6 forwarding doesn't works until we manually set<br>
> /proc/sys/net/ipv6/conf/all/forwarding to 1.<br>
<br>
Are you saying that /proc/sys/net/ipv6/conf/$interface/forwarding is a<br>
NOP in the kernel for anything except $interface being "all"?<br>
<br>
That sounds seriously broken in the kernel. They should not expose a<br>
setting that is a NOP like that...<br>
<br>
><br>
> In term of user experience, IPforward=ipv6 doesn't enable ipv6<br>
> forwarding on the interface. That's tricked me.<br>
><br>
> From:<br>
> <a href="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt" target="_blank">https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt</a><br>
><br>
> conf/all/forwarding - BOOLEAN<br>
> Enable global IPv6 forwarding between all interfaces.<br>
><br>
> IPv4 and IPv6 work differently here; e.g. netfilter must be<br>
> used<br>
> to control which interfaces may forward packets and which not.<br>
><br>
> An maybe better explained here:<br>
> <a href="http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-sys-net-ipv6..html" target="_blank">http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-sys-net-ipv6..html</a><br>
<br>
This documentation is not particularly good, but it certainly doesn't<br>
suggest the option was a NOP.<br>
<br>
Can you elaborate on this?<br>
<br>
Do you have any references that clarify that IPv6 and IPv4 handling of<br>
this setting is really different?<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>