<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - systemd-networkd: net.ipv4.ip_forward is ignored in 219"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89509">89509</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemd-networkd: net.ipv4.ip_forward is ignored in 219
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex.crawford@coreos.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>It appears as though the kernel parameters "net.ipv?.conf.*.forwarding" are no
longer taking their default value from "net.ipv4.conf.default.forwarding". This
seems to be because of the introduction of Network.IPForwarding in networkd. If
this attribute is not set, rather than using the default for
"net.ipv?.conf.*.forwarding" (the behavior in 218), networkd is using the
default value of Network.IPForwarding (which is false).
Under systemd 218, I see:
$ sysctl -a -r 'net\.ipv4\.conf\..*\.forwarding'
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.eth0.forwarding = 1
net.ipv4.conf.lo.forwarding = 1
However, under systemd 219, I see:
$ sysctl -a -r 'net\.ipv4\.conf\..*\.forwarding'
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.eth0.forwarding = 0
net.ipv4.conf.lo.forwarding = 0
Notice, that eth0 is no longer forwarding even though I have enabled that via
sysctl.d. The network unit for eth0 is:
$ cat /usr/lib64/systemd/network/zz-default.network
[Network]
DHCP=v4
[DHCP]
UseMTU=true
UseDomains=true
Unless, Network.IPForwarding is set, the default forwarding value via the
kernel should be used. This change-in-behavior appears to have been introduced
by 5a8bcb674f71a20e95df55319b34c556638378ce (networkd: add minimal IP
forwarding and masquerading support to .network files).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>