Created
July 22, 2019 20:55
-
-
Save allaniftrue/514aa74a0127e7ca1f082857422a1d59 to your computer and use it in GitHub Desktop.
Lancache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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