Skip to content

Instantly share code, notes, and snippets.

@allaniftrue
Created July 22, 2019 20:55
Show Gist options
  • Save allaniftrue/514aa74a0127e7ca1f082857422a1d59 to your computer and use it in GitHub Desktop.
Save allaniftrue/514aa74a0127e7ca1f082857422a1d59 to your computer and use it in GitHub Desktop.
Lancache
#!/bin/sh
export HOST_IP=`hostname -I | cut -d' ' -f1`
docker rm lancache-dns
docker run --restart=unless-stopped --name lancache-dns -d -p 192.168.10.253:53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=192.168.10.253 lancachenet/lancache-dns:latest &
docker rm lancache
docker run --restart=unless-stopped --name lancache -d -v /cache/data:/data/cache -v /cache/logs:/data/logs -p 80:80 lancachenet/monolithic:latest
docker rm sniproxy
docker run --restart=unless-stopped --name sniproxy -d -p 443:443 lancachenet/sniproxy:latest
echo Please configure your router/dhcp server to serve dns as $HOST_IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment