Forums

Resolved
0 votes
I've been playing with something called LanCache (formerly SteamCache) by a UK team. It's amazing, the first time you download a Steam game it goes at normal downloads speed (a tad slower perhaps) but the 2nd time it goes at 110MB/s! It's hammering the LAN flat out.

I installed it on Mint 19, probably not the best choice as getting Docker installed was a pain. The docker container is fairly easy to set up with a simple config file. On the PC you just need to set the DNS to the IP of the Docker server. This can be automated by putting that address in your DHCP server (router or ClearOS. When even a game download address is detected the lancahe kicks in, otherwise it goes as normal. If the content is in the cache then that when you get the super fast speed. The content is in the cache once the game has been downloaded once. So not a lot of use for a single PC but handy if you're always re-installing the same games, perhaps on multiple machines.

What would be really cool is to install this on ClearOS since I don't want a dedicated machine just for this. I know ClearOS has a proxy server but that's more for web content. Games are downloaded over HTTP but LanCache has special tuning to make it work for games. Holding the content forever is very important as is having a huge cache.

Has anyone done this on ClearOS?
How easy is Docker to set up on ClearOS?
Attachments:
Monday, March 30 2020, 11:28 AM
Share this post:
Responses (2)
  • Accepted Answer

    Tuesday, March 31 2020, 01:33 PM - #Permalink
    Resolved
    0 votes
    There is an app-docker and docker is available from the repo's. It is a PITA getting containers running in gateway mode as the firewall needs to be configured by hand in your own file in /etc/clearos/firewall.d/. You need to get docker installed and running then snapshot your firewall (filter and nat tables). You have to enable the firewall in /etc/sysconfig/docker-network then start your container and snapshot your firewall again. You then need to diff you firewall dumps to spot the rules created when the container starts and emulate them in a file in /etc/clearos/firewall.d/ or you will lose the rules if the firewall restarts. Remember to disable /etc/sysconfig/docker-network afterwards.

    Search the forum for "active directory domain controller samba docker" (I think) and you should find a thread where I set up and AD DC in a docker container. It will give you an idea.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 31 2020, 05:20 PM - #Permalink
    Resolved
    0 votes
    That sounds like a pain but I don't think I need to bother the firewall since everything LAN side has access to the Internet. The way it worked on Mint was get the Docker thing installed. Set the LanCache .env file with the host LAN IP address in a couple of places. Do the docker compose thing for LanCache and it runs.

    On the PC just make sure the DNS points only at LanCache local IP.
    The reply is currently minimized Show
Your Reply