diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2021-06-27 11:34:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-27 11:34:48 +0300 |
commit | 1071430875f9a7814b2b0a198c3315e4c7c08be1 (patch) | |
tree | 27f4b2e917b60a85a3eb87ec577c85e58ce957f3 /redis.conf | |
parent | b71c5849e3e5c040b029c6e25cec2069d70760c1 (diff) | |
download | redis-1071430875f9a7814b2b0a198c3315e4c7c08be1.tar.gz |
Corrections about the new protected-mode usage. (#9143)
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/redis.conf b/redis.conf index b064f8515..a083cb8c7 100644 --- a/redis.conf +++ b/redis.conf @@ -79,7 +79,10 @@ # running on). # # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES -# JUST COMMENT OUT THE FOLLOWING LINE. +# COMMENT OUT THE FOLLOWING LINE. +# +# You will also need to set a password unless you explicitly disable protected +# mode. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bind 127.0.0.1 -::1 @@ -98,20 +101,13 @@ bind 127.0.0.1 -::1 # 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. +# When protected mode is on and the default user has no password, the server +# only accepts local connections from the IPv4 address (127.0.0.1), IPv6 address +# (::1) or 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. +# even if no authentication is configured. protected-mode yes # Accept connections on the specified port, default is 6379 (IANA #815344). |