Check if port 6379 is open
On the server, see what is listening:
sudo ss -tulpn | grep ':6379 '
From another machine, test reachability:
nc -zv your-server.example.com 6379
Block port 6379 from the internet
With UFW (Ubuntu/Debian):
sudo ufw deny 6379
With firewalld (RHEL/AlmaLinux/Rocky):
sudo firewall-cmd --permanent --remove-port=6379/tcp && sudo firewall-cmd --reload