[PR #9041] [CLOSED] Fix redis remote access issue #7789

Closed
opened 2026-02-26 16:30:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/9041
Author: @tchia04
Created: 11/10/2025
Status: Closed

Base: mainHead: fix_redis_remote_access


📝 Commits (1)

  • 0aec6b4 Fix redis remote access issue

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 install/redis-install.sh (+3 -0)

📄 Description

✍️ Description

This is to fix the issue where the redis server is only accessible from localhost by not remotely.
There was a security change to disable the remote access
https://redis.io/docs/latest/operate/oss_and_stack/management/security/#protected-mode

Before

accessing redis server from mac 
❯ redis-cli  -h 192.168.1.24 -p 6379
Could not connect to Redis at 192.168.1.24:6379: Connection refused
not connected>


redis config in container 
root@redis:/etc# grep -i protected-mode /etc/redis/redis.conf  
protected-mode yes

modification

root@redis:/etc#
 sed -i 's/^protected-mode .*/protected-mode no/' /etc/redis/redis.conf

After

root@redis:/etc# grep -i protected-mode /etc/redis/redis.conf  
protected-mode no


❯ redis-cli  -h 192.168.1.38 -p 6379
192.168.1.38:6379>

Link: #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/9041 **Author:** [@tchia04](https://github.com/tchia04) **Created:** 11/10/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix_redis_remote_access` --- ### 📝 Commits (1) - [`0aec6b4`](https://github.com/community-scripts/ProxmoxVE/commit/0aec6b4278a074f3abd2a54ca3de1e5bc72466fa) Fix redis remote access issue ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `install/redis-install.sh` (+3 -0) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description This is to fix the issue where the redis server is only accessible from localhost by not remotely. There was a security change to disable the remote access https://redis.io/docs/latest/operate/oss_and_stack/management/security/#protected-mode Before ``` accessing redis server from mac ❯ redis-cli -h 192.168.1.24 -p 6379 Could not connect to Redis at 192.168.1.24:6379: Connection refused not connected> redis config in container root@redis:/etc# grep -i protected-mode /etc/redis/redis.conf protected-mode yes ``` modification ``` root@redis:/etc# sed -i 's/^protected-mode .*/protected-mode no/' /etc/redis/redis.conf ``` After ``` root@redis:/etc# grep -i protected-mode /etc/redis/redis.conf protected-mode no ❯ redis-cli -h 192.168.1.38 -p 6379 192.168.1.38:6379> ``` ## 🔗 Related PR / Issue Link: # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 16:30:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#7789
No description provided.