-
Notifications
You must be signed in to change notification settings - Fork 226
LLM Chat Stream
7h30th3r0n3 edited this page Apr 15, 2025
·
4 revisions
🧠 This guide shows how to set up a secure, authenticated Ollama LLM server on a Raspberry Pi 5 (8GB), publicly accessible and ready for M5Stack Cardputer.
- PC running Linux / WSL / Raspberry Pi 5 (8GB) ( or less but consider LLM need a lot of ressources)
- Domain name (e.g., 7h30th3r0n3.fr)
- Port 443 open to the internet (you can stay locally)
- M5Stack Cardputer (ESP32-S3)
- Wi-Fi access for Cardputer
- Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh
- Pull a lightweight model:
ollama pull tinyllama
- Start the Ollama server:
ollama serve &
- Test it locally:
curl -X POST http://localhost:11434/api/generate \
-H "Content-Type: application/json" \
-d '{"model": "tinyllama", "prompt": "Hello!", "stream": true}'
- Install Apache and required modules:
sudo apt install apache2 apache2-utils
sudo a2enmod ssl proxy proxy_http headers auth_basic rewrite
- Set up basic HTTP authentication:
sudo htpasswd -c /etc/apache2/.htpasswd theotherone
- Install certbot:
sudo apt install certbot python3-certbot-apache
- Run the setup:
sudo certbot --apache
- Edit the main SSL virtual host:
sudo nano /etc/apache2/sites-available/000-default-le-ssl.conf
- Add this inside <VirtualHost *:443>:
# Redirect /evilOllama to Ollama locally
RedirectMatch 301 ^/evilOllama$ /evilOllama/
ProxyPass /evilOllama/ http://localhost:11434/
ProxyPassReverse /evilOllama/ http://localhost:11434/
<Location /evilOllama/>
AuthType Basic
AuthName "Evil Ollama Access"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
RequestHeader set Authorization expr=%{HTTP:Authorization}
</Location>
- Reload Apache:
sudo systemctl reload apache2
curl -u userchoosen:YourPasswordHere \
-X POST https://yourdomain.com/evilOllama/api/generate \
-H "Content-Type: application/json" \
-d '{"model": "tinyllama", "prompt": "Hello evil server!", "stream": true}'
✅ You should receive a JSON response from tinyllama.
You can now enter all the informations in config.txt file in config folder, restart the carputer and enjoy !
- Installation
- Slave
- ESP32 RIG Tutorial
- Scan WiFi
- Select WiFi
- Clone & Details
- Captive Portal Management
- Admin WebUI
- Check Credential
- Probes Attack
- Sniffing Probes
- Karma Attack
- Automated Karma Attack
- Karma Spear
- Bluetooth Serial Control
- Wardriving
- Wardriving Master
- Beacon Spam
- Deauther
- Auto Deauther
- Evil Twin
- Handshake Master
- WiFi Raw Sniffing
- Sniff Raw Client
- WiFi Channel Visualizer
- Client Sniff And Deauth
- Handshakes/Deauth sniffing
- Wall Of Flipper
- Send Tesla Code with RFunit
- SSH Shell
- Scan Network and Port
- Full Network Scan
- Web Crawler
- PwnGridSpam
- Skimmer Detector
- Mouse Jiggler
- BadUSB
- Bluetooth Keyboard
- Reverse TCP Tunnel
- DHCP Starvation Attack
- Rogue DHCP Server
- Switch DNS
- Network Hijacking
- Printer Attack
- Web Siphoning Cookie
- Honeypot
- LLM Chat Stream
- EvilChatMesh
- Responder
- WPAD Abuse
- Crack NTLMv2
- FileManager
- UART Shell
- SIP toolkit
- CCTV toolkit
- SSDP poisoning
- SkyJack
- Wifi Dead Drop
- BLENameFlood
- Wall Of Airtag
- FindMyEvil
- UPnP Mapping
- UPnP NAT
- LDAPDump
- IMSI Catcher
- Open Wifi Checker
- CIW ZeroClick
- Settings
- Installation
- Slave
- ESP32 RIG Tutorial
- Scan WiFi
- Select WiFi
- Clone & Details
- Captive Portal Management
- Admin WebUI
- Check Credential
- Probes Attack
- Sniffing Probes
- Karma Attack
- Automated Karma Attack
- Karma Spear
- Bluetooth Serial Control
- Wardriving
- Wardriving Master
- Beacon Spam
- Deauther
- Auto Deauther
- Evil Twin
- Handshake Master
- WiFi Raw Sniffing
- Sniff Raw Client
- WiFi Channel Visualizer
- Client Sniff And Deauth
- Handshakes/Deauth sniffing
- Wall Of Flipper
- Send Tesla Code with RFunit
- SSH Shell
- Scan Network and Port
- Full Network Scan
- Web Crawler
- PwnGridSpam
- Skimmer Detector
- Mouse Jiggler
- BadUSB
- Bluetooth Keyboard
- Reverse TCP Tunnel
- DHCP Starvation Attack
- Rogue DHCP Server
- Switch DNS
- Network Hijacking
- Printer Attack
- Web Siphoning Cookie
- Honeypot
- LLM Chat Stream
- EvilChatMesh
- Responder
- WPAD Abuse
- Crack NTLMv2
- FileManager
- UART Shell
- SIP toolkit
- CCTV toolkit
- SSDP poisoning
- SkyJack
- Wifi Dead Drop
- BLENameFlood
- Wall Of Airtag
- FindMyEvil
- UPnP Mapping
- UPnP NAT
- LDAPDump
- IMSI Catcher
- Open Wifi Checker
- CIW ZeroClick
- TagTinker ESL
- Settings