Hi guys,
I am running openelec 10.0.0 on raspberry 4b.
I have found a few threads in this forum and articles in other places about how to convert a raspberry into a wifi hotspot, but I want to actually do the opposite.
Right now, I have libreelec set up with a static ip via wlan0 and i want to share that connection with an LG tv connected to the LAN port on the raspberry. The main reason for this being that wifi on the tv has stopped working and since the raspberry is next to it (but the internet router is far away), it will save me from a installing a long cable that my wife will definitely complain about.
I've done the enabling of ipv4_forward, created a few iptables rules, etc, but when I set the openelec's ip as router on the tv, traffic is not working. i have enabled development mode on the tv and I can ssh to test connectivity. I can ping the raspberry (and get response), but I don't seem to go beyond that. I can not get to any public dns server.
I haven't tried this recently, but I remember doing this with raspbian some time ago and it worked with the commands I mentioned: ip forwarding, iptables rules, etc.
I couldn't find anything specific for openelec, so i'm following guides for raspbian and I am now wondering if there's anything in openelec that may be preventing this kind of setup. If there isn't, I'd be really grateful if you can point me to any tutorial that the community may have already created.
This is my setup:
INTERNET >> homerouter (192.168.0.1) >> openelec (wlan0 / 192.168.0.10-static-ip) >> openelec (eth0 / 192.168.1.10-static-ip) >> lg-tv (ip: 192.168.1.20, netmask: 255.255.255.0, router: 192.168.1.10)
I don't have any dhcp server in my network (disabled in the router's configuration) and every single device has the ip, netmask and dns details manually configured.
Thanks in advanced for your help.