-1

I have 4 load balansed apache servers, that are using one memcache server. I want to make memcache server accessible only from my this 4 servers. How can I do it?

Can I write something like this in memcache's config?

-l 127.0.0.1, 127.0.0.2, 127.0.0.3, 127.0.0.4 
0

This is not possible with memcached itself.
Your options will only tell to listen on those (loopback) addresses but not limit the access to them at all.
Memcached is meant to be deployed in trusted networks only.

If you want to limit connections to certain IPs to your memcached instance you need to do this at another layer (e.g. via iptables).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.