How to access memcached from the internets

obeliks
Posts: 878
Member Since:
2010-03-14

If you are opening/forwarding UDP port range including 11211 (as e.g. in 10000-20000) and running 2.8.0.4 your instance of memcached is available remotely.

You can check access over UDP by running the following code:

echo -e 'f00k\00\01\00\00stats settings' | nc  -w 3 -u YOUR.IP.ADDRESS 11211

If you would like to prevent access to your memcached from the internets, put the following in /etc/sysconfig/memcached

OPTIONS="-l 127.0.0.1"

and restart memcached.