
For VPS and dedicated server customers with root access. The short answer: Redis is built to talk only to trusted applications, on the same machine or a private network. If it answers on port 6379 to any address on the internet, anyone can read and wipe the data, and automated attacks use an open Redis to write files onto the server and get in. That is why a national incident response team (CERT) reports it, and why our network and data centre provider sends us the notice we pass on to you (what an abuse notice is). You close it in four layers: bind to the local address only, protected mode, a password and the firewall.
Why Redis ended up open
| What you find | Most likely cause |
| bind 0.0.0.0 in redis.conf, or the bind line commented out | Someone opened Redis to connect from another machine, or followed a guide that said to. |
| Redis in a Docker container published with -p 6379:6379 | Docker publishes the port on every address and goes around ufw: the firewall says it is closed and the port still answers. See running Docker on a VPS safely. |
| protected-mode no | It was switched off to “fix” a connection error. Without it, and without a password, Redis accepts anyone. |
| Firewall off, or a rule that lets 6379 through | The rule was left over from a test and nobody removed it. |
| Redis dir pointing at /root/.ssh, /etc/cron.d or /var/spool/cron, or keys you never created | A sign that someone already used the open Redis to write files: treat the server as compromised (is my VPS compromised?). |
Closing Redis without breaking your applications
|
|
|
|
|
|
|
|
| Do not restart Redis with a new bind and password before you know who uses it: applications connecting from another machine, or without a password, stop working at once. Check in step 2 and update them in step 5. If you find signs that someone already got in, closing the port is not enough: the safest path is to reinstall the server and restore a clean copy (which backup to restore). Cleaning up in place is for people who know exactly what they are doing. |
| If only one of your servers needs Redis, an SSH tunnel or a VPN (WireGuard on a VPS) is safer than opening the port, even to a single IP. On a VPS, root access is yours: we do not log in to the server and cannot change a firewall that runs inside it. If you lose SSH, tell us in the support ticket. |
|
Received an open Redis notice? Reply in the support ticket with the output of the step 1 commands and what you changed. Open a support ticket |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from 5.940,00 Kz/mo (3-year plan, with coupon) See plans |











