-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lancache isn't working #138
Comments
I may be able to help tonight team-viewer ssh access to box? |
From what I can tell from your error; I think you should look into your DNS.
Might be an interesting test to try on a Windows System to change the host
file with the correct DNS and check if this directs to lancache?
Op do 10 jan. 2019 om 22:54 schreef nexusofdoom <[email protected]>:
… I may be able to help tonight team-viewer ssh access to box?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#138 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGE_0TNHAKyBL6Bbt3vhy04vzBPn1zi_ks5vB7aEgaJpZM4Z5yrK>
.
|
Problem solved, it was the ipv6 NIC enabled so i unchecked it. I have another issue using this test link : http://download.microsoft.com/download/0/9/5/0953E553-3BB6-44B1-8973-106F1B7E5049/wmp11-windowsxp-x86-enu.exe It gives me: This problem is lnked to the name download.microsoft.com added in the unbound file. |
This looks more like the config of microsoft isn't working as nginx reverse
proxy isn't hooking to the download.microsoft.com or the bind ip...
Op vr 11 jan. 2019 om 10:29 schreef ramzess1 <[email protected]>:
… [image: capture]
<https://user-images.githubusercontent.com/46570020/51025256-3761a500-1594-11e9-80a2-2d7c87292b28.PNG>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#138 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGE_0e3AlYpJD32-e9S1djRj5w2EvV6Sks5vCFmVgaJpZM4Z5yrK>
.
|
Do you mean it should work for other sites? because i am only testing the "download.microsoft.com" on my windows PC |
Have a look into your config that are loaded by nginx.
See line 3 and 4 of
https://github.com/bntjah/lancache/blob/master/conf/vhosts-enabled/lancache-microsoft.conf
lancache-microsoft is defined in the hosts file so any traffic going
over port 80 on the ip defined in hosts will be picked up by nginx and
sent through the reverse proxy...
Op vr 11 jan. 2019 om 10:44 schreef ramzess1 <[email protected]>:
…
Do you mean it should work for other sites? because i am only testing the "download.microsoft.com" on my windows PC
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
There's no logs in: And find next the microsoft host file and the hosts file. And thank you for you help. |
Hey Ramzess,
Looking through your screenshots I see no where where NGINX should listen
on the 10.126.14.9 so I guess this is where you issue is situated.
Logs won't be generated as no traffic is actually reaching the NGINX config
used for Microsoft...
Op vr 11 jan. 2019 om 11:14 schreef ramzess1 <[email protected]>:
… [image: hosts]
<https://user-images.githubusercontent.com/46570020/51027772-6549e800-159a-11e9-8ace-cf77b5027a5e.PNG>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#138 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGE_0RPYSViRUib5OeN6IuAS0tdvhk86ks5vCGPzgaJpZM4Z5yrK>
.
|
I got this log error in NGINX logs: |
Ramzess could you give me a screenshot of your nginx.conf and the
lancache-microsoft.conf complete content?
Op vr 11 jan. 2019 om 11:45 schreef ramzess1 <[email protected]>:
… I got this log error in NGINX logs:
2019/01/11 12:22:23 [error] 7092#7092: *1 open()
"/usr/local/nginx/html/download/0/9/5/0953E553-3BB6-44B1-8973-106F1B7E5049/wmp11-windowsxp-x86-enu.exe"
failed (2: No such file or directory)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#138 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGE_0aZfTJDT4QMDorGxLAFqn2yKa9f-ks5vCGtkgaJpZM4Z5yrK>
.
|
I only changed the proxy bind variable in lancache-microsoft file |
Hey Ramzess, don't follow this commands blindly (it will most likely
fix your issue, but see why I suggest this):
mv /usr/local/nginx/nginx.conf /usr/local/nginx/nginx.conf.bak
wget https://raw.githubusercontent.com/bntjah/lancache/master/conf/nginx.conf
- O /usr/local/nginx/nginx.conf
Reasoning: comparing your nginx.conf towards
https://raw.githubusercontent.com/bntjah/lancache/master/conf/nginx.conf
I see alot of differences; it seems like your nginx.conf seems to be
the default one that nginx installed with and not the one from the
github repo...
Op vr 11 jan. 2019 om 12:09 schreef ramzess1 <[email protected]>:
…
I only changed the proxy bind variable in lancache-microsoft file
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The screenshots sent of nginx.conf are for the executable file given by nginx -t. The other one has the same config as in Github. The error seems to be a location error for the get http links. |
Everything is activated but the problem nginx isn't downloading the requested webpage. The location inside the executor of nginx in the screenshot sent is showing "root: html" but in that folder there is only index.html the nginx default page. I don't know if i should change the location inside the nginx executor file or there's anything else. |
are you downloading as http or https ? |
my setup is working #example of what I see #my logs |
Ok nexusofdoom i will try it on Monday. It is an http link and was always showing 404 not found because it is pointing to etc/local/nginx/html/"the requested page file" which doesn't exist. I figured this by looking at nginx/logs/error.log as sent in one of the last comments. This location only contains the default page index.html and the 505.. error file. So i think nginx isn't downloading the file. Https downloads doesn't work with lancache right? Because while downloading https from microsoft it dowloads the file normally but it doesn't cache it. Thank you all for your replies. |
If you have a spare pc box or vm I would try reloading linux and lancache and see how it works. |
what's the output of: |
Lancache is activated. Nexusofdoom i will try to reinstall nginx, maybe there's something in the installation but on Monday because i don't have my pc now. Can you send me the steps to install the full nginx please? |
Easiest way to install is using the install script https://github.com/nexusofdoom/lancache-installer Its been a while since I tried a manual install but you have cant just run apt-get install nginx as you have to load additional modules so have to run a compile, instructions are in the readme I believe. |
These are the steps that i made:
2)apt-get install curl git unbound build-essential libpcre3 zlib1g-dev libreadline-dev libncurses5-dev libssl-dev httpry libudns0 libudns-dev libev4 libev-dev devscripts automake libtool autoconf autotools-dev cdbs debhelper dh-autoreconf dpkg-dev gettext pkg-config fakeroot libpcre3-dev libgd2-xpm-dev libgeoip-dev tcpdump -y 3)curl http://nginx.org/download/nginx-1.13.4.tar.gz | tar zx cd nginx-1.13.4 4)git clone -b master http://github.com/bntjah/lancache
7)adduser --system --no-create-home lancache 8)mkdir -p /srv/lancache/data/{microsoft,installs,other,tmp,hirez,origin,riot,gog,sony,steam,wargaming,arenanetworks,uplay,glyph,zenimax,digitalextremes,pearlabyss, blizzard, apple} 9)chown -R lancache:lancache /srv/lancache 10)cp -R ~/lancache/conf /usr/local/nginx/ 11)Replace the proxy-bind variable in each lancache-"service-name" file and in the hosts file 12)cp ~/lancache/init.d/lancache /etc/init.d/ 13)chmod +x /etc/init.d/lancache 14)update-rc.d lancache defaults 15)cp ~/lancache/limits.conf /etc/security/ 16)cp ~/lancache/hosts /etc/ and changed the virtual ip near each lancache service 17)echo "net.ipv6.conf.all.disable_ipv6=1" >/etc/sysctl.d/disable-ipv6.conf
20)service lancache start 21)service unbound start Is there anything left? |
Nexusofdoom this script "https://github.com/nexusofdoom/lancache-installer"installs automatically the full lancache service ?? |
I saw it, greatt! So i just have to change the variables of ips, dns.. in the files and the run the script? Thankss |
there's really very little you would need to change in nexus's script though it needs a little bit of an update.
The only real affect the 3 issues have are that I had to go and update the netplan yaml to set interface name and gateway, everything else appears to be working without having changed anything. This was on a fresh ubuntu 18.04 container running on a proxmox host. |
I know that it works with "Ubuntu 18.04.1 Server" Did you install 18.04 or 18.04.1? |
I executed the script of nexusofdomm and i got this error of unbound file -- Unit unbound.service has finished shutting down.
|
Are you running Ubuntu 18.04.1 Server? |
yess |
Did you do apt-get update and apt-get upgrade before the installation? |
The script does the updates Update packagesecho "Installing package updates..." |
I tried this on two other computers and one of the computers the network card was having issues replaced and the installer worked great. |
Trying to rerun the script on a new ubuntu 18.04.1, it gives Installing package updates... |
Sorry don't know what to say it updates and it also updates the kernel. Download url for Ubuntu 18.04.1 Server You will need 18 avaliable IP's example 192.168.0.2 - 192.168.0.20 used for lancache cd lancache-installer Run scripts with sudo |
Configuration file '/etc/default/sniproxy' which one please? |
Thank you all for your help, it works correctly. Steps for new lancache installers : |
Hello,
I have installed the Lancache server. Lancache, Unbound and NGINX are activated. Forwarding addresses in Unbound file is working well.
But when i add an entry to test the cache for example :
local-zone: "download.microsoft.com." redirect
local-data: "download.microsoft.com. 600 IN A 1..."
Lancache is doing nothing, there is no logs and i got a request time out from the PC client.
The dns also isn't resolving the download.microsoft.com from my pc.
For the other forwarded sites the dns is resolving.
Thank you for your response.
The text was updated successfully, but these errors were encountered: