How to Secure Local AI: Telemetry, Outbound Traffic and Access
Installing Ollama is not enough, on its own, to stop anything leaving the company. Data can stay on your servers if you deliberately turn off what can be turned off, and cut the rest with a firewall. Below are concrete settings from the documentation, not a wish list.
In conversations about local AI the sentence “but it works offline” appears very quickly. Day-to-day work with the model can indeed take place locally. That does not mean the environment is silent towards the outside world from the first minute after installation. Updates, the model catalogue, optional cloud features, a check for a new interface version, or a connected integration can all open a connection if the network allows it.
That is why, in a deployment, I do not stop at “we put Ollama in”. We agree what is allowed to go out, what should be blocked, and how to check it. The list below is based on the Ollama and Open WebUI documentation, read on 22 November 2026. The tools change, so it is worth looking at the current documentation before you apply this.
The principle first, then the switches
The order matters. First you decide what the environment is for: a local model only, or also internet search, sign-in through an external provider, a model in the cloud. Then you pull in what you actually need. At the end you close the rest with a firewall.
If you start by cutting the network, and only later try to download a model, an embedding package or a security patch, work will stop. If you limit yourself to environment variables and leave traffic open, some features will still call out.
The Open WebUI documentation says this plainly: the offline-mode settings prevent selected downloads and update checks. They do not, by themselves, block access to the network. To stop outbound connections you need a separate control: a firewall, isolation of the container network, or a physical disconnect, as appropriate for your environment.
Ollama: what you can turn off, and what you cannot
Ollama can run a model entirely locally. It also has cloud features: remote inference and internet search. If someone on the team picks a cloud model or turns search on, a question can leave the server. That is not obvious at a glance when the interface looks the same.
The official documentation gives two equivalent ways to disable the cloud features. The first is an environment variable:
OLLAMA_NO_CLOUD=1
The second is an entry in the server configuration file ~/.ollama/server.json:
{
"disable_ollama_cloud": true
}
After the change, Ollama has to be restarted. The log should show a confirmation: Ollama cloud disabled: true. If that message is not there, do not assume the setting has taken effect.
This is not a universal telemetry off-switch. The documentation does not provide a single variable in the style of “turn off all analytics”. The Windows and macOS applications can periodically check whether an update is available. Some of that traffic still has no simple, official “off” switch. That is why I treat the firewall seriously, and not only the configuration file.
On Linux, when Ollama runs as a systemd service, the variables are set in a unit override (systemctl edit ollama.service), in the [Service] section, for example Environment="OLLAMA_NO_CLOUD=1", followed by daemon-reload and a restart. On Windows and macOS the way to set the variables is described in the Local FAQ — do not put them only in a terminal session that the service will not use anyway.
A separate point that is often missed: Ollama’s interface listens on port 11434. It should not be reachable from the whole internet. On a company network it is better to limit it to the host, or to the internal segment used by the user interface.
Open WebUI: telemetry, updates and offline mode
Open WebUI is an interface you host yourselves. Where the questions go depends on which model you connect. A local Ollama stays put. A key to a cloud service does not.
The official example of environment variables, and the official Docker image, set among other things:
SCARF_NO_ANALYTICS=true
DO_NOT_TRACK=true
ANONYMIZED_TELEMETRY=false
If you install the interface from the Docker image, those values are usually already there. If you set it up another way, you have to supply them yourselves. Do not assume that “by default nothing goes out” if you skip this step.
Checks for a new version are turned off with a separate variable, ENABLE_VERSION_UPDATE_CHECK=false. A more complete offline mode looks like this:
OFFLINE_MODE=true
HF_HUB_OFFLINE=1
RAG_EMBEDDING_MODEL_AUTO_UPDATE=false
RAG_RERANKING_MODEL_AUTO_UPDATE=false
WHISPER_MODEL_AUTO_UPDATE=false
According to the documentation, OFFLINE_MODE=true on its own already forces the others on this list, so spelling them out does no harm and makes the configuration easier to read. An important limitation: before you turn offline mode on, prepare the embedding models and any transcription models. Otherwise the interface may start, but document indexing will fail, because it will have nowhere to fetch a missing component from.
And I will repeat what the documentation says: these variables do not block traffic to an external API, an identity provider or a search engine, if you turn such an integration on yourselves and the network allows it.
The firewall and control of integrations
This is where the list of switches ends, and ordinary systems administration begins.
The default outbound policy should be restrictive: block everything you have not deliberately opened. Typical exceptions, agreed with you, include a temporary permission to download a model or a patch — ideally in a maintenance window, not “always, to the whole internet”. After the download the rule can be tightened again.
In a container environment it is not enough to publish port 3000 or 8080 on every interface and call the job done. The user interface should sit behind HTTPS, on an internal address or behind your proxy, with a limited group of people. The network between the interface and Ollama can be an internal bridge network. The example in the Open WebUI documentation, with a network marked internal: true, is only a sketch — it has to be adapted, and you have to check that the interface can still reach the local model.
Integrations are worth writing down. Every extra plugin, every “convenient” search and every sign-in through an external provider is a potential path for data to leave. If they are not needed, they should not be turned on “just in case”.
Access is a separate topic, but without it the rest has limited meaning: individual accounts, the principle of least privilege, an up-to-date sign-in mechanism, a backup of the configuration and the data, and a plan for what to do when someone leaves the team.
How to check that this is not just an entry in the documentation
A configuration without verification quickly becomes decoration. After deployment it is worth making a few simple checks, in an agreed window.
- Restart the services and find in the Ollama log the confirmation that the cloud features are disabled.
- Make sure the interface does not make it easy to pick a cloud model, or a search function, that you did not want.
- Ask a test question and, at the same time, watch the firewall or the traffic log: during an ordinary conversation with the local model, is there an outbound connection that was not in the plan?
- Upload a short, non-confidential document and ask about a fact that is in it. If the knowledge base is supposed to work offline, this test must pass with the internet blocked.
- Try whether port 11434 answers from outside the allowed segment — it should not.
The mere fact that “the chat works” does not prove isolation. It would also work if an external API had been connected in the background.
What this checklist does not settle
It does not replace a legal assessment, a security policy or regular updates. It also does not promise that after one configuration the subject is closed for years. A new version of the interface may add an integration that does not exist today. That is why looking after the environment — including a review of the outbound rules — is part of the work, not a decoration in the price list.
If you want me to set these things up and check them as part of a deployment, a natural starting point is a readiness audit or the Start package, and with a wider document base — a deployment with the network configuration agreed with you.
Assumptions and limits. The names of the variables and files are given as in the Ollama and Open WebUI documentation read on 22 November 2026. They may change in later releases. The description of the firewall is a design principle, not a ready set of iptables or firewalld rules for every environment. Before you turn offline mode on, prepare the models the interface needs to have locally.
Sources
- Ollama, Local FAQ — disabling the cloud features (
OLLAMA_NO_CLOUD,disable_ollama_cloud), setting variables on Linux, Windows and macOS, the port and the server configuration. Read on 22 November 2026. docs.ollama.com/faq - Open WebUI, “Run Open WebUI Offline” —
OFFLINE_MODE,HF_HUB_OFFLINE, automatic model updates, the reservation that the variables do not block network traffic, and the need to prepare a cache. docs.openwebui.com - Open WebUI, example environment variables (
SCARF_NO_ANALYTICS,DO_NOT_TRACK,ANONYMIZED_TELEMETRY). github.com/open-webui/open-webui
If you want to check whether your infrastructure is suitable for local AI, write to us via the form. A readiness audit costs from PLN 2 500 net + VAT (23%). You can also start with the Start package.