Jump to content

I setup a lancache server and there are no errors in the logs. However when I try to use it it blocks some urls and prevents steam from logging in. It also doesn't cache anything.

Lancache-Dns logs:

Quote

  _                  _____           _                       _    ,
 | |                / ____|         | |                     | |   ,
 | |     __ _ _ __ | |     __ _  ___| |__   ___   _ __   ___| |_  ,
 | |    / _` | '_ \| |    / _` |/ __| '_ \ / _ \ | '_ \ / _ \ __| ,
 | |___| (_| | | | | |___| (_| | (__| | | |  __/_| | | |  __/ |_  ,
 |______\__,_|_| |_|\_____\__,_|\___|_| |_|\___(_)_| |_|\___|\__| ,
,
,
Executing hook /hooks/entrypoint-pre.d/10_generate_config.sh,
configuring /etc/resolv.conf to stop from looping to ourself,
,
Bootstrapping Lancache-DNS from https://github.com/uklans/cache-domains.git,
HEAD is now at 354615d Add FFXIV CDN (#142),
,
----------------------------------------------------------------------,
Using Generic Server: 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Make sure you are using a monolithic cache or load balancer at 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
----------------------------------------------------------------------,
,
Processing service: arenanet,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: blizzard,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: bsg,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: cityofheroes,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: daybreak,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: epicgames,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: frontier,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: hirez,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: nexusmods,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: neverwinter,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: nintendo,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: origin,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: renegadex,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: riot,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: rockstar,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: sony,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: square,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: steam,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: uplay,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: teso,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: twitch,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: warframe,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: wargaming,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: wsus,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
Processing service: xboxlive,
Enabling service with ip(s): 192.168.178.201 192.168.178.202 192.168.178.203 192.168.178.204 192.168.178.205,
,
 --- ,
,
finished bootstrapping.,
Executing hook /hooks/supervisord-pre.d/10_config_check.sh,
checking Bind9 config,

Lanchache-monolithic logs:

Quote

location / {,
,
# Including /etc/nginx/sites-available/generic.conf.d/root/10_loop_detection.conf,
# Abort any circular requests,
if ($http_X_LanCache_Processed_By = $hostname) {,
return 508;,
},
,
proxy_set_header X-LanCache-Processed-By $hostname;,
add_header X-LanCache-Processed-By $hostname,$http_X_LanCache_Processed_By;,
# Finished including /etc/nginx/sites-available/generic.conf.d/root/10_loop_detection.conf,
# Including /etc/nginx/sites-available/generic.conf.d/root/20_cache.conf,
# Cache Location,,
;,
proxy_cache generic;,
,
proxy_ignore_headers Expires Cache-Control;,
proxy_cache_valid 200 206 3650d;,
proxy_set_header Range $slice_range;,
,
# Only download one copy at a time and use a large timeout so,
# this really happens, otherwise we end up wasting bandwith,
# getting the file multiple times.,
proxy_cache_lock on;,
proxy_cache_lock_timeout 1h;,
,
# Allow the use of state entries,
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;,
,
# Allow caching of 200 but not 301 or 302 as our cache key may not include query params,
# hence may not be valid for all users,
proxy_cache_valid 301 302 0;,
,
# Enable cache revalidation,
proxy_cache_revalidate on;,
,
# Don't cache requests marked as nocache=1,
proxy_cache_bypass $arg_nocache;,
,
# 40G max file,
proxy_max_temp_file_size 40960m;,
,
# Finished including /etc/nginx/sites-available/generic.conf.d/root/20_cache.conf,
# Including /etc/nginx/sites-available/generic.conf.d/root/30_cache_key.conf,
proxy_cache_key $cacheidentifier$uri$slice_range;,
# Finished including /etc/nginx/sites-available/generic.conf.d/root/30_cache_key.conf,
# Including /etc/nginx/sites-available/generic.conf.d/root/40_etags.conf,
# Battle.net Fix,
proxy_hide_header ETag;,
,
# Finished including /etc/nginx/sites-available/generic.conf.d/root/40_etags.conf,
# Including /etc/nginx/sites-available/generic.conf.d/root/90_upstream.conf,
# Upstream Configuration,
proxy_next_upstream error timeout http_404;,
proxy_pass http://$host$request_uri;,
proxy_redirect off;,
proxy_ignore_client_abort on;,
,
# Upstream request headers,
proxy_set_header Host $host;,
proxy_set_header X-Real-IP $remote_addr;,
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;,
# Finished including /etc/nginx/sites-available/generic.conf.d/root/90_upstream.conf,
# Including /etc/nginx/sites-available/generic.conf.d/root/99_debug_header.conf,
# Debug Headers,
add_header X-Upstream-Status $upstream_status;,
add_header X-Upstream-Response-Time $upstream_response_time;,
add_header X-Upstream-Cache-Status $upstream_cache_status;,
# Finished including /etc/nginx/sites-available/generic.conf.d/root/99_debug_header.conf,
,
},
,
# Fix for League of Legends Updater,
location ~ ^.+(releaselisting_.*|.version$) {,
proxy_pass http://$host;,
},
,
location = /lancache-heartbeat {,
add_header X-LanCache-Processed-By $hostname;,
add_header 'Access-Control-Expose-Headers' '*';,
add_header 'Access-Control-Allow-Origin' '*';,
return 204;,
},
# Finished including /etc/nginx/sites-available/generic.conf.d/10_generic.conf,
# Including /etc/nginx/sites-available/generic.conf.d/20_arenanet_manifest.conf,
# Fix for GW2 manifest,
location ^~ /latest64 {,
proxy_cache_bypass 1;,
proxy_no_cache 1;,
proxy_pass http://$host$request_uri;,
},
# Finished including /etc/nginx/sites-available/generic.conf.d/20_arenanet_manifest.conf,
},
# Finished including /etc/nginx/sites-enabled/10_generic.conf,
},
# Finished including /etc/nginx/nginx.conf,
Checking nginx config,
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok,
nginx: configuration file /etc/nginx/nginx.conf test is successful,
Config check successful,

Lancache sniproxy has no logs.

The logs say that everything is successful. Does anyone know what the error could be.

Link to comment
https://linustechtips.com/topic/1259499-lancache-problem/
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

when you say it blocks urls, what does dns point to for those urls?

 

 

when i try to ping cs.steampowered.com with lancache enabled it says Name or service not known. If i ping it without lancache it works just fine

Link to comment
https://linustechtips.com/topic/1259499-lancache-problem/#findComment-14132115
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

what does nslookup cs.steampowered.com return?

It returns:

Quote

Server:         192.168.178.1
Address:        192.168.178.1#53

Non-authoritative answer:
cs.steampowered.com     canonical name = content-origin.steampowered.com.
content-origin.steampowered.com canonical name = origin-tier2.steampipe.steamcontent.com.
origin-tier2.steampipe.steamcontent.com canonical name = steampipe-origin-tier2.steamcontent.com.
Name:   steampipe-origin-tier2.steamcontent.com
Address: 2602:801:f00b:1::cdc4:68e
Name:   steampipe-origin-tier2.steamcontent.com
Address: 2602:801:f00b::cdc4:6ab


 


 

Link to comment
https://linustechtips.com/topic/1259499-lancache-problem/#findComment-14132124
Share on other sites

Link to post
Share on other sites

1 minute ago, Aehrieck said:

It returns:


 

are the web ports open on the lan cache server? Seems like the prox

isn't getting or forwarding the ports. Try using nmap to see if its open.

 

Can you see if the lan ache server is getting those web requrests?

Link to comment
https://linustechtips.com/topic/1259499-lancache-problem/#findComment-14132130
Share on other sites

Link to post
Share on other sites

5 minutes ago, Electronics Wizardy said:

are the web ports open on the lan cache server? Seems like the prox

isn't getting or forwarding the ports. Try using nmap to see if its open.

 

Can you see if the lan ache server is getting those web requrests?

Nmap returns:

Quote

Starting Nmap 7.80 ( https://nmap.org ) at 2020-10-19 22:24 CEST
Nmap scan report for dns.fritz.box (192.168.178.201)
Host is up (0.0053s latency).
Not shown: 994 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
53/tcp   open  domain
80/tcp   open  http
111/tcp  open  rpcbind
443/tcp  open  https
9000/tcp open  cslistener

Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds

 

 

Link to comment
https://linustechtips.com/topic/1259499-lancache-problem/#findComment-14132145
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

×