Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Microsoft Crippling VISTA,2008 and 7

Name: APK 2009-03-01 14:49

I don't & mainly because of these 2 security features Microsoft has PULLED (port filtering) &/or crippled (for efficiency in HOSTS files) shouldn't be & yet, are.

----

1.) The removal of being able to use 0 as a blocking IP address in a HOSTS file

(vs. 0.0.0.0 or 127.0.0.1, which are bigger, slower on load into the local DNS Cache (as well as slower flushes via ipconfig /flushdns) & also occupy more RAM once loaded, for NO GOOD REASON - 0 blocks as well as the other 2 do, & is smaller + faster!)

In this case, this happened on 12/09/2008 Microsoft "Patch Tuesday" updates, it wasn't LIKE that before then!

E.G.-> Here, using 0 as my blocking IP address in a FULLY normalized (meaning no repeated entries) HOSTS file with nearly 650,000 bad sites blocked in it, I get a 14++mb sized HOSTS file... using 0.0.0.0 it shoots up to 18++mb in size (& even worse using 127.0.0.1, to around the tune of 24++mb in size)... Here? This is SENSELESS bloat creation as the result!

&

2.) The removal of IP Port Filtering GUI controls for it via Local Network Connections properties "ADVANCED" section

(This is up there w/ when MS removed the GUI checkbox after NT 4.0 for IP Forwarding, only, this time, the difference is (and, it's a PAIN) is that it is NOT a single 1 line entry to hack via regedit.exe, but FAR MORE COMPLEX to do by hand)... Port Filtering is a USEFUL & POWERFUL security (& to a degree, speed also) enhancing feature!

Afaik, on THIS case (vs. #1 above)? It has always been that way in VISTA &/or Windows Server 2008... & not just the result of a Patch Tuesday modification.

----

QUESTION: Do ANY of you folks have an answer, a GOOD SOLID TECHNICAL answer, as to WHY these cripplings have been implemented in VISTA, Server 2008, & most likely their descendant, in Windows 7?

See - I posted on Microsoft/Mr. Sinofsky's (?) blog -> http://blogs.msdn.com/e7/archive/2009/02/25/feedback-and-engineering-windows-7.aspx

AND, I have YET to get a SOLID TECHNICAL ANSWER on those things going on in VISTA, Server 2008, & probably Windows 7 as well, that justify doing so...

(They're things I'd really LIKE to get an answer to, as to WHY Microsoft has done the 2 things in my list above, to the above noted versions of Windows)

APK

P.S.=> I found the (imo) rather flimsy reasoning behind WHY the PORT FILTERING gui controls were allegedly removed in Windows VISTA, Server 2008, & Windows 7, after consulting with Mr. Mitch Tulloch ( http://www.windowsnetworking.com/Mitch_Tulloch/ ) ... here tis:

From Chapter 27 of the Vista Resource Kit that explains the rationale for removing the TCP/IP Filtering UI:


----

"Windows XP Service Pack 2 actually has three different firewalling (or network traffic filtering) technologies that you can separately configure, and which have zero
interaction with each other:

Windows Firewall that was first introduced in Service Pack 2

TCP/IP Filtering, which is accessed from the Options tab of the Advanced
TCP/IP Properties sheet for the network connection

IPsec rules and filters, which you can create using the IPsec Security
Policy Management MMC snap-in

On top of this confusion, Windows Server 2003 Service Pack 1 had a fourth network traffic filtering technology that you could use: the Routing and Remote Access Service(RRAS), which supported basic firewall and packet filteringthe problem, of course, is that when more than one of these firewalls is configured on a computer, one firewall can block traffic that another allows"

----

Lame reasoning imo!

I say this, because it is TRIVIAL to create exceptions rules in most any software (or hardware based) firewall generally, & to match that in Port Filtering is quite simple also (even easier imo, provided you know what port's involved, & that's what the IANA lists are for, after all).

AND

E.G.-> Once a malware gets inside? One of the FIRST things it does, is disable a software firewall... & with NO OTHER BARRIERS IN THE WAY, such as PORT FILTERING RULES (which because they work @ an unrelated level (drivers-wise), in the IP stack, makes it an actual advantage because it cannot be 'taken out' from a single point of attack (though, perhaps MS is saying a single point of control is the advantage in their method, it still lends itself to being taken down from a single place too by the same token - imo? A "catch-22" situation, quite possibly & MOST likely))?

I.E.-> It weakens the concept of "Layered Security"... especially vs. say, recent attacks on services like the RPC bug in the SERVER service, for example... no more firewall (or other layers like Port Filtering) in the way, once said software firewall is down (since it works on a diff. driver level than Port Filters do)!

P.S.S.=> Mr. Tulloch ( http://www.windowsnetworking.com/Mitch_Tulloch/ ) & I are currently in progress searching for the reasoning behind the removal of 0 as a valid IP blocking address in a HOSTS file, but even HE was unaware of WHY this was done... but, with any luck? We're going to find out - &, I'll let you all know, here, if the thread isn't dead by then... apk

Name: APK 2009-03-01 18:25

Got a PhD in psychiatry there to be dispensing such advice? Of course not.

(AND, You're off topic as well... grow up!)

APK

P.S.=> All I would like is answer to why HOSTS files being able to use a superior 0 blocking address (smaller & faster than 0.0.0.0 or 127.0.0.1) has been removed from VISTA, Windows Server 2008, & Windows 7 - AND - to discuss views on why PORT FILTERING has had its GUI front for it removed from they as well, because it works @ a diff. level of the IP stack drivers-wise than Software Firewalls or IPSec do, it aids layered security (because if one gets knocked down, the others working @ diff. levels are still in the way - just like using deadbolts + chainlocks + door handle locks & alarms to secure things like homes)... no, instead?

What I am getting, for asking a valid set of questions?

I am not attacking people here first (only defending myself, show us otherwise where I 'started up' with others in this thread, ok?), but you are, in myself right now... apk

Name: Anonymous 2009-03-01 19:52

smaller & faster? I DARE SAY ~
How can you know? wouldn't all ip adresses be represented by a single int32?

so -> maybe it has something to do with IPv6?

Name: Anonymous 2009-03-01 20:35

is dis sum REAL APK?

using hosts file is stupid, just drop packet at transport layer

Name: Anonymous 2009-03-01 20:37

ITT 10/10

Name: Anonymous 2009-03-01 21:03

You're a stupid fucker. The DNS Client service reads the hosts file in once when it starts and only reads it in again on the rare occurrence that it changes. Using the DNSAPI library, it reads in each line, tokenizes it and parses it - normalizing "0" to be equivalent to 0.0.0.0. This is then stored in that normalized form in the DNS cache.

Therefore, the only possible saving of speed would be in the initial loading of the hosts file. And parsing "0" versus "0.0.0.0" is such an insignificant difference it's not even worth talking about.

In conclusion: shut the fuck up you clueless moron.

Name: Anonymous 2009-03-01 21:10

shut the fuck up you clueless moron

You're ad hominem don't refute the COLOSSAL WASTE OF HARD DRIVE SPACE REAL ESTATE

________________
There are 10 kinds of people in the world. Those who understand binary... and those who don't! ;)

Name: Anonymous 2009-03-01 21:20

I'm a TANK!
¶▅c●▄███████||▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅||█~ ~:~:~ :~ : ████►
▄██████████████████▅▄▃▂
███████████████████████►
◥☼▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙☼◤

Name: Anonymous 2009-03-01 21:23

The name's Hominem. Ad Hominem. And I refute everything you say.

Name: Anonymous 2009-03-01 21:47



          ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
          ( ´∀`) < I'm a tablecat
        /    |    \________
       /       .|     
       / "⌒ヽ |.イ |
   __ |   .ノ | || |__
  .    ノく__つ∪∪   \
   _((_________\
    ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
   ___________| |
    ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |

Name: Anonymous 2009-03-01 23:09

>>40
I think this is some guy mimicking APK and doing it perfectly. Because not even APK would give a reply like >>36, would he?

Name: Anonymous 2009-03-01 23:14

                    ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
                    ( ´∀`) < How do I BBCode?
                  /    |    \___________
                 /       .|
                 / "⌒ヽ |.イ |
             __ |   .ノ | || |__
            .    ノく__つ∪∪   \
             _((_________\
              ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
             ___________| |
              ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |

Name: APK 2009-03-01 23:39

>>42
using hosts file is stupid, just drop packet at transport layer
Why do you feel that way? The host file's excellent, easy to use too (even IF it is a simple text file)... it is as easy to edit (1 click & enter 1 - rest is automated) as I noted here repeatedly now.

I must ask (again): HAVE YOU EVER USED IT?

GIVE ME SPECIFICS PLEASE - nobody seems to want to TOUCH that here, or elsewhere, when I ask it... why is that? IF I am "wrong", I'll admit it, & amend my posts is all... the idea, is to help others. I asked for critique (which 1oz is worth 1,000 lbs. of praise imo)... but, please - give me SPECIFICS! Thanks

I do BOTH for a living professionally (I am one of those "ancient guys" I guess, & have had a pretty varied career over 15 yrs. as a pro in this field (probably 23 yrs. total time though) is why, & am classically educated (degrees) in this field as well as being featured around 10 times in publication in it)...

apk

Name: Anonymous 2009-03-01 23:53

>>52

because it's easier to automate than editing the hosts file, but then again you could simply write a script to add entry to the file, anyways my grudge with the hosts file is that it's just a cheap ip substitution when the DNS request is passed with that particular address

i.e. the entry (0 www.this.com) will not block a.this.com

Name: Anonymous 2009-03-02 0:12

Anonymous -4 points 3 hours ago [-]

>>45
Upmodded for someone actually knowing what they're talking about.

perma-link report reply

Name: Anonymous 2009-03-02 8:55

>>40
Actually that makes me feel kind of bad about trolling him. Sounds too much like a legit aspie.

Name: Anonymous 2009-03-02 13:39

>>45

Downmodded for unnecessary rudeness.

Name: Anonymous 2009-03-02 13:41

>>56
-1, Offtopic

Name: Anonymous 2009-03-02 13:43

>>45
I give this post +1 Susspoint for unnecessary rudeness

Name: Anonymous 2009-03-02 16:11

>>58
How many Susspoints do I need to collect before I can trade them in for satori?
I currently have 4.

Name: Anonymous 2009-03-02 17:57

>>59
Mu

Name: Anonymous 2009-03-02 19:15

E.G.-> Here, using 0 as my blocking IP address in a FULLY normalized (meaning no repeated entries) HOSTS file with nearly 650,000 bad sites blocked in it, I get a 14++mb sized HOSTS file... using 0.0.0.0 it shoots up to 18++mb in size (& even worse using 127.0.0.1, to around the tune of 24++mb in size)... Here? This is SENSELESS bloat creation as the result!

This guy has to be trolling us, hard. I created a sample hosts file with this many entries in, and it took almost 45 minutes for XP's DNS Client service to load it into memory. If I turned the DNS Client service off, it added approximately three seconds to every name lookup as the DNS API scanned the file.

Name: FrozenVoid 2009-03-03 1:42

>>61
And thats why DNS client is never enabled on my comp.


_________________________________________
...what we call education and culture is for the most part nothing but the substitution of reading for experience, of literature for life, of the obsolete fictitious for the contemporary real...

Name: Anonymous 2009-03-03 2:54

>>62
Then you're doing it wrong.

Name: FrozenVoid 2009-03-03 3:23

>>63 I prefer to DNS to be managed by DNS servers, not XP.


_______________________________
Oh no! A young masked interrupt, holding up the bus.

Name: Anonymous 2009-03-03 3:27

>>64
And thats why DNS client is never enabled on my comp.

I prefer to DNS to be managed by DNS servers, not XP.
it seems that someone here doesn't understand the basic client/server model

Name: FrozenVoid 2009-03-03 3:33

>>65 The model is subverted when you add a proxy layer to manage DNS requests.
I don't need this 'cache' and neither i need Active Directory.

________________________________________________
When you look at the whole life of the planet, we - you know, man - has only been around for a few blinks of an eye. So if the infection wipes us all out... that is a return to normality.

Name: Anonymous 2009-03-03 5:08

>>63,65
Happy? You talked to .
thinks that getting replies telling him that he is wrong is the ultimate form of trolling. Nice job supporting there, anon

Name: Anonymous 2009-03-03 11:47

>>67
your

Name: Anonymous 2009-03-03 12:19

This guy has the most atrocious grammar I've ever seen. Reformat my brain plz.

Name: Anonymous 2009-03-03 12:49

>>68
What about my ?

Name: Anonymous 2009-03-03 14:22

>>70
Your  is gay.

Name: Anonymous 2009-03-03 15:34

>>71
What is an "is gay"?

Name: Anonymous 2009-03-03 16:42

This is what I emailled him. I think IHBT for sure, but I don't care as it was somewhat educational and interesting working this out:

Are you really serious about having 650 thousand lines in your hosts file? I can't imagine why you'd need that many. It also has a crippling effect on one's computer.

To test this, I created a sample copy of a hosts file with that many entries, using the "0" shorthand for IP address and a randomized hostname of average 32 characters. Total size of this file is 22855 kilobytes, and after an hour the DNS cache had only loaded a third of it in. This is primarily due to the choice of algorithm used by the DNS cache service - it wasn't designed for tens of thousands of hosts file entries to be stored, so uses a rather inefficient method of growing the space used to store that involves copying huge swathes of data around for each new entry. It also blocked any name lookups while loading the file.

So instead of this, I tried with only 65k entries, and made three copies of this file. Each had an identical list of hostnames, but used "0", "0.0.0.0" and "127.0.0.1" respectively. The DNS cache now took 1 minute 55 seconds to load each one; the choice of IP address style didn't make any difference to the loading time as the bulk of the processing was in inserting new entries as described in the paragraph above. Name resolution was at normal speed after that, though. Searching in-cache - even for such a large set of data - added no discernible penalty.

I decided to try with the DNS cache disabled. This isn't a good idea, as it forces uncached name resolution to be done for every single lookup. This is indeed what it did, and the original 650,000 entry hosts files added around 3 seconds onto every single name lookup, the amalgamated effect of which slowed general Internet access down considerably. Unlike the DNS cache loading, this time there was a slight difference in loading times between the different hosts files - this was expected, as it was reading the entire file each time so that became the bottleneck.

Finally, to address your last question: every IPv4 address is sorted in the cache using the same size of four bytes. e.g. both "0" and "0.0.0.0" become 00 00 00 00, both "127.1" and "127.0.0.1" become 7F 00 00 01, and so on. This is consistent with the binary format used in the sockets API.

In conclusion, using the hosts file to store tens of thousands of entries has a negative effect on the performance of Windows' name resolution. You should really consider another option to filter all those hostnames.

Regards
    

----- Original Message -----
From: "Alexander Peter Kowalski" <apk4776239@hotmail.com>;
To: "            " <        @     .   >
Sent: Monday, March 02, 2009 1:07 PM
Subject: Re: hosts file APK REPLY #1, Thanks + IMPORTANT QUESTION... apk

Thanks,

Still, it does adversely affect speed, nevertheless... you stated:

"And parsing "0" versus "0.0.0.0" is such an insignificant difference it's not even worth talking about. Even on thousands of entries any speed impact would bebarely measurable and certainly not noticeable."

BUT, it is quite noticeable... humanly noticeable, & here is why/how/when etc.:

There IS a decent gain, using PLAIN 0 vs. 0.0.0.0 or 127.0.0.1 when you have as many lines in your HOSTS file as I do @ 650,000++ of them!

Simply because an extra 5 bytes per line using 0.0.0.0 or an extra 7 bytes using 127.0.0.1, vs plain 0, begins to show its face & compounds itself further the more lines you HOSTS file has).

That's where the problem is really. You noted it as did I below in your reply, No questions asked!

Doing the math alone (theory) shows that, &, as you noted, the loading speed of the IP stack hauling the HOSTS file in shows it, & also via unloading/flushing the local DNS cache via ipconfig /flushdns...

This simple test can illustrate it for you, as a test if you wish in fact.

I am more concerned on memory usage, & it appears that the use of IPConfig /flushdns increases using larger Blocking IP Addresses than 0 (& those of course being 0.0.0.0 &/or 127.0.0.1) & your explanation of this took care of that for me (I knew that HOSTS files did not load repeated entries upon load into the local DNS cache, but, not that 0 converted to 0.0.0.0).

QUESTION:  What about 127.0.0.1 vs. 0.0.0.0?

127.0.0.1 doesn't resolve to 0.0.0.0, so it IS bigger in RAM once the HOSTS is loaded into a local DNS cache though, where 0 is same as 0.0.0.0 once loaded into the local DNS cache, correct??

Thanks for the answer...

APK



----- Original Message -----
From: "            " <        @     .   >
To: "Alexander Peter Kowalski" <apk4776239@hotmail.com>;
Sent: Sunday, March 01, 2009 9:20 PM
Subject: hosts file

Hello,

In regards to your recent postings about how integer IP addresses such as "0" no longer work in the hosts file - the fact of the matter is that the difference this makes to the speed of one's system is insignificant, so there is no reason to just change the hosts file to use "0.0.0.0" instead.

The reason is this: the DNS Client service - assuming it is running, which it should be - reads the hosts file in once when it starts and only reads it in again on the rare occurrence that it changes. Using the DNSAPI library, it reads in each line, tokenizes it and parses it. Integers are converted during the parsing stage to their equivalent IP addresses, e.g. "0" becomes 0.0.0.0. These host to address mappings are then stored in their normalized (i.e. binary) form in the DNS cache.

Therefore, the only possible saving of speed would be in the initial loading of the hosts file, which happens rarely. And parsing "0" versus "0.0.0.0" is such an insignificant difference it's not even worth talking about. Even  on thousands of entries any speed impact would be barely measurable and certainly not noticeable.

The only saving of space would be in the hosts file itself - again, a negligible difference. Addresses stored as either "0" or "0.0.0.0" in the hosts file on disk are stored precisely the same in memory in the DNS cache so there is no space difference at all here.

Hope this explanation helps put your complaint into perspective.

Best regards,
    

Name: Anonymous 2009-03-03 16:46

>>74
YHBTE

Name: Anonymous 2009-03-03 16:49

YHBT

Name: Anonymous 2009-03-03 17:20

>>73
0/10

Name: Anonymous 2009-03-03 17:41

Name: Anonymous 2009-03-03 19:02

>>74
Just got this reply. I seriously wtf'd reading it:

Stop the DNS Client service, no more problem.  The evolution of my HOSTS file was the result of 12++ yrs. of filling it is why it is so big. First, I started out using it only for speed, in 1 of 2 means possible: 1st being blocking adbanners (URL equation to 0, 0.0.0.0, or 127.0.0.1), & the 2nd being hardcode URL-to-IP Address resolutions (which does have the occasional downside of changing by various websites when they change hosting providers, but most let you know that is going to happen ahead of time or the date when it will so you can account for it, reping them to get the NEW IP Addy & done). This is literally easily seen in the speed increase on the ping too, as that takes 30-60ms typically from a remote DNS Server. From a HOSTS file on disk by way of comparison? 0 ms, & literally, a 30-60x order of magnitude increase in speed thus. Do the math, it's easily apparent.

(emphasis mine)

Name: Anonymous 2009-03-04 0:32

>>79
emphasis mine is stepped on and explodes.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List