[PR #12118] [CLOSED] feat: add OLLAMA_IP_ALLOWLIST env for security #39586

Closed
opened 2026-04-23 00:31:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12118
Author: @qxo
Created: 8/29/2025
Status: Closed

Base: mainHead: feat-ip-allowlist


📝 Commits (1)

  • add5651 feat: add OLLAMA_IP_ALLOWLIST env for security

📊 Changes

5 files changed (+159 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+1 -0)
📝 envconfig/config.go (+1 -0)
📝 server/routes.go (+13 -0)
tools/IPAllowList.go (+100 -0)
tools/IPAllowList_test.go (+44 -0)

📄 Description

ie: export OLLAMA_IP_ALLOWLIST=127.0.0.1,192.168.1.0/24


🔄 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/ollama/ollama/pull/12118 **Author:** [@qxo](https://github.com/qxo) **Created:** 8/29/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat-ip-allowlist` --- ### 📝 Commits (1) - [`add5651`](https://github.com/ollama/ollama/commit/add5651a47e899029ce9029df4012388a654db04) feat: add OLLAMA_IP_ALLOWLIST env for security ### 📊 Changes **5 files changed** (+159 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+1 -0) 📝 `envconfig/config.go` (+1 -0) 📝 `server/routes.go` (+13 -0) ➕ `tools/IPAllowList.go` (+100 -0) ➕ `tools/IPAllowList_test.go` (+44 -0) </details> ### 📄 Description ie: export OLLAMA_IP_ALLOWLIST=127.0.0.1,192.168.1.0/24 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 00:31:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#39586