I have a customer that needs a static ip set on a resin.io powered device. I know that this is really straightforward and also very well documented in the following blog post. https://resin.io/blog/how-to-configure-a-static-ip-address-with-resin-io/ - but the customer also provided me a proxy setting but I have no clue how to set proxy settings within the config.json. Is this possible? I am looking for some sample config.json for the proxy part.
As far as I know, proxy is not possible at the moment. I’m guessing (and this is just a guess), that it should be somewhat better in resinOS 2.x in the future (where NetworkManager is used), but it will need some more tools added to the host OS for that. It’s something we are working on, but not available yet.
@galo there is indeed. It’s now possible to run resin devices behind a SOCKS proxy. @imrehg or @zwalchuk do you have a quick set of instructions for this, since it hasn’t made it into the public docs yet.
To enable, a redsocks.conf file should be added to the /system-proxy/ folder on the resin-boot partition, specifying the needed proxy configuration and ensuring that:
daemon = off is set, so that redsocks doesn’t fork.
local_port = 12345 is set, so that the iptables rules and redsocks’ port match.
Additionally, a /mnt/boot/system-proxy/no_proxy file can be added with a newline-separated list of IPs or subnets to not route through the proxy.
Can the resin img cp command be used to copy the file into an image? I have copied other files but for this one I’m seeing No such file or directory - seems like the /system-proxy folder may not exist, but I’m not sure.
I’m able to copy files to /splash just fine, so that’s why I’m confused.