Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote connection problem #7237

Open
Julianbaozi opened this issue May 12, 2020 · 2 comments
Open

Remote connection problem #7237

Julianbaozi opened this issue May 12, 2020 · 2 comments

Comments

@Julianbaozi
Copy link

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.

@boreevyuri
Copy link

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

@Julianbaozi
Copy link
Author

Julianbaozi commented May 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants