I have a redis server running in default port. It is running as system user 'redis' not root. I also have it setup to use password. It binds to 0.0.0.0 so should be listening properly.
I am trying to connect to it from a remote VM. This VM has firewall that locks down pretty much everything.
This connections from remote VM times out. I have port 6379 open for communication both ways on remote VM for all ip address
if I turn firewall down on remote VM it works.
I see this in strace
connect(3, {sa_family=AF_INET, sin_port=htons(6379), sin_addr=inet_addr("9.3.169.160")}, 16) = -1 EINPROGRESS (Operation now in progress)
poll([{fd=3, events=POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLERR|POLLHUP}])
getsockopt(3, SOL_SOCKET, SO_ERROR, [12884901998], [4]) = 0
close(3) = 0
write(2, "Could not connect to Redis at ", 30Could not connect to Redis at ) = 30
write(2, "
9.3.169.160:6379: Connection tim"..., 399.3.169.160:6379: Connection timed out
) = 39
-bash-4.1# iptables -nL | grep 6379
There is no telnet, but if I try wget that also does not work.
What ports should I open on remote VM for this communication to work?