Requirements
- Ubuntu 18.04, should work on 16.04 aswell
- Static IP
- 20 Available ip addresses next to the primary ip address
- git
this installation will use 20 IP Addresses, starting from the ip address the server has and requires that the ip address is an static ip. example, server has 192.168.1.201, the installation will use ip addresses from 192.168.200 to 192.168.1.220
make sure that these ip addresses are not used by some other device on the network
Download url for Ubuntu 18.04.1 Server
http://cdimage.ubuntu.com/releases/18.04.1/release/ubuntu-18.04.1-server-amd64.iso
Clone the git repo
apt-get isntall git
git clone -b master http://github.com/nexusofdoom/lancache-installer
cd lancache-installer
Edit parameters before installation
nano install-lancache.sh
Changeable variables, leaving the defaults is fine File path for lancache lc_srv_loc="/srv/lancache" Primary DNS Server lc_dns1="8.8.8.8" Secondary DNS Server lc_dns2="4.2.2.2" Proxy cache size, measued in Megabytes (MB). Default is 500GB lc_max_size="500000m"
Run scripts with sudo
sudo ./install-lancache.sh
To access netdata open broswer and navigate to http://your-primary-ip:19999
Traffic Monitoring on CLI
Monitor through nload
apt-get install nload -y
nload -U G -u m -i 1024000 -o 1024000 (shows bandwith in Mbit/s, scales graph to 1 Gbit/s)
Monitor network usage through iftop
apt-get install iftop -y
iftop -i eth0
(Instead of eth0 just use your physical interface)
DNS Settings for clients
Clients needs to have the Cache server as DNS server in order to redirect traffic through the cache server
there might be some additional dns records required to cache all traffice, if your service provider for example have their own Steam Cache