bntjah / lancache

Improve download speeds and reduce strain on your Internet connection at LAN parties. Locally cache game installs and updates from the largest distributors: Steam, RIOT, Blizard, Hirez, Origin, Sony, Microsoft, Tera, GOG, ArenaNetworks, WarGaming, and Uplay. Super easy to setup with auto installer script!
174 stars 44 forks source link

DNS - Blizzard not working #6

Closed bntjah closed 8 years ago

bntjah commented 8 years ago

Somehow DNS to Blizzard isn't going as it should

nexusofdoom commented 8 years ago

did you get blizzard working ?

downloading testing was , hearthstone and heroes of the storm

//// Add include "/etc/bind/named.local.steam"; to your named.conf.local file//# nexusofdoom only uses this* blzddist1-a.akamaihd.net http://blzddist1-a.akamaihd.net blzddist2-a.akamaihd.net http://blzddist2-a.akamaihd.net_zone "dist.blizzard.com." IN { type master; file "/etc/bind/db.lancache.blizzard";};zone "blzddist1-a.akamaihd.net http://blzddist1-a.akamaihd.net." IN { type master; file "/etc/bind/db.lancache.blizzard";};zone "_blzddist2-a.akamaihd.net http://blzddist2-a.akamaihd.net *." IN { type master; file "/etc/bind/db.lancache.blizzard";};

http://www.discoverpc.netTravus Elm - Support Specialist travus@discoverpc.netdiscoverpc.NET http://discoverpc.net/, 1402 Tower Ave., Superior, WI 54880 Local: (715) 398-6767 ::: Toll-free: (800) 721-1350 Mobile: (218) 260-1940 ::: Fax: (866) 704-3660Follow or like us on Google+ https://plus.google.com/111445774308955992766/about?gl=us&hl=en _, _Facebook http://www.facebook.com/pages/discoverpcNET-Computer-Solutions-Center/35471145348 PRIVILEGED AND CONFIDENTIAL COMMUNICATION This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information that is legally privileged. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please: (1) immediately notify me by reply e-mail, or by collect telephone call; and (2) destroy the original transmission and its attachments without reading or saving in any manner .

On Mon, Jan 4, 2016 at 1:33 PM, bntjah notifications@github.com wrote:

Somehow DNS to Blizzard isn't going as it should

— Reply to this email directly or view it on GitHub https://github.com/bntjah/lancache/issues/6.

nexusofdoom commented 8 years ago
// Add include "/etc/bind/named.local.steam"; to your named.conf.local file

//

nexusofdoom only uses this blzddist1-a.akamaihd.net blzddist2-a.akamaihd.net

zone "dist.blizzard.com." IN { type master; file "/etc/bind/db.lancache.blizzard"; }; zone "blzddist1-a.akamaihd.net." IN { type master; file "/etc/bind/db.lancache.blizzard"; }; zone "blzddist2-a.akamaihd.net ." IN { type master; file "/etc/bind/db.lancache.blizzard"; };

nexusofdoom commented 8 years ago

this is all that I use with dns forward address=/blzddist1-a.akamaihd.net/0.0.0.0 address=/blzddist2-a.akamaihd.net/0.0.0.0 = your ip

nexusofdoom commented 8 years ago

having issues with origin is it working for you ?

nexusofdoom commented 8 years ago

I got origin working with a new config and built nginx with this options ./configure ./configure --with-http_slice_module

verison http://nginx.org/download/nginx-1.9.9.tar.gz

origin

server { listen lancache-origin deferred default; servername origin ;

DNS entries: lancache-origin akamai.cdn.ea.com

    access_log /srv/lancache/logs/lancache-origin-access.log main buffer=128k flush=1m;
    error_log /srv/lancache/logs/lancache-origin-error.log;
    # Origin Node
    include lancache/resolver;
    location / {
            # Currently Origin: \* Blocks caching so we have to ignore Expires and Cache-Control. \* Puts sauth=<authkey> in the query string so we use $uri
            # instead of $request_uri
            #   in the cache key. \* Uses a single archive file with range requests and refuses requests to download the entire file. To combat this we
            #pass-through the Range headers and include the range to the cache key and allow caching of 206 responses. Eproxy_ignore_headers Expires
            #Cache-Control; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_cache_key "$server_name$uri $http_range";
            #proxy_cache_valid 206 90d; proxy_read_timeout 150;
            # Use Origin cache proxy_cache origin; include lancache/proxy-cache;
            # Request Slicing
# Supported in nginx 1.9.8
slice 1m;
# Cache Location
proxy_cache origin;
# Cache Settings
proxy_ignore_headers Expires Cache-Control;
proxy_cache_key $uri$slice_range;
proxy_cache_valid 200 206 120d;
proxy_set_header Range $slice_range;
# Use proxy_cache method
include lancache/proxy-cache;
#include lancache/proxy-pass;

    }

}

bntjah commented 8 years ago

Origin was working for me; so no problems there ;-)

nexusofdoom commented 8 years ago

Did you get blizzard working on your side ? On Jan 15, 2016 1:05 AM, "bntjah" notifications@github.com wrote:

Origin was working for me; so no problems there ;-)

— Reply to this email directly or view it on GitHub https://github.com/bntjah/lancache/issues/6#issuecomment-171886876.

nexusofdoom commented 8 years ago

this is my current running files

and this is my current running dns forwards

steam

address=/cs.steampowered.com/10.0.4.28 address=/.cs.steampowered.com/10.0.4.28 address=/content1.steampowered.com/10.0.4.28 address=/content2.steampowered.com/10.0.4.28 address=/content3.steampowered.com/10.0.4.28 address=/content4.steampowered.com/10.0.4.28 address=/content5.steampowered.com/10.0.4.28 address=/content6.steampowered.com/10.0.4.28 address=/content7.steampowered.com/10.0.4.28 address=/content8.steampowered.com/10.0.4.28 address=/.hsar.steampowered.com.edgesuite.net/10.0.4.28 address=/.akamai.steamstatic.com//10.0.4.28 address=/content-origin.steampowered.com/10.0.4.28 address=/client-download.steampowered.com/10.0.4.28

riot

address=/l3cdn.riotgames.com/10.0.4.25

tera

address=/patch.tera.enmasse-game.com/10.0.4.27

blizzard

address=/blzddist1-a.akamaihd.net/10.0.4.24 address=/blzddist2-a.akamaihd.net/10.0.4.24

wargaming

address=/*.wargaming.net.edgesuite.net/10.0.4.31 address=/update.worldofwarships.com/10.0.4.31 address=/wgusst-na.wargaming.net/10.0.4.31 address=/tracker-na.wargaming.net/10.0.4.31 address=/wg.gcdn.co/10.0.4.31 address=/update-v4r4h10x.worldofwarships.com/10.0.4.31 address=/dl2.wargaming.net/10.0.4.31

guildwars2

address=/.ArenaNetworks.com/10.0.4.32

windows updates

address=/.windowsupdate.com/10.0.4.23

origin

address=/.origin-a.akamaihd.net/10.0.4.26

http://www.discoverpc.netTravus Elm - Support Specialist travus@discoverpc.netdiscoverpc.NET http://discoverpc.net/, 1402 Tower Ave., Superior, WI 54880 Local: (715) 398-6767 ::: Toll-free: (800) 721-1350 Mobile: (218) 260-1940 ::: Fax: (866) 704-3660Follow or like us on Google+ https://plus.google.com/111445774308955992766/about?gl=us&hl=en _, _Facebook http://www.facebook.com/pages/discoverpcNET-Computer-Solutions-Center/35471145348 PRIVILEGED AND CONFIDENTIAL COMMUNICATION This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information that is legally privileged. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please: (1) immediately notify me by reply e-mail, or by collect telephone call; and (2) destroy the original transmission and its attachments without reading or saving in any manner .

On Fri, Jan 15, 2016 at 7:44 AM, Travus Elm travus@discoverpc.net wrote:

Did you get blizzard working on your side ? On Jan 15, 2016 1:05 AM, "bntjah" notifications@github.com wrote:

Origin was working for me; so no problems there ;-)

— Reply to this email directly or view it on GitHub https://github.com/bntjah/lancache/issues/6#issuecomment-171886876.

nexusofdoom commented 8 years ago

tried to send you my other config files will not take the zip file

nexusofdoom commented 8 years ago

nginx.txt see if you can rename the .txt to .zip and open this is all the files i have now running in nginx

thanks

working as of now and tested arenanetworks works blizzard works microsoft works riot works steam works tera worsk origin works wargaming works

nexusofdoom commented 8 years ago

I added this to the tera config so it will pull current patched files

set $no_cache ""; if ($request_uri ~* .patchmanifest$) { set $no_cache "1"; } proxy_no_cache $no_cache; proxy_cache_bypass $no_cache;

bntjah commented 8 years ago

Created a blank new install; testing with your NGINX set up at this moment :-)

nexusofdoom commented 8 years ago

sounds good keep me up to date

http://www.discoverpc.net Travus Elm - Support Specialist travus@discoverpc.net discoverpc.NET http://discoverpc.net/, 1402 Tower Ave., Superior, WI 54880 Local: (715) 398-6767 ::: Toll-free: (800) 721-1350 Mobile: (218) 260-1940 ::: Fax: (866) 704-3660 _Follow or like us on _Google+ https://plus.google.com/111445774308955992766/about?gl=us&hl=en_, Facebook_ http://www.facebook.com/pages/discoverpcNET-Computer-Solutions-Center/35471145348 PRIVILEGED AND CONFIDENTIAL COMMUNICATION This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information that is legally privileged. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please: (1) immediately notify me by reply e-mail, or by collect telephone call; and (2) destroy the original transmission and its attachments without reading or saving in any manner .

On Tue, Feb 23, 2016 at 12:12 PM, bntjah notifications@github.com wrote:

Created a blank new install; testing with your NGINX set up at this moment :-)

— Reply to this email directly or view it on GitHub https://github.com/bntjah/lancache/issues/6#issuecomment-187824214.

nexusofdoom commented 8 years ago

I am running version: nginx/1.9.9

http://www.discoverpc.net Travus Elm - Support Specialist travus@discoverpc.net discoverpc.NET http://discoverpc.net/, 1402 Tower Ave., Superior, WI 54880 Local: (715) 398-6767 ::: Toll-free: (800) 721-1350 Mobile: (218) 260-1940 ::: Fax: (866) 704-3660 _Follow or like us on _Google+ https://plus.google.com/111445774308955992766/about?gl=us&hl=en_, Facebook_ http://www.facebook.com/pages/discoverpcNET-Computer-Solutions-Center/35471145348 PRIVILEGED AND CONFIDENTIAL COMMUNICATION This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information that is legally privileged. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please: (1) immediately notify me by reply e-mail, or by collect telephone call; and (2) destroy the original transmission and its attachments without reading or saving in any manner .

On Tue, Feb 23, 2016 at 12:27 PM, Travus Elm travus@discoverpc.net wrote:

sounds good keep me up to date

http://www.discoverpc.net Travus Elm - Support Specialist travus@discoverpc.net discoverpc.NET http://discoverpc.net/, 1402 Tower Ave., Superior, WI 54880 Local: (715) 398-6767 ::: Toll-free: (800) 721-1350 Mobile: (218) 260-1940 ::: Fax: (866) 704-3660 _Follow or like us on _Google+ https://plus.google.com/111445774308955992766/about?gl=us&hl=en_, Facebook_ http://www.facebook.com/pages/discoverpcNET-Computer-Solutions-Center/35471145348 PRIVILEGED AND CONFIDENTIAL COMMUNICATION This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information that is legally privileged. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please: (1) immediately notify me by reply e-mail, or by collect telephone call; and (2) destroy the original transmission and its attachments without reading or saving in any manner .

On Tue, Feb 23, 2016 at 12:12 PM, bntjah notifications@github.com wrote:

Created a blank new install; testing with your NGINX set up at this moment :-)

— Reply to this email directly or view it on GitHub https://github.com/bntjah/lancache/issues/6#issuecomment-187824214.

imac2009 commented 8 years ago

Hey I'm on 1.9.9 and had no problems with blizzard and steam. Origin isn't working for us, but at the moment this is not a big deal.

We did a lan party with 250 ppl. last weekend and since we are starving on a barely stable 11mbit. Do I have to mention, that Valve pushed a Client & Server Update for CS:Go while our tournament was in final phase? :D you Sirs saved our asses, since in the past this ment updating clients for hours. This night all went trough withing a few minutes :+1: We served 1,2 TB Content btw.

bntjah commented 8 years ago

Imacs2009, Origin does work on the new dev tree build (should be uploaded somewhere this evening), wich is running on 1.9.9 with splicing (out of my head could be wrong) wich should serve a bith more data faster.

Build is made by Nexusofdoom and currently testing it on my VM but seems to do fine so will up it later today with some new instructions for 1.9.9. So keep an eye out!

The LAN I am doing this for, should be around 200 people so nice to have an idea how much data we will save with this solution! Thanks for the info!

imac2009 commented 8 years ago

Well, we "filled" the Cache a few days on a high bandwidth connection with all kind of LAN related games CS, COD, SCII and much more. Otherwise, we wouldn't be able to share so much offline. Past has shown us, there are much more ppl out there who bring their PC with a outdated SteamLib than you can think of. Some of them even trying to install full games. Ok. With lancache not a big problem anymore. Were is your LAN? In terms of not spamming this thread offtopic any further it would be nice to stay in contact via mail. Its imac2009 at gmail dot com

bntjah commented 8 years ago

works and integrated in development / master branch