Setting up lancache

hello dears,

i tried to use lancahce in my trunas server. installed the app, used the corrcet ports 80,443. also i used pi hole form the same server to redirect steam,epic and others to lancache but still notworking. when I open steam and try to download, it does not download anything.

tried to find anything from youtube but nothing for lancahce in truenas.

installed it throught CLI in truenas shell and it worked. need to install lancache-DNS throught it also. thanks to DeepSeek :grin:

could you provide a link or any info you used to install this?

First make sure to delete lancache monolithic if you downloaded it from app catalog freeup ports 80,443- normally used by trueNas web ui- and 53 for lancache dns

docker run -d --name lancache-monolithic --restart unless-stopped -p 192.168.0.80:80:80 -p 192.168.0.80:443:443 -e PUID=1000 -e PGID=1000 -e UPSTREAM_BANDWIDTH=“200m” -e CACHE_MEM_SIZE=“1000m” -e CACHE_DISK_SIZE=“500g” -e CACHE_SLICE_SIZE=“1m” -e FILE_LOCKING=“1” -v “/mnt/Fast stuff/CACHE_SSD:/data/cache:rw” --cap-add=NET_ADMIN lancachenet/monolithic:latest

Used this with sudo to run it in root. Change the file path, disk size, your internet speed and IP as what you have. You can use also deepseek to write another cli for lancache DNS after you install lancache

So i modified the script you posted to what i think i should have but get an error “error response from daemon: invalid mode: rw” when i paste the code into truenas shell.

docker run -d --name lancache-monolithic --restart unless-stopped -p 10.7.4.3:80:80 -p 10.7.4.3:443:443 -e PUID=1000 -e PGID=1000 -e UPSTREAM_BANDWIDTH=“1000m” -e CACHE_MEM_SIZE=“4096m” -e CACHE_DISK_SIZE=“10000g” -e CACHE_SLICE_SIZE=“1m” -v “/mnt/data_pool/lancache:/data/cache:rw” --cap-add=NET_ADMIN lancachenet/monolithic:latest

Hello dear,

I am not good in codes. But i used DeepSeek to modify any error. Take the code tell it to modify it and paste the errors if any. And also for lancache-DNS

I used it and maybe ChatGPT will give you same result. And for some reason my TrueNas was accepting one line only.

Paste the code there and the error you got and will show you how to solve it

Both lancache and lancache will not show up in Truenas UI but will show in container above the docker settings

ok i appear to have it working. i modified the code and installed portainer as an app in truenas that lets me see the containers running. its just terribly slow, i have 1gb up and down internet and can barely break 1mb using the lancache. When i had it running as a vm i could saturate it.