New Tool Radar

Local AI

How to Expose Ollama 0.9 on the Network with Access Control in Place

Turn on network access in Ollama 0.9, then lock it down so only your devices can reach it.

Schematic with three numbered boxes: set access first, enable exposure, test allowed and blocked.

Ollama 0.9.1, released 2025-06-09, added network exposure support for remote access, a configurable model storage directory, and expanded tool calling. Exposing a local model on the network is useful, but an open port with no access control lets anyone on the network use your models. Set access control first, before the service is reachable.

Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.

Prerequisites

  • Ollama 0.9 or newer
  • The network you will expose it on, and who may use it
  • A firewall or reverse proxy to limit access

Steps

1. Set access control first

Before exposing anything, decide who may reach the service and how you will limit it, such as a firewall rule or a private network.

Expected result: An access rule is written down before exposure.

2. Enable network exposure

Start Ollama with network exposure enabled, following the 0.9 release notes.

Expected result: Ollama listens on the network address.

3. Test from an allowed device

From an allowed device on the network, list models and send one short prompt.

Expected result: The allowed device lists models and gets a reply.

4. Test that other devices are blocked

From a device that should not have access, confirm the connection is refused.

Expected result: The blocked device cannot reach the service.

Worked example

A practice setup exposed Ollama on a home network to one laptop. A second device outside the allowed list was blocked.

Device Allowed? Reached Ollama?
Work laptop Yes Yes
Phone on guest Wi-Fi No No
This machine Yes Yes

Expected result: Two allowed devices reach Ollama and the guest device is blocked, so the exposure is safe (UNTESTED – confirm it yourself.)

Verdict table

Check Expected result Pass?
Set access control first An access rule is written down before exposure. –
Enable network exposure Ollama listens on the network address. –
Test from an allowed device The allowed device lists models and gets a reply. –
Test that other devices are blocked The blocked device cannot reach the service. –

Limits

  • An open Ollama port has no login by itself; the firewall or proxy is the access control.
  • Exposing a model also exposes its tool calling to the network; check which tools are enabled.

Sources

See all