Skip to content
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

Problems with misconfigured Windows OS #695

Closed
maticb opened this issue Jun 28, 2018 · 11 comments
Closed

Problems with misconfigured Windows OS #695

maticb opened this issue Jun 28, 2018 · 11 comments

Comments

@maticb
Copy link

maticb commented Jun 28, 2018

This is more of a warning than an issue:
I have been using this file to block ads for a while now. But some time ago I have moved to a new apartment, where I had a different provider, I also had to downgrade from Fiber to Coax (Provider telemach. in Slovenia).

I've of course brought over my computer from before, and had constant issues with DNS timeouts on the network, all the clients were having trouble connecting to websites, because they didn't receive the DNS query.

Now, because I don't want to write down the whole story of 6 months of annoying the ISP and calling them on a daily basis (even paying 50% off for a couple months). It ended up being this file. I have no idea which program, perhaps even somewhere in windows core (I have a good antivirus, so this was not malicious), and my Windows install is was CLEAN, only installing Firefox and some development tools.

After removing the entries in my hosts file, network problems went away entirely.

I spent 6 months being annoyed by this, the thought had never crossed my mind, until I reinstalled windows and traced back the start time of my issues back to the adding of hosts entires in this file.

PLEASE, add a warning. I have literally spent hours and hours arguing with my roommates and debugging the network, all because of this file.

I still have no idea what exactly is causing this issue, if it's the network provider doing something funky with the DNS, or perhaps even my router.

I only know that 110% at the exact moment of removing hosts entries everything works.

My best guess is that there is some app, somewhere deep inside the bowels of my system, that somehow unintentionally pulled of a DOS (on my own network)

@StevenBlack
Copy link
Owner

Hi Maticb, thank you for your observations.

Can you please clarify, what makes you conclude this is a DDOS attack?

DDOS attacks target servers.

Second question: which DNS servers were you using? This matters too.

@maticb
Copy link
Author

maticb commented Jun 28, 2018

(Sorry, let's replace DDOS with DOS, which makes more sense, since it wasn't distributed)

I don't know what it was I just assumed DOS, I tried the default DNS (ISP's), and also the google DNS (8.8.8.8 and 8.8.4.4). Because I have figured out months ago, that there was something wrong with the DNS requests. If you had, for example, facebook open, you could use the chat, but couldn't open any other page e.g. youtube.com, because it couldn't resolve the IP.

So last week, I installed this hosts file again (after having a fresh windows install for 2 months, and no connection issues). The issues started to gradually come back, and because this time I knew the only change I did last week on my computer was this file, and wireshark returned a bunch of DNS packets, returning something 0.0.0.0-in-addr.arpa (I do not have the logs sadly, but I know it was this 100%), which AFAIK has something to do with a reverse DNS?

I am really lost here, but as I said, everything works perfectly normal from the exact moment of removing the hosts file.

I also noticed high CPU usage of the windows "DNS Client resolver".

EDIT: Actually perhaps I worded this badly, or anyway, basically just thinking out loud here, because this is completely baffling me.

What I meant by DOS, is my PC sending a lot of DNS requests, until the DNS servers "grew tired" of me and started blocking me in the firewall? (hence DOS <- meaning I "unintentionally" triggered it)?

@funilrys
Copy link
Contributor

This reminds me #411 (Awesome discussion) and my comment #411 (comment) 😄

@StevenBlack
Copy link
Owner

@maticb to claify, this isn't DOS at all. It's just not true that your hosts file somehow, magically, triggers a denial of service attack, distributed or not.

Just so we're clear.

@maticb
Copy link
Author

maticb commented Jun 28, 2018

@StevenBlack,yup I am pretty sure it cant actually trigger a large scale DDOS, feel free to rename the issue to something else.
But tbh, if my pc, the only one on the network using the modified hosts file, caused 3 of my roommates to not be able to sucessfully reaolve IPs, is that not somehow the definition of a denial of service? This was perhaps caused by my PC, but caused issues in the entire network.
@funilrys, nice, will read through it, really wanna figure this one out, just out of curiosity.

@maticb maticb changed the title This file can basically (DNS)DDOS your entire network Using this file can basically clog up your entire network Jun 28, 2018
@StevenBlack
Copy link
Owner

@maticb or... you can rename the issue as it becomes more clear? When you've discovered the root problem, you can close the issue too, leaving a summary.

@maticb
Copy link
Author

maticb commented Jun 28, 2018

@StevenBlack , yes, sorry, just realized I can rename issues myself :)

I will try to find out as much as I can, and report back.

@StevenBlack StevenBlack changed the title Using this file can basically clog up your entire network Problems with misconfigured Windows OS Jun 28, 2018
@StevenBlack
Copy link
Owner

@maticb there, I fixed it for you. 😄

@rautamiekka
Copy link

I'm extremely baffled by 1 PC that's seemingly not used as connection sharer makes other PCs lose connectivity through its hosts file.

@maticb
Copy link
Author

maticb commented Jun 28, 2018

@StevenBlack :D

@rautamiekka So am I. The issue #411 that was linked before, actually kind of clarified things.
I do believe that the windows was updating it's DNS cache, and sent so many requests which cause either the ISP itself, the DNS servers, or the router to start blocking requests from our network. Which meant that "legit" requests from my web browsing, and the other network users, were also being blocked.

I noticed complete or partial blank outs of DNS resolving, on a consistent schedule, which seems to prove that it was the windows's DNS cache running.

Now to clarify, also considering how @StevenBlack renamed the issue (I know you might be a tad sarcastic there too :D ), this is not something that I configured. While I am a full-time developer, I only know the very basics of networking and stuff like DNS, which is why I can assure you I never fiddled with anything, aside from using these entries in the hosts file.

Taking that into account, and considering I am not the only one reporting this, it would seem fair to give Windows users a warning, that this might cause serious issues in network connectivity, no?

We've had technicians from the ISP here, their call center technicians just said "Yes, we can see some fluctuations in the (coax) connection". They replaced our router, and gave us 3 months of -50% on the monthly payments because they couldn't find the issue.

My theory here being, that in my old place, we had 100/10 fiber, which had the capacity to handle all my DNS updates, while the coax 150/4 connection in conjunction with some network settings, caused timeouts and/or firewall blockades somewhere.

@StevenBlack
Copy link
Owner

Closing this; not our issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants