[systemd-bugs] [Bug 89509] New: systemd-networkd: net.ipv4.ip_forward is ignored in 219
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Mar 9 18:46:27 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89509
Bug ID: 89509
Summary: systemd-networkd: net.ipv4.ip_forward is ignored in
219
Product: systemd
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: alex.crawford at coreos.com
QA Contact: systemd-bugs at lists.freedesktop.org
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).
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150310/fffc4514/attachment.html>
More information about the systemd-bugs
mailing list