OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.6k stars 887 forks source link

RPI3 openelec 8.0.4 wifi tethering problem. #5078

Open solevi opened 6 years ago

solevi commented 6 years ago

Hello,

I found out that at least on two latest versions of openelec (8.0.3 and 8.0.4) for RPI3 wifi tethering is not working as intended. Devices are able to connect but there is no internet. The problem is because by default ipv4 forwarding is disabled:

raspy:~ # sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 0
raspy:~ # cat /proc/sys/net/ipv4/ip_forward
0
raspy:~ #

I implemented dirty but simple fix creating autostart file:

raspy:~ # cat /storage/.config/autostart.sh
sysctl -w net.ipv4.ip_forward=1
raspy:~ #

But please fix it in the next version!

eevleevs commented 6 years ago

echo "net.ipv4.ip_forward = 1" > /storage/.config/sysctl.d/ip_forward.conf also works