add firewall rules notes to podman ollama
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Ollama
|
||||
|
||||
- [Ollama](#ollama)
|
||||
- [Firewall for Ollama](#firewall-for-ollama)
|
||||
- [Install and run Ollama](#install-and-run-ollama)
|
||||
- [Install and run Ollama with Podman](#install-and-run-ollama-with-podman)
|
||||
- [Unsticking models stuck in "Stopping"](#unsticking-models-stuck-in-stopping)
|
||||
@@ -15,6 +16,19 @@
|
||||
|
||||
<https://github.com/ollama/ollama>
|
||||
|
||||
## Firewall for Ollama
|
||||
|
||||
```bash
|
||||
# Add home zone if you don't have one
|
||||
sudo firewall-cmd --get-active-zones
|
||||
sudo firewall-cmd --new-zone=home --permanent
|
||||
sudo firewall-cmd --reload
|
||||
# Set source address to allow connections
|
||||
sudo firewall-cmd --zone=ollama --add-source=10.2.0.1/24 --permanent
|
||||
sudo firewall-cmd --zone=ollama --add-port=11434/tcp --permanent
|
||||
sudo firewall-cmd --reload
|
||||
```
|
||||
|
||||
## Install and run Ollama
|
||||
|
||||
<https://ollama.com/download/linux>
|
||||
|
||||
Reference in New Issue
Block a user