According to https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
conf/all/* is special, changes the settings for all interfaces
forwarding - BOOLEAN
Enable IP forwarding on this interface. This controls whether packets
received _on_ this interface can be forwarded.
ip_forward - BOOLEAN
0 - disabled (default)
not 0 - enabled
Forward Packets between interfaces.
This variable is special, its change resets all configuration
parameters to their default state (RFC1122 for hosts, RFC1812
for routers)
So, net.ipv4.conf.all.forwarding=0 disables the IPv4 packets forwarding on all interfaces, same as net.ipv4.ip_forward=0 disables the IPv4 packet forwarding on all interfaces.
Can anyone, please, explain what's the difference between net.ipv4.conf.all.forwarding and net.ipv4.ip_forward kernel params?