memcached
tcp 0 0 localhost:11211 : LISTEN 16952/memcached
tcp 0 0 *:11211 *:* LISTEN 19278/memcached
The first node above can connect to the second, but the second can't connect to the first. Same with telnet. The way I read that is the ports are bound to different servers? On the first 11211 is bound to localhost, the other it's allowing a connection from all (*)?
Am I on the right track, and if so, any idea how to change the first node to accept connections from all?
Thanks.
3 Replies
Memcached should not be exposed to the internet so make sure that you have iptables blocking access from the world (and your "private" ip address if you have one, since it's private between all linode users).
You can open up the first one to use all addresses by removing the -l from memcached configuration line.
tcp 0 0 localhost:11211 : LISTEN 2769/memcached
When I enter another IP behind -l (I even tried -l *), the port still remains bound to localhost.
Both these machines are ubuntu karmic, and I set them up the same way. When I installed memcached, I took the same steps for both.
Any ideas?
Thanks.