I'm trying to configure Redis (redis.conf
, bind
parameter) to accept access only from certain ips. In my case I want to enable access for the loopback network interface (127.0.0.1
/::1
) and for the ip 192.168.56.101
(192.168.56.102
is the ip of the Redis server). According to all the documentation that I have read so far the configuration below should work...
bind 127.0.0.1 ::1 192.168.56.101
... but that's not what happens.
I've tried several other configurations...
bind 127.0.0.1 192.168.56.101 ::1
bind 127.0.0.1 192.168.56.101
bind 192.168.56.101
bind 192.168.56.0
bind 192.168.0.0
... and nothing works. =|
The only configuration that worked was this...
bind 0.0.0.0
But, this configuration opens access to any ip!
NOTE: The protected-mode
parameter (redis.conf
) has a no
value.
Any idea what might be happening?
REFERENCE:
Redis bind to more than one IP
FURTHER QUESTION:
How could I enable access for an IP range (bind
parameter)? Something like...
bind 192.168.56.0
... or...
bind 192.168.56.0/24
In these examples any machine with an ip starting at "192.168.56" will have access to the Redis server.
@Carl Dacosta @Jacky
Thanks!