Jump to content

Hi everyone,

 

I would like how to configure a SteamCache server in a RaspberryPi 4.

 

My home architecture is this:

n.1 modem/router Fritzbox 7590

n.1 raspberrypi 1 with pihole set as home network DNS in the modem

n.1 raspberrypi 4 where I would like to set up a SteamCache server having an external USB HDD for cache storage

 

I searched around but I did not found anything and I watched too LTT episode in Youtube but I did not help me much as PiHole was not involved. Could you please help me?

 

Thank you in advance :)

 

 

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/
Share on other sites

Link to post
Share on other sites

You can run your network in the order like, Internet > RPI1 > RPI4 > Clients. Whatever the case, you are wasting your hardware running these on separate devices. All you need to do is create a script that pulls adblock hosts files from internet at regular intervals and set them in dnsmasq.

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18! jellYfIn Client siDE TRanscoDinG

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13750264
Share on other sites

Link to post
Share on other sites

If you want to use your RasPi as a Steam cache you need to install the required packages for that. Whether the Pi also works as a Pi-hole isn't really relevant to the equation. Depending on what distribution you installed on the RasPi, you may be limited in terms of packages you need to make it also function as a cache.

 

Maybe this helps as a starting point: https://arstechnica.com/gaming/2017/01/building-a-local-steam-caching-server-to-ease-the-bandwidth-blues/

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13750265
Share on other sites

Link to post
Share on other sites

Thank you for your suggestions.

 

I thought of dividing the two raspberry considering the performance they could reach

as already PiHole has an intense R/W activity on the SD Card and I did not want to affect performance

for the caching server.

 

Which is the best practice for having configured a rspb as SteamCache having set as Upstream DNS my PiHole?

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13750301
Share on other sites

Link to post
Share on other sites

1 hour ago, virtus96 said:

PiHole has an intense R/W activity on the SD Card

How big is your network?? My network does about ~30k queries a day...which equates to around 7-8kbps of log activity. 

If you don't care about keeping logs you can also redirect /var/log to /tmpfs

 

https://www.zdnet.com/article/raspberry-pi-extending-the-life-of-the-sd-card/

 

 

Quote

Which is the best practice for having configured a rspb as SteamCache having set as Upstream DNS my PiHole?

 

Its typically best to go Router DHCP > Pi-Hole > SteamCache. 

This is because as an example, you may want to configure Cloudflared in Pi-Hole, which means SteamCache can't be the upstream otherwise you have to split your DNS. 

It also means that if you take SteamCache offline, you don't break your networks DNS. Just change any clients pointing to your SteamCache, to point to your Pihole instead. 

 

As for installing SteamCache, the old steamcache project was replaced with monolithic lancache. Also as RPi is ARM you require the ARM files not x86/x86_64. 

Seems there's this unofficial build https://github.com/jrcichra/lancache-rpi

For configuration follow the standard Ubuntu/Debian/Docker tutorials. "Raspberry Pi OS" (formerly Raspbian) is just an ARM build of Debian. 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13750449
Share on other sites

Link to post
Share on other sites

15 hours ago, Jarsky said:

How big is your network?? My network does about ~30k queries a day...which equates to around 7-8kbps of log activity. 

If you don't care about keeping logs you can also redirect /var/log to /tmpfs

 

https://www.zdnet.com/article/raspberry-pi-extending-the-life-of-the-sd-card/

 

 

 

Its typically best to go Router DHCP > Pi-Hole > SteamCache. 

This is because as an example, you may want to configure Cloudflared in Pi-Hole, which means SteamCache can't be the upstream otherwise you have to split your DNS. 

It also means that if you take SteamCache offline, you don't break your networks DNS. Just change any clients pointing to your SteamCache, to point to your Pihole instead. 

 

As for installing SteamCache, the old steamcache project was replaced with monolithic lancache. Also as RPi is ARM you require the ARM files not x86/x86_64. 

Seems there's this unofficial build https://github.com/jrcichra/lancache-rpi

For configuration follow the standard Ubuntu/Debian/Docker tutorials. "Raspberry Pi OS" (formerly Raspbian) is just an ARM build of Debian. 

 

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13752096
Share on other sites

Link to post
Share on other sites

8 hours ago, virtus96 said:

So in my lancache configuration I have to set as Upstream DNS my pihole, right? 

 

Correct. And your pihole upstream dns will probably be either your router or a public ip like Google, Quad9, your ISP, etc...

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13753702
Share on other sites

Link to post
Share on other sites

Fine. I just saw that my fritxbox 7590 has two configurable sections: one in Internet option, having possibility to set Primary and Secondary DNS;

another option is in the Home Network settings, along with DHCP configurations.

 

How and where do I have to set things?

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13754144
Share on other sites

Link to post
Share on other sites

19 minutes ago, virtus96 said:

Fine. I just saw that my fritxbox 7590 has two configurable sections: one in Internet option, having possibility to set Primary and Secondary DNS;

another option is in the Home Network settings, along with DHCP configurations.

 

How and where do I have to set things?

 

The Primary/Secondary DNS in your Internet Options are probably your external DNS servers, so probably your ISP's DNS servers. You dont want to change these to anything other than external DNS (like Google DNS, Cloudflare, Quad9, etc...) otherwise your internet won't resolve. 

 

The DNS settings in your DHCP configurations are the DNS Server IP address that get handed out to clients via DHCP (when they get an IP automatically assigned). 

This is where you want to set it to either your Pi-hole or your LanCache, depending on how you want to set this up. 

 

Consider: If you're pointing DNS to your LanCache, if your LanCache is offline, then NOTHING with a DHCP address will get internet. 

In most home situations where you might only have 2-3 gaming computers, it's typically best to configure your Routers DNS for DHCP to point to your PiHole; and manually assign your LanCache IP as the DNS Server on only the machines that need to access LanCache. 

 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/1213393-pihole-and-steamcache/#findComment-13754208
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×