Hi all, I have an RPi3 connected to a wireless network and an ethernet device with a static IP plugged into the RPi’s ethernet port. I need to be able to forward the port so the ethernet device is accessible via WiFi.
I had this configuration working with the same setup using resin 1.24.xx base image and the connman service by updating the config.json file in the resin-boot image:
".........
files":{"network/settings":"[global]\nOfflineMode=false\n
TimeUpdates=manual\n\n[WiFi]\nEnable=true\nTethering=false\n\n
[Wired]\nEnable=true\nTethering=false\n\n[Bluetooth]\nEnable=true\n
Tethering=false","network/network.config":"[service_home_ethernet]\n
Type = ethernet\nIPv4 = 192.168.0.10/255.255.255.0/192.168.0.10\nNameservers = 8.8.8.8,8.8.4.4\n\n
[service_home_wifi]\nHidden = true\n
Type = wifi\nName = SSIDHERE\nPassphrase = PSKHERE\nNameservers = 8.8.8.8,8.8.4.4"}
....
This allowed me to access the page served by the ethernet connected device via the IP of the RPi on the network.
With Resin v2.0 I have attempted modifying/creating a new file in /system-connections (similar to: Useful Comment)
As such:
I have created a new file called resin-ethernet which contains:
[connection]
id=resin-ethernet
type=ethernet
interface-name=eth0
[ipv4]
method=manual
type=Ethernet
address=192.168.0.10
netmask=255.255.255.0
gateway=192.168.0.10
[ipv6]
addr-gen-mode=stable-privacy
method=auto
I’m still having no luck with getting this to work. I am wondering what I need to change to get this to work as it did on Resin v1.24 with Connman?