The device keeps saying “offline” on balena cloud, and the proxy server doesn’t show any log.
Systemctl shows that redsocks service is working.
it’s worth noticing we can get curl working by simply exporting the url of the proxy: export https_proxy=http://128.1.1.49:8080. Then curl works (returns the expected response from our servers), and the proxy server logs the request.
Proxy config:
# redsocks.conf
base {
log_debug = off;
log_info = on;
daemon = off;
redirector = iptables;
}
redsocks {
type = http-connect;
ip = 128.1.1.49;
port = 8080;
local_ip = 0.0.0.0;
local_port = 12345;
}
And static ip config, as the client doesn’t have a DHCP server:
Hello @mpous , thank you for the response, we weren’t able to fix it yet, we have the client waiting on us to finish this setup, it would be really helpful if you could give us some insight, thank you!
More info about the issue:
this is our updated redsocks file
base {
log_debug = on;
log_info = on;
log = "file:/tmp/redsocks.log";
daemon = off;
redirector = iptables;
}
redsocks {
type = socks5;
ip = 128.1.1.49; // CLIENT'S OFFICES PROXY
port = 8080;
local_ip = 10.114.103.1; // if we change this we get a redsocks warning
local_port = 12345;
}
dnsu2t {
local_ip = 10.114.103.1; // balena default, we can't change this right?
local_port = 5313;
remote_ip = 192.168.0.1; // CLIENT'S OFFICES DNS
remote_port = 53;
}
First of all, are configuring the dns correctly? look how we are using the same dns ip for both files.
We’ve noticed that using nslookup is not working, it is trying to use the dns defined in resolv.conf (127.0.0.2), is this expected? how can we make sure we are configuring dns correctly?
We also can’t reach the 123 port of the client’s server (it is working when we try telnet from other PC).