~/til / commit c575ec9

Ollama is safe by default, until you make it reachable

Out of the box, Ollama listens on 127.0.0.1:11434. The moment you set OLLAMA_HOST=0.0.0.0 so another machine can use it, you’ve published an API with no authentication at all. Anyone who can reach the port can run your models, pull new ones and burn your hardware. Researchers keep finding thousands of these open on the internet.

In my lab it only answers on my private network.