djveremix / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

Make redis server accesible from certain ips only. #264

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My hack to make it work for us but it would be nice if it was official.  My C 
sucks.

http://pastebin.com/t5WL4kPn

Original issue reported on code.google.com by ryandetzel on 21 Jun 2010 at 6:23

GoogleCodeExporter commented 8 years ago
This doesn't belong in Redis, but more at the kernel level. You should probably 
be using iptables (Linux) when you want to allow/deny certain IPs access to 
Redis. Good luck!

Original comment by pcnoordh...@gmail.com on 21 Jun 2010 at 6:28

GoogleCodeExporter commented 8 years ago
Iptables does not allow for certain ips to write while others can only read. :-(

Original comment by ryandetzel on 21 Jun 2010 at 6:40

GoogleCodeExporter commented 8 years ago
You could achieve that with tremendous abundance: set up master-slave 
replication and configure iptables allow r/o users to slave and r/w users to 
master.

Original comment by temotor on 21 Jun 2010 at 6:45