Posted on February 22, 2006

Michelle and I got back from Sedona, AZ late Monday night after a nice weekend away with our friends Jan and Mike. We drove from Los Angeles to Sedona by way of the 40 and stayed at a great little hotel called the
Sedona Rouge. The rooms were very nice and we enjoyed our time there.
We ate at a restaurant on Saturday night called
Dahl and DiLuca. The food was amazing. What wasn't amazing was the attitude and dismissiveness of the Matre'D, the 45 minute wait with a reservation, or how crowded said wait was. I felt like I was in the way no matter where I was standing. I wouldn't have minded the wait if I wasn't told repeatedly that we would be seated in "just one minute" for over 40 minutes. I also wouldn't have minded if the guy had not been so dismissive. They did try and make us happy by giving us complimentary hors'doeuvres. There were local musicians doing a jazz set while we were eating which made for nice atmosphere.
We made our way to both Bell Rock and
Cathedral Rock while driving around looking at different properties in the area, dreaming about being able to afford something there some day. Red Rock Crossing is one of our favorite spots in Sedona. It's a nice little area where Oak Creek flows in front of Cathedral Rock. Jan and Mike also enjoyed the area and Jan snapped this photo of
Michelle and I.
On our way back on Monday we drove by the Grand Canyon for lunch. Michelle talked the local sheriff out of a speeding ticket I should have received. The guy was real nice and gave me a warning since it was our anniversary. I didn't get to finish the book I was reading, but all and all it was a great weekend.
Tagged with: Vacation |
Posted on February 13, 2006
Some idiot on GameSurge decided to SYN flood the site today. After parting with this lovely message “<JacKer> say bye to your site” a minor synflood from a total of 4 ip addresses hit the webserver. I ssh'ed in realizing I didn’t copy over the old iptables firewall rules to the new webserver box and thus the auto-syn-flood filter wouldn’t kick off. After spending a few minutes coding
this PHP script which runs from the CLI, I was able to test it and watch it filter out the 4 ip addresses spewing SYN packets.
It works first by running netstat and gathering the ip addresses in a state of SYN_RECV. It then goes out and gets a list of already filtered IP addresses from iptables. Then if there are more than 3 of one ip address in the state of SYN_RECV and if it is not already being dropped by iptables it gets added to a list and dropped. I plan on making this a little more sophisticated in the future, for example one cool thing to do would be to look for ip addresses in the same subnet and drop the subnet if there are enough to justify it. Anyway, if you find this helpful let me know. I've only tested it on Gentoo Linux with PHP 5.1 but I can't imagine it wouldn't work on any BSD based system.
Tagged with: DDoS GameSurge Linux PHP |
Posted on February 06, 2006
I've synced up my site to run against Framewerk SVN HEAD once again, so this is the lastest and greatest. One of the new features is direct FCKEditor integration for file uploads of Images, Links, and Flash. This is achieved through the TFileStorage class which stores data attributed to the objects that instanciated it in the database. TFileStorage is meant to be a universal in-database file storage mechanism. It has been also been implemented in the CMS Images area where previously the CMS stored the images on its own.
Tagged with: Framewerk |