You are not logged in.
Recently pacman updated systemd.
I use systemd-networkd for Ethernet (wired) control (Wireless LAN is hard blocked)
I have this in /etc/sysctl.d/99-sysctl.conf
net.ipv4.ip_forward = 1
This is to allow sharing of internet where my system is gateway.
This worked fine before the recent update.
But after upgrade internet sharing stopped.
I noticed the following sysctl variables (sysctl -a)
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.ens5.forwarding = 0
net.ipv4.conf.ppp1.forwarding = 1
net.ipv4.conf.wls1.forwarding = 1
net.ipv4.ip_forward = 1
Three strange things:
1st is wls1 is disabled yet it is shown (but lets ignore it)
ens5 fowarding is 0?? while rest all are 1.
ppp1 is actually PPPoE based connection activated by ppp@.service and runs over ens5
Once I do:
sysctl net.ipv4.conf.ens5.forwarding=1
Internet sharing starts working as expected.
So what is the issue? What changed?
Is it that systemd-sysctl gets applied before systemd-network brings ens5 up?
But then ppp1 is based on ens5 - how is that 1?
Thanks in advance.
Last edited by amish (2015-04-21 06:49:04)
Offline
Looks like someone has already file bugreport:
https://bugs.freedesktop.org/show_bug.cgi?id=89509
Possible solution would be to add
IPForward=yes
to systemd-networkd .network file
Offline