Netgate SG-1000 microFirewall

Author Topic: Steam Caching update games  (Read 698 times)

0 Members and 1 Guest are viewing this topic.

Offline VladimirM

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Steam Caching update games
« on: September 04, 2017, 03:54:02 am »
Hi everyone. My purpose is caching gaming updates . I have already used this topic : https://github.com/rudiservo/pfsense_storeid
but everytime take TCP/MISS:




1504507564.430   5626 192.168.1.20 TCP_MISS/200 311059 GET http://valve533.steamcontent.com/depot/373303/chunk/c2b6ff80bc658c4a15736795e327616ba31d66dc? - ORIGINAL_DST/162.254.197.93 application/x-steam-chunk
1504507564.450   1895 192.168.1.20 TCP_MISS/200 95810 GET http://valve515.steamcontent.com/depot/373303/chunk/87cdb7c1e2558ef2f507c43f19795efe90071522? - ORIGINAL_DST/162.254.197.25 application/x-steam-chunk
1504507564.526   5077 192.168.1.20 TCP_MISS/200 316371 GET http://valve907.steamcontent.com/depot/373303/chunk/95775d00d431982a361f996449dff22649f0cb27? - ORIGINAL_DST/162.254.198.18 application/x-steam-chunk
1504507564.892   8894 192.168.1.20 TCP_MISS/200 353970 GET http://valve507.steamcontent.com/depot/373303/chunk/1a23b344f9e01151b9f6b26729e63089ea128267? - ORIGINAL_DST/162.254.197.17 application/x-steam-chunk
1504507564.909   7928 192.168.1.20 TCP_MISS/200 348931 GET http://valve533.steamcontent.com/depot/373303/chunk/1006c3face96b0d3571a502a29c35b0248fb912b? - ORIGINAL_DST/162.254.197.93 application/x-steam-chunk
1504507564.996   5499 192.168.1.20 TCP_MISS/200 328931 GET http://valve515.steamcontent.com/depot/373303/chunk/25fdb99ae3249f2399da01189e1cf0eaf573e19e? - ORIGINAL_DST/162.254.197.25 application/x-steam-chunk
1504507565.271   6366 192.168.1.20 TCP_MISS/200 382898 GET http://valve533.steamcontent.com/depot/373303/chunk/ef11692328a934be573bc66aa0256c4668e28cd3? - ORIGINAL_DST/162.254.197.93 application/x-steam-chunk
1504507565.275    694 192.168.1.20 TCP_MISS/200 94930 GET http://valve907.steamcontent.com/depot/373303/chunk/b8f0ce7d1b0c008681a67c5ab71d65e660db590e? - ORIGINAL_DST/162.254.198.18 application/x-steam-chunk
1504507565.295   8897 192.168.1.20 TCP_MISS/200 317538 GET http://valve533.steamcontent.com/depot/373303/chunk/ed6ce504fbaebc3b3b4a7cbbff54c38f7d61dc09? - ORIGINAL_DST/162.254.197.93 application/x-steam-chunk
1504507565.326   9328 192.168.1.20 TCP_MISS/200 403635 GET http://valve520.steamcontent.com/depot/373303/chunk/530dc3b7d31d2a6201f310d02d338bb5eb25ce06? - ORIGINAL_DST/162.254.197.30 application/x-steam-chunk
1504507565.553   7293 192.168.1.20 TCP_MISS/200 308787 GET http://valve507.steamcontent.com/depot/373303/chunk/5b844a22a98c22b427a5cef018f9222994fe2e1f? - ORIGINAL_DST/162.254.197.17 application/x-steam-chunk
1504507565.873    548 192.168.1.20 TCP_MISS/200 190483 GET http://valve533.steamcontent.com/depot/373303/chunk/845f5ae05406ab345d4ed90ab3f1c0ac73aced46? - ORIGINAL_DST/162.254.197.93 application/x-steam-chunk
1504507565.917   1385 192.168.1.20 TCP_MISS/200 312515 GET http://valve515.steamcontent.com/depot/373303/chunk/03fe8793b70f2d7feeb1167241614bd5b590f170? - ORIGINAL_DST/162.254.197.25 application/x-steam-chunk
1504507566.040   7383 192.168.1.20 TCP_MISS/200 411427 GET http://valve517.steamcontent.com/depot/373303/chunk/fe3e7405c6382f1d1c9e4b6e1f8fa9193d015f37? - ORIGINAL_DST/162.254.197.27 application/x-steam-chunk
1504507567.002   9478 192.168.1.20 TCP_MISS/200 259410 GET http://valve507.steamcontent.com/depot/373303/chunk/eff09901ed2bca445ac936343ae701b709308efd?


My knowledge is not enough for using this http://www.astrolox.com/2013/05/31/valve-steampipe-reverse-proxy/
Can anyone explain ? Just download nginx then copy "nginx valve steam cache configuration file for ubuntu" (text/plain ~ 9 KB) to config file ? Is it  all that i should to do?

Maybe do you know easy way to do my purpose .

Offline VladimirM

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Steam Caching update games
« Reply #1 on: September 04, 2017, 06:04:26 am »
StoreID_rewrite conf

^http:\/\/[^\.]+\.cs\.steampowered\.com\/(.*)   http://steamupdates.squid.internal/$1
^http:\/\/.*\.cs\.steampowered\.com/(.*)      http://valve.cs.steampowered.com.squid.internal/$1
^http:\/\/[^\.]+\.cs\.steamcommunity\.com\/(.*)   http://steamcommunity.com.squid.internal/$1
^http:\/\/[^\.]+\.cs\.steamgames\.com\/(.*)   http://steamcommunity.com.squid.internal/$1
^http:\/\/[^\.]+\.cs\.steamusercontent\.com\/(.*)   http://steamcommunity.com.squid.internal/$1
^http:\/\/[^\.]+\.cs\.steamcontent\.com\/(.*)   http://steamcommunity.com.squid.internal/$
^http:\/\/[^\.]+\.cs\.steamusercontent\.com\/(.*)   http://steamcommunity.com.squid.internal/$1
^http:\/\/[^\.]+\.cs\.steamstatic\.com\/(.*)   http://steamcommunity.com.squid.internal/$1
^http:\/\/.*\.cs\.steampowered\.com\/(depot\/\d+\/chunk\/.*)          http://valveN.steamcdn.cs.steampowered.com.squid.internal/$1

Offline mdonline

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Steam Caching update games
« Reply #2 on: November 16, 2017, 02:28:09 am »
Any update on this?

Offline mcwtim

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +7/-0
    • View Profile
Re: Steam Caching update games
« Reply #3 on: February 17, 2018, 10:41:41 am »
Perhaps not the exact answer any of you are looking for but this works and works well and is relatively easy to get going:
https://github.com/RyanEwen/lan-cache-docker

I've tested it with:
    Steam
    Origin
    Uplay
    Blizzard (Including Destiny 2)
    League of Legends
    ArenaNet (Guild Wars 2)
    Frontier (Elite Dangerous)
    Microsoft (Windows Updates)


Simply setup an Ubuntu Server 16.xx Server without the LAMP option (you'll need to disable Apache if you do, it will intercept port 80), I suggest choosing the OpenSSH server, is easier to paste commands from another PC with PuTTY etc.
Once the server is installed simply follow the setup instructions here https://github.com/RyanEwen/lan-cache-docker/wiki/Setup-instructions.
Set the IP of this new lan-cache server as your DNS server instead of using pfSense for DNS.

Trying to shoehorn nginx, sniproxy and the way dnsmasq is used for hijacking the various Game CDN names into pfSense is well beyond my abilities.