Wednesday, May 20, 2009

VMware U4

I just installed Update 4 on my VMware ESX hosts. I tried using Update Manager but that didn't pan out to well..not sure why. Since I was limited on time I went with the old fashioned way and burned the ISO's to disk and booted off of that. The update was easy and straight forward. I was previously on Update 2. I was reading some horror stories about the update but all went as planned.

All my vm's needed to be upgraded to the latest VMware Tools..which required a reboot. That was the only drawback but it was quick, painless and during a maintenance window so no worries.

After the update I did use Update Manager to install several patches after the U4 install.

Good luck if you still haven't updated..make sure to read the release notes.

Remember When

I posted this on a forum..wanted to share. It's important..haha.

I played in a goofy band in 93-94 with some friends right out of high school. We covered a lot of Pearl Jam. At one show we played 'Daughter' but it was learned from a bad tape someone had given us a copy, of a copy..before VS was released. We thought we were the shit..here's a new Pearl Jam for everyone..really. But we fuck'd it up and that was that.
The Internet has brought some great video's to light from all over. Particularly, songs/videos from bootlegs that I would pay $40 for at Record and Tape Traders. Every weekend was a another trip to that place to see what was in. CD's mostly, stuff from Den Haag(sp?)..'Saying No."..."Pearl Jam Covering Themselves"..eventually Record and Tape traders got busted for selling bootlegs and that was it. Near the last thing I probably got was the Atlanta show. The first time I heard that was rushing home from Blockbuster where I worked at the time so I could tape it. A few days later seeing them for the first time in VA.
Anyhow I was browsing threw the hordes of video's on Youtube tonight and I watched a video and more videos of a show that I have on tape that I had always wished I could see in some way from 91-92.
Gone mostly are the days of having something special that you thought no one else had. Remember the days of rooting down a live version of "Angel"?
It's a good thing though right? Now I don't have time to do any of that searching..thankfully it's a bit easier and with a wife and three kids now..oh and a friggin dog..time flies. My love for Pearl Jam reminds me of how old I am.
I don't know if there was any point to this but I guess if your a bit over thirty then you can relate to some of this. Just wanted to give everyone a group "wow".. We've made it this far.

Pearl Jam on "The Tonight Show"

From PearlJam.COM

"Pearl Jam is scheduled to appear as the inaugural musical guest for the June 1, 2009 premiere of “The Tonight Show With Conan O’Brien.” The band will perform songs from their upcoming studio album.

Conan O'Brien, the dominant late-night host at 12:35 a.m. (ET) for the past 14 seasons, will succeed Jay Leno as host of the preeminent series on late-night television, NBC's "The Tonight Show," on June 1, 2009.

Please check local listings for air details."

Just Got Glasses

So I just glasses. After a delayed response of finally acknowledging the fact..my eyes are bad.

This started with me getting an eye exam after I noticed pain in my left eye which felt like a severe headache in my eye. A visit to the eye doctor turned into learning I had Iritis. After some eye steroids/drops the Iritis cleared up and it was back for a normal exam. So now the doctor tells me I have a stigmata..I mean, a astigmatism. ; ) Next stop, LensCrafters.

I tried on about 100 different pairs of glasses and my wife and I finally agreed on a pair that we both liked. I told her she had to come with me since she's the one that has to look at me all the time. Although the doctor told me I just needed to wear them while driving or at a football game etc..I've decided to wear them to work or anytime I'm sitting behind a screen. Contacts were out of the question..I did a brief stint with those..not my thing.

WOW...I can see. It's like I've been living with blinders on the past several years. Unfriggin-believable. My ride to work the other day was as if I'd never driven down Rt 3. Everyone got better looking (ugh, some got worse)and my Call of Duty play may even pick up a bit.

My daughter immediately called me a nerd..four eyes, co-workers think I look intelligent and my wife thinks I'm cute. Finally. I'm just glad my HD looks a lot better now.

Windows File Sharing

I thought this was a good article. All Windows Admins should read this.

http://www.lockergnome.com/it/2005/04/13/windows-file-sharing-facing-the-mystery/

For one reason or another, there is quite a bit of confusion surrounding the technologies that allow File Sharing to take place on a Windows machine. The hodgepodge of terms ranging from NetBIOS, NBT, and SMB serve to confuse not only junior admins, but many more experienced professionals, as well. We’ve all been there when a newcomer to IT has asked difficult questions like, “If I disable x, but leave y, will I still be able to do z?” Most times the professional being asked will try and either change the subject or exit the room as quickly as possible so as to avoid showing their ignorance.

Of course, nearly everyone is familiar with one main concept - the well-worn and widely known view that Windows file sharing services are potentially very dangerous. Steve Gibson and his Web site can be credited mostly for this becoming largely common knowledge. Unfortunately, however, the fact that “it’s bad” is about the extent of most people’s knowledge of the subject. As a friendly test, see if you know the answers to the questions below:

* What’s the difference between using Windows 9x and Windows 2000/XP file sharing?

* Which port(s) handle(s) file transfers on Windows 2000/XP systems?

* Does Windows XP use NetBIOS to transfer files?
* If you disable NetBIOS over TCP/IP on a 2000/XP box, can people still connect to your shares?

* What happens if you block access to port TCP/139 on an XP machine?

These should be simple questions for anyone who deals with Windows in an administrator role, but unfortunately they are not. In fact, I’d be willing to bet that less than a quarter of Windows admins can confidently answer all five questions. In this short article, I intend to get readers up to speed on the basics of this highly critical area of knowledge. Often times, knowing the how and why makes all the difference when it comes to making sound security decisions.

Windows 9x - The Old Way
As with many disciplines, the best way to start is with a bit of history. Before going into how file sharing is handled on the current generation of Windows operating systems, let’s take a look at how it was handled previously.

NetBIOS
The beginning starts with a protocol called NetBIOS. Originally pushed by IBM, it was put together for the purpose of sharing information between a very limited number of machines on a LAN. Early on, NetBIOS ran on a number of protocols, to include DECnet, and it’s important to note that it was not designed to scale to large organizations. Unfortunately, once Microsoft released its products based on it, and computers became a crucial part of the business world, NetBIOS became the backbone of file sharing on business networks everywhere.

In Windows 9x (Windows 95, 98, and ME), the primary ports for sharing resources were 135, 137, 138, and 139. Below we take a look at each:

* TCP/135 - RPC: This port is potentially quite dangerous due to what “RPC” actually stands for. Remote Procedure Calls are requests from one machine to another for service. The RPC service acts as something of a facilitator, or go-between, between the client making the request and the machine being asked for service, i.e. a request is made to this “end-point mapper service” and then a port is allocated dynamically to the service being requested. This is similar to the RPC functionality found in the Unix world, and although it’s not technically a “file sharing” port, it ties heavily into Windows networking in general.

* UDP/137 - NetBIOS Name Service: This port is used to attain name resolution for NetBIOS. Think of it as NetBIOS’s version of DNS or ARP. It’s simply a way to use something you have, make a query, and get something you want in return. For NetBIOS it’s from a NetBIOS name to an IP, for DNS it’s a DNS name to IP, and for ARP it’s from IP to hardware address.

* UDP/138 - NetBIOS Datagram Service: This port primarily allows the SMB browser service to populate the browse lists seen when using “Network Neighborhood”.

* TCP/139 - NetBIOS Session Service: This is perhaps the most known Windows port of all, as it is used to transfer files over TCP. This is both the port that NULL Sessions are established over and the port that file and printer sharing takes place on. If you are considering restricting access to ports on your Windows machine, this one needs to be on the top of the list.

NetBIOS was benign enough initially because they were bound to a protocol called Netbeui. NetBIOS was somewhat harmless when it ran over Netbeui because the protocol is limited to local networks. It couldn’t cross routers, and therefore couldn’t cross the Internet. For this reason, any problems associated with file sharing while running Netbeui were relatively limited.

NetBIOS over TCP/IP
This all changed when Microsoft started binding NetBIOS to TCP/IP - a system referred to as NBT. What this did was take a potentially dangerous but hobbled system (NetBIOS) and gave it wings. Now, instead of just having to worry about someone in the next cube gaining information about your system and/or connecting to your file shares, you now have to worry about someone in New Jersey, Russia, or China doing the same thing.

Essentially, if the interface that connected you to the Internet had both TCP/IP and File and Print sharing on it, and you didn’t have a decent password configured, you were in line to get scanned and pillaged at will by anyone on the Internet.

File and Print Sharing
Okay, so what’s File and Print Sharing? Where does that fit in? Good question. File and Print Sharing is little more than a service that enables file/folder and print shares to be made available to clients. It’s that simple. Think of it as a daemon that runs on a machine - similar to a web or mail server.

Remember, daemons aren’t useful unless requests can make it to them. That’s where SMB over TCP (or in the 9x world - NetBIOS over Netbeui or TCP/IP) come in. They are the means of getting requests over the network to the “server” machine, i.e. the box that has a folder or a printer shared out.

Basically, two things are needed in order for there to be a successful file transfer, 1) a transport allowing a client to make it to the machine in question, and 2) the machine to be listening for requests while it has shares available. It’s important to understand these two pieces of the puzzle and where each technology fits.

Countermeasures
Steve Gibson’s site, while quite informative, sensationalized the risk to some degree. All one needed to do to keep from sharing files over the Internet is unbind File and Print sharing from the TCP/IP protocol within network properties for the adapter that faces the outside. This simple step eliminates the threat of people trivially mapping your shared drives from across the world.

Also, the bits about disabling the Client For Microsoft Networks and such were simply over the top. Aptly enough, the “Client For Microsoft Networks” is nothing more than a client (hence the name). Disabling it had nothing to do with whether or not the server portion of File Sharing (File and Print Sharing) was enabled.

Windows 2000/XP - The New Way
For most of us, Windows 9x is thankfully ancient history. The vast majority of us deal with Windows 2000 and XP these days, and the way these versions of Windows handle File Sharing is significantly different.

First off, the big difference that many notice is the use of port TCP/445 vs. the ports in the 130 range. This change was part of a new Microsoft paradigm designed to eliminate the dependency on NetBIOS. In fact, one can completely disable NetBIOS over TCP/IP on a Windows 2000/XP machine since these new operating systems (via TCP/445) have SMB riding directly on top of TCP rather than on NetBIOS. Microsoft calls this the “direct hosting” of SMB. This enhancement allowed for a few benefits, such as less clutter in the protocol stack, a lack of NetBIOS broadcasts, and the ability standardize on DNS entirely for name resolution.

As can be expected, the functions taken care of by ports 137-139 when NetBIOS was used are now taken care of by the single port 445. This means that this port needs to be given the same attention that the NetBIOS ports were given in the past.

Old vs. New
When connecting to a Windows 2000/XP machine that has both NetBIOS over TCP and direct hosting enabled (from a client machine that’s also using them), both types of connectivity will be attempted. The service responding first will be accepted and continued, i.e. if NetBIOS responds first then an RST will be sent to TCP/445, and vice versa.

Summary
Okay, now that we’ve covered a few different topics here, let’s touch on some key points:

* File and Print Sharing is a completely different beast than NetBIOS or NetBIOS over TCP/IP. To be clear, you can disable the latter and still use the former if you have it bound to a protocol such as Netbeui. If you disable File and Print Sharing, however, then it doesn’t matter what transport gets you to the box, you still won’t be able to access shares on it.

* Windows 9x used NetBIOS (via ports 137, 138, and 139) to resolve resource names and facilitate connecting to them - whether that was via the local network only (Netbeui) or WAN-wide (NBT).

* Windows 2000/XP supports the NetBIOS system as well, but prefers the new method which uses TCP/445 to implement SMB directly over TCP. You can disable NBT for these platforms and still maintain virtually identical functionality using this “direct hosting” paradigm.

* One of the major advantages of going to the “direct
hosting” system instead of NetBIOS is the standardization on DNS for name resolution. Resolving resource names using NetBIOS names was chatty (broadcast-based) and lacked scalability. DNS is a universally accepted, hierarchical standard that scales all the way to networks the size of the Internet.

* Due to the consolidation of many of the NetBIOS functions into a single port (445), this port is critical to many Windows 2000/XP operations. It’s imperative that access to this port is limited to trusted hosts and/or networks.

Well, that about sums it up. The goal here was to either refresh or bring up to speed anyone who deals with Windows networking on a daily basis. In the event that I’ve made an error, or you’d just like to comment, please feel free to contact me at daniel@dmiessler.com.

[Daniel Miessler, CISSP, GSEC]

Monday, May 11, 2009

For Sale

WS-C4506 Package

(1) Cisco 4006 (WS-4006) Chassis
(1) WS-X4013 Sup Engine
(5) WS-X4148-RJ Switch Blades

(4) Cisco Power Patch Panels (WS-PWR-Panel) -96 Ports per panel