Hi everybody,
I’m currently trying to run resin io on a Raspi3 behind our corporate network security infrastructure and can’t seem to get it to work.
What have I done so far:
Download the image from the dashboard: Filename was resin-Monitoring-2.7.8+rev1-dev-v6.4.2.img
Setup system proxy settings with redsocks.conf according to Proxy-Settings for Static IP Configuration and https://docs.resin.io/deployment/network/2.x/
no_proxy:
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
redsocks.conf:
base {
log_debug = off;
log_info = on;
log= "syslog:local7";
daemon = off;
redirector=iptables;
}
redsocks {
type=http-connect; // I tried socks as well
ip = proxy.mycompany.com;
port = 80;
login = "username";
password = "password";
local_ip= 127.0.0.1;
local_port = 12345;
}
Additionally I setup the networking with a resin-eth file in system-connections so:
[ipv4]
method=auto
ignore-auto-dns=true
dns=<internal DNS IP>
Also I added the following in config.json:
"ntpServers":"time.mycompany.com",
"dnsServers":"<internal DNS IP>"
Everything else in the image is unchanged.
When I start up I get no connection to the resin io dashboard. resin local ssh <device-ip>
works as well as resin local logs <device-ip>
I see 2 kind of errors in the logs. Once this one:
Event: Device bootstrap failed, retrying {"delay":30000,
"error":{"message":"connect ECONNREFUSED 54.164.253.112:443",
"stack":"Error: connect ECONNREFUSED 54.164.253.112:443
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)"}}
and then recurring this one:
Event: Device bootstrap failed, retrying {"delay":30000,
"error":{"message":"socket hang up",
"stack":"Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1092:19)
at TLSSocket.g (events.js:286:16)
at emitNone (events.js:91:20)
at TLSSocket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74.11)
at process._tickCallback (internal/process/next_tick.js:98:9)"}}
Can anybody help me to get this working?
Additional Info: Despite the above DNS settings I can see in our network monitoring that it is trying to call Google DNS on 8.8.8.8
.
Thanks in advance!
Simon