I can connect Redis on my laptop from VM, but can't connect VM from laptop. Redis on my laptop is set to 172.30.xx.xx, with bind 0.0.0.0, not protected. On VM it says connection denied, for the public IP, and connection timeout for private IP. The firewalls are inactive on both machine.

Comment From: boreevyuri

I think that you have protected-mode yes in redis.conf

From redis.conf:

# Protected mode is a layer of security protection, in order to avoid that
# Redis instances left open on the internet are accessed and exploited.
#
# When protected mode is on and if:
#
# 1) The server is not binding explicitly to a set of addresses using the
#    "bind" directive.
# 2) No password is configured.
#
# The server only accepts connections from clients connecting from the
# IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain
# sockets.
#
# By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
protected-mode yes

Comment From: Julianbaozi

The protected mode is no.

On Tue, May 12, 2020 at 2:56 AM Yuri notifications@github.com wrote:

I think that you have protected-mode yes in redis.conf

From redis.conf:

Protected mode is a layer of security protection, in order to avoid that

Redis instances left open on the internet are accessed and exploited.

When protected mode is on and if:

1) The server is not binding explicitly to a set of addresses using the

"bind" directive.

2) No password is configured.

The server only accepts connections from clients connecting from the

IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain

sockets.

By default protected mode is enabled. You should disable it only if

you are sure you want clients from other hosts to connect to Redis

even if no authentication is configured, nor a specific set of interfaces

are explicitly listed using the "bind" directive.

protected-mode yes

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/antirez/redis/issues/7237*issuecomment-627239073__;Iw!!Mih3wA!SVu1ij3PybT8kdJnRepSeO34nF59uuvi1EhjS3VccwWXJvh4Ho8L00-4wm35ow$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKUX662EJJVO7H4AE6O7JQ3RREMN5ANCNFSM4M6L6QUQ__;!!Mih3wA!SVu1ij3PybT8kdJnRepSeO34nF59uuvi1EhjS3VccwWXJvh4Ho8L009jwgcKTA$ .