Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

7.29.2008

tech/work { spoofing hostids in solaris 10 native zones

So at work we have an application suite that uses a licensing tool that is bound to specific hostids. This can pose a problem as in Solaris 10, the non-global zones inherit the hostid of the global (or source) zone, meaning you could only have one copy of this software running at a time, not cool if you want to leverage zones.

With the new Solaris 8 and 9 branded zones, you can embed a string in the XML config file like this:


add attr
set name=hostid
set type=string
set value=80001234
end


and it will reassign the hostid. This was put in place so you could pick up and move Solaris 8/9 install and move them to within a zone. Good idea, useful feature...only it doesn't work for native Solaris 10 zones. I didn't read the docs fully and was dismayed as I thought this was part of Solaris 10 Update 4. It isn't. I then went on a two day search for a solution. The first day was pursuing official SUN channels. This only resulted in a response that a RFE (request for enhancement) has been made and it will appear in an update of Solaris 10 in the future. Not good for my more immediate needs.

Day two was spent with the swiss army knife for sys admins, google. I really only spent two hours researching it but in that time I found a few things. One is that this is not a new need, people have been looking to do this since 2005 when Solaris 10 was released. Secondly there are some easy ways to do it and some less than ideal ways to do it. Eventually what helped me solved my problem was this post here (http://tinyurl.com/6fa63z). I tried the compile your own newhostid.so library and it worked, but I had problems with other shared libraries not working, mostly because of the LD_PRELOAD flag needs to have all your system libraries for proper functioning. That page also had a link to someone who put together a dtrace script that let you spoof host ids on the fly. He has a dtrace script called zhostid with the source found here (http://tinyurl.com/62wjq5). This was exactly what I was looking for as it let me add more zones to the list as I built more, could be start/stopped at anytime with seemingly minimal impact on the system. And it works fine in a clustered environment, which is where these zones are running. You just need to put this script into a start script for boot time in both nodes (or as many as you have). Now this is the part I don't like. I generally don't like using nohup for scripts, but for now it was the only way I can get this script to start and background and keep running. I'm researching putting this into SMF if I can.

For now I made a

/etc/init.d/zhostid

start script that just basically called this script and backgrounded via nohup. I then linked the script old school into rc3.d until (if I can) put it into SMF.


cd /etc/rc3.d ; ln -s /etc/init.d/zhostid S99zhostid


Some caveats.

First off this script isn't supported. Its meant for demonstration purposes and the author states this clearly in his comments in the script, and its released under GPL, so make sure to credit it properly if you make changes. SUN generally doesn't support host id spoofing, I guess with the exception of in branded zones, but they also at this time do not provide functionality to easily do this.

Secondly, you are modifying the running system and modifying a system call. Dangers are inherent with procedures like this. But I feel in this instance it is fairly safe and non-destructive. You just need to be aware this could cause some oddities if you're ever troubleshooting.

But it works. And seems to work well for the needs I had.

3.03.2008

tech { My compy died...


So I had to rebuild a new one.

I was never able to fully identify what was wrong with my old computer, but I suspect bad RAM, a failed power converter on the mobo, or a dead proc. The symptoms were that a random, the computer would lock up with a high pitched squeal in the headphones. At first I thought it was some kind of compatibility problem with the new (as of patch 2.3) sound engine in WoW and my Creative X-Fi sound card. But last Wendesday it locked, and in this situation, a reset would usually fix it, but this time, a reset caused the monitor to go into 'No Signal' mode and nothing happened anymore, no HDD spin up, speaker beep or anything. I was crushed. I built the computer back in 2002, it was my companion while I was house bound during my recovery from AML.

Well the computer is dead, long live the computer.

I put together a new system. Here is its specs:

Motherboard: Asus P5E Pro WS; LGA775, 1600/1333MHz FSB, 2xPCI-Ex16 slots, 1 PCI-X slot, 2 PCI slots, I'm an Intel man and after my first Asus mobo a few computers back, I'll be hard pressed to ever switch
Memory: Corsair XMS2 DDR2 800 PC2 6400 4-4-4-12 CAS 2x1GB memory kit (soon to be 4GB)
Processor: Intel Core Duo 3.0GHz 4MB shared L2, E6850 Conroe
Video Card (new motherboard required a new video card): BFG Tech GeForce 8800GTS 512MB 256-bit GDDR3 SLI ready, I went nVidia even though I prefer ATI because this card received good benchmarks and most games now have been optimized for nVidia chipsets (which is sad)
PSU: 500W CoolMax M-500 ATX12V
Soundcard (only piece I carried over from the old system): Creative Soundblaster X-Fi Fatal1ty

The parts arrived last Friday. I was hoping to have the system rebuilt and re-installed before 9pm, in time for our Karazhan raid (which didn't happen because 1/3 the raid never showed up). The brain and CNS transplant went successfully and I was done at 8pm. The WinXP re-install was a pain, but it always is since I refused to go Vista, it mean about 3 hours of WinXP install, SP2 install, and about 900 patch updates. I then installed and updated the mobo, vid card, soundcard, and various drivers. I didn't have to play with the BIOS beyond setting up my boot devices, which is one thing I like about Asus mobos, jumperless, fully customizable settings from the BIOS. The biggest problem I've had was re-installing and re-importing my iTunes library. I install my iTunes onto a separate disk in a non-default location, which makes importing it a pain, but it can be done.

This computer is about 2 generations newer than my old one. I was going to upgrade it sometime this year anyway because graphics technology has moved from AGP to PCI-E, and my ATI X1650 was the last AGP video card I was going to buy.

Performance specs (anecdotal):

World of Warcraft (about the only game I play routinely):
Resolution (old/new): 1680x1050/1680x1050
Settings (old/new): Minimum Vid settings + high texture detail/Full Vid settings, all sliders maxed
Average FPS (old/new): 30/170
Average Latency (old/new): 120ms/120ms

Yeah, I'm averaging 120-170fps in most of the world. In Shattrath City, the main hub, most populated, worst performing area of the game for everyone, I used to get 7-17fps around the central area and banks, with my new system, the lowest I've seen was 70fps in the Scryer's bank. In instances I'm doing about 90-120fps. In battlegrounds (also low performing due constant updates from server) I'm averaging 80fps. It feels like a whole new game with the level of detail I've never played with before.

Sins of Solar Empire
Resolution: 1680x1050 (both old and new)
Settings (old/new): Minimum + ship detail = high/Full, all settings max
Average FPS: unknown/unknown, the game has no easy FPS meter

This game plays smooth as silk on maximum detail and environment settings. I even created a custom map with 500 planets, and there was no slow down or lag. I can now have the detail turned up to the level where planets are richly detailed as are the ships instead of vague geometric blobs with different colors.

This computer build should last me for years to come. I generally get 5 years or so of life out my home built computers and I picked this one so that it would last me another 5 years.

I <3 my new compy and I <3 Nerdwife who puts up with my tech addiction and understood my need to build a new computer.

2.06.2008

odd/tech { International Underwater Cables being Cut

Just caught wind of this off OmniNerd, then read up on Schneier's blog.

I agree could be coincidence but the fact Iran is now isolated seems fishy.

10.15.2007

tech { the coming 'Storm'

As an Information Technology professional, stories like this scare me and keep me up at night.


Storm represents the future of malware. Let's look at its behavior:

1. Storm is patient. A worm that attacks all the time is much easier to detect; a worm that attacks and then shuts off for a while hides much more easily.

2. Storm is designed like an ant colony, with separation of duties. Only a small fraction of infected hosts spread the worm. A much smaller fraction are C2: command-and-control servers. The rest stand by to receive orders. By only allowing a small number of hosts to propagate the virus and act as command-and-control servers, Storm is resilient against attack. Even if those hosts shut down, the network remains largely intact, and other hosts can take over those duties.

3. Storm doesn't cause any damage, or noticeable performance impact, to the hosts. Like a parasite, it needs its host to be intact and healthy for its own survival. This makes it harder to detect, because users and network administrators won't notice any abnormal behavior most of the time.

4. Rather than having all hosts communicate to a central server or set of servers, Storm uses a peer-to-peer network for C2. This makes the Storm botnet much harder to disable. The most common way to disable a botnet is to shut down the centralized control point. Storm doesn't have a centralized control point, and thus can't be shut down that way.

This technique has other advantages, too. Companies that monitor net activity can detect traffic anomalies with a centralized C2 point, but distributed C2 doesn't show up as a spike. Communications are much harder to detect.

One standard method of tracking root C2 servers is to put an infected host through a memory debugger and figure out where its orders are coming from. This won't work with Storm: An infected host may only know about a small fraction of infected hosts -- 25-30 at a time -- and those hosts are an unknown number of hops away from the primary C2 servers.

And even if a C2 node is taken down, the system doesn't suffer. Like a hydra with many heads, Storm's C2 structure is distributed.
5. Not only are the C2 servers distributed, but they also hide behind a constantly changing DNS technique called "fast flux." So even if a compromised host is isolated and debugged, and a C2 server identified through the cloud, by that time it may no longer be active.

6. Storm's payload -- the code it uses to spread -- morphs every 30 minutes or so, making typical AV (antivirus) and IDS techniques less effective.

7. Storm's delivery mechanism also changes regularly. Storm started out as PDF spam, then its programmers started using e-cards and YouTube invites -- anything to entice users to click on a phony link. Storm also started posting blog-comment spam, again trying to trick viewers into clicking infected links. While these sorts of things are pretty standard worm tactics, it does highlight how Storm is constantly shifting at all levels.

8. The Storm e-mail also changes all the time, leveraging social engineering techniques. There are always new subject lines and new enticing text: "A killer at 11, he's free at 21 and ...," "football tracking program" on NFL opening weekend, and major storm and hurricane warnings. Storm's programmers are very good at preying on human nature.

9. Last month, Storm began attacking anti-spam sites focused on identifying it -- spamhaus.org, 419eater and so on -- and the personal website of Joe Stewart, who published an analysis of Storm. I am reminded of a basic theory of war: Take out your enemy's reconnaissance. Or a basic theory of urban gangs and some governments: Make sure others know not to mess with you.

10.02.2007

energy { 2007 Nobel Conference

Gustavus Adolphus College is hosting a Nobel Conference this week, and the topic is "Heating Up: The Energy Debate". Noted presenters include Professor Kenneth Deffeyes of Princeton, James E. Hansen of NASA Goddard and Columbia University, and polar explorer and conservationist Will Steger. The conference will undoubtedly touch on the major interrelated issues of energy, peak oil, and global climate change. I cannot attend the conference myself (although I made the time to hear Ray Kurzweil at Mayo this morning), but Gustavus will be posting online video of the two days (today and tomorrow) shortly. Worth a look, given the importance of the topic and the notability of the speakers.

Information on the conference is here.

The webcast will likely be posted here.

3.08.2007

tech/work { National Shutdown Day - March 24

National Shutdown Day, March 24 2007.

Workers of the world unite! I mean shutdown!

From their website, alternate uses for your computer:

3.07.2007

musings { family tech support, or why I'm not a nice person

[prepare thyself, this be a major rant]

I'm a terrible son and a terrible grandson.

Here's why. I get pissed at my family. I get pissed at them because they ask me to help them with their computer problems.

Its not all their fault. I bring some of this on myself. I'm the one who purchased an iMac for my father, so he wouldn't buy a 386 laptop with black and white monitor and windows 3.1 from a pawn shop. I'm the one who purchased a brand new Windows XP machine for my grandmother when the old one she had, donated graciously by a 'friend' of the family and held together with duct tape, literally exploded. I'm the one who installed the Operating Systems for them, hardened them so that they would not be instantly 'pwn3d' when they set foot into cyberspace. Configured their crappy ISP software (Juno for my grandmother, ECE for my father) because the tech support at those places is what happens when you think you know something, but then binge drink until the pain goes away, or you smoke way too much pot and listen to Pink Floyd backwards. I did all this, so I am to blame.

Why am I upset? Simple. I'm never the first one they call, I'm always the last. They tell me I'm the only one they know who knows anything about how, as my grandma puts it, "these silly things work." Yet I am always the last to call. Before today, I never got mad at them. I, with a smile would drive to their house, spend hours undoing and fixing their machines (instead of visiting with and being with them) and getting them back online. I must be a real ass to them in someway however, because I am the last one they call.

I'm feeling a bit taken for granted. I'm feeling a bit hurt. They didn't consult me until after they had purchased Juno, or McAffee, or MSN. It doesn't work and they want me to fix it. I used to try my best to muddle through helping them. But its over. I'm done.

My father called me today as I was re-locating from the windowless office to finish my day at my favorite window at a coffeeshop in Rochester. His internet didn't work. I had a moment of deja'vu. This is exactly how my grandmother's call started not three days earlier. They had taken their iMac to a friends house to use her DSL to download the security updates. This is not a bad thing, as there were 16 updates to download, and it would have taken days over dial-up, and ECE disconnects after an hour, because they're the kind of ISP that couldn't find its ass with two hands, a hunting dog, a mirror, and various high-paid consultants pointing it out. All their friends in the area have MSN, because its 'faster'. How I'm not sure, everyone is on dial-up since only a few places have DSL, but Qwest is rolling out DSL sometime later this year. Well they have been unhappy with their dial-up ECE speeds, and I don't blame them for that, but in honesty they were getting good speeds for where they were. But instead of asking me what I thought, and letting me do some research, they talked to their friends and decided to get MSN. Then they called Qwest and MSN and asked to get it. The shit-wits at tech support were absolutely no help b/c they had Mac OSX and fed them various lines of bullshit and lies that I am not going to repeat because its the kind of bullshit that makes me see red. They told them that they can't get MSN for Mac OSX, which is sort of true according to this link. And then they proceeded to have them go and do something that caused all their network preferences to disappear. This prompted my dad to finally call me. I was walking outside and stopped to talk, as the wind is just enough that walking makes it hard to hear. We proceed to go back and forth for 20 minutes (I made the mistake of telling my dad he made a mistake, which my father does not tolerate well) and I start to freeze my ass off. It turns out all that needed to be done was to plug the USB modem back into the USB port and let the system re-detect the modem and it automatically reconfigured everything back to what would allow them to connect. They did thank me, and we apologized for getting upset with each other, I'm having a shitacular week (its getting better now at least) because of DST. I'm under a lot or pressure and stress and I just snapped.

So for my mental health, I'm done. I live too far away from them and their issues are not ones I can fix from memory over a hundred miles away on the phone.

3.05.2007

tech/work { T-minus 6 days, counting down

To Y2K...I mean DST. Or as I've now taken to calling it, 'Definite Suck Time'. Remember folks, get the latest patches for your Operating System (if you can) and if you use Java, make sure you are running v1.4+ and have either upgraded to 1.5.0_u11+ or have run the SUN 'tzupdater' tool.

2.28.2007

Commerce/Tech { A Fitting End

Every CompUSA in Minnesota is closing.

Don't expect me to shed any tears. Your selection was terrible, your prices were outrageous, your coupon refunds were annoying, and your sales staff were assholes.

I was never treated like anything above excrement when I was there, and I decided I'd had enough a while back and never did any business there again. Given that I'm an IT professional and have an annual budget in the tens of thousands of dollars, your crappy company might have earned some of that scrip if you had bothered to treat me like a valued customer.

I wouldn't even shop at CompUSA in an emergency. There are a number of other computer parts suppliers, and they don't generally make my blood pressure rise like your employees did.

Good riddance.