Upside Down Net

Updated my upside down ternet scripts for my wireless guest network. Now it includes upside down text :> The new script works by redirecting all requests to phproxy (poxy) which then turns images upside down and runs a javascript to upside down the text.

Link to download is here.

Please note that this is heavily based off phproxy and a javascript text flipper. Credits are in files included.

Life

I couldn’t let January be wasted with one useless post, so I may aswell make it two. A bit of a slow start but I’ve been busy. A few things have happened in the last 3 weeks, including me getting a new chair, finishing season 2 of Dexter, getting a second server, and accepting UNI. (Yeah I know that paragraph sucked balls in the grammar department, anyway, moving on)

I’ve accepted an offer to CQU – Rockhampton UNI for Information Systems, but I’m doing is externally, so I can work at the same time. Although I’ve accepted I haven’t selected my course yet, because I can’t seem to work out this damn site. I’m going to give them a call tomorrow.

A friend of mine from work has gotten me to watch Dexter season one and season two, and boy it’s good. I started to feel sorry for Dexter, and really like the story line. It gets so intense at parts and it’s a great show. I really enjoyed it.

The other two lesser points is that I have a second server http://treee.internaluse.net/ and I have a new chair for my desk (which I have put the arm rests on backwards, and CBA fixing it).

Basically that’s all that’s exciting in my life this month, and the rest has been work.

Robot Chicken

I have (legally or illegally) obtained three whole seasons of Robot Chicken, and while I have enjoyed some of the short clips, I have never had the time or the resources to watch full episodes. Well that’s turned around and I have ended up watching both season one and two within two days, and I am part way through the third season.

I love the some what messed up story lines and clips, and there have only been a few I don’t understand (mainly because of the lack of TV I watch). If you ever get a chance to watch Robot Chicken, you should.

I would love to set my wallpaper as Robot Chicken, but it’s a little stuck. I havn’t actually gotten around to fixing it, I should reboot or log off and back on again, but I really can’t be bothered. Due to a kernel panic, my MacBook has a higher uptime (11 days) than my server :<.

Bacon Today

I found a wonderful website (I think I found it from twitter) which really touches on issues in the world around us. The site deeply digests the most important news, and reports back to us on the results.

Bacon Today beats the shit out of any morning show, news website or web comic, with it’s delicious news on what we live on. with regular polls and articles, there is no possible way this site could become boring or useless in 20 years.

I suggest you check it out – Bacon Today

Zenoss + gnokii

Zenoss is a wonderful piece of software (once installed) that allows you to monitor devices and programs. It’s really nice at keeping a history of events and the like.

It grabs data via snmp (or a few other methods) and monitors them, creating graphs and status reports. It’ll even map out your network for you. It’s fairly basic software, but it does wonderful things.

So I’ve wanted to do this for awhile, but now I’ve got all the bits together. A friend has given me a Nokia phone with a broken screen, and another a sim card. I was able to “borrow” dads bluetooth dongle that he never uses, and hook up gnokii up to my zenoss.

Now whenever a device dies, I can get a sms alert about it. Pretty nice stuff :>.

Lan Party

Had a pretty decent LAN Party last weekend. We played TF2, BF1942, CS:S, Diablo 2 LOD and Warcraft 3 FT. The LAN started at 12:00 and went to 12:00 the next day, and the amount of people varied between 2 and 11, although the average was 9 (Damn people needing to work). The flickr stream starts here.

All in all it was pretty good, 8 pizzas, soft drink. Could have done with some more nachos, but meh. Pretty damn good.

When people aren’t playing games it’s a good chance to trade Creative Commons music and the like. I have 50gb of music now that I’m sorting through. This also gave me a chance to test out the new iTunes 8 and I have to say, it hasn’t changed much. It looks a little nicer IMHO.

The LAN also allowed me to test out my new Nvidia 8600GT graphics card, which done wonders. Since my computer naturally runs hot, I under clocked it, and still managed to get over 50 FPS in most games.

This is also the first LAN where I have been able to stop people from using all my bandwidth, by blocking all ports but HTTP, MSN and the like. This stopped torrents and people playing WOW (which I think is a stupid thing to do at a LAN anyway). To do it using my approach you must have a modem / router running and it must have iptables.

Yours will be different depending on the model and brand of modem, but you can have a look at the script I used to block everything but the stuff I wanted.

iptables –delete FORWARD 1
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 6667 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 6667
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 9002
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 9002 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 6697
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 6697 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 443 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 443
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 53
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 53 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p udp –destination-port 53
iptables –insert FORWARD 3 -j ACCEPT -p udp –destination-port 53 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 80
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 80 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 1863
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 1863 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 21
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 21 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p udp –destination-port 1863
iptables –insert FORWARD 3 -j ACCEPT -p udp –destination-port 1863 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p udp –destination-port 3388:3390
iptables –insert FORWARD 3 -j ACCEPT -p udp –destination-port 3388:3390 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 3388:3390
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 3388:3390 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 27030:27039 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 27030:27039
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 110
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 110 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 25
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 25 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 465
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 465 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 993
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 993 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 995
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 995 -i br0
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 5900
iptables –insert FORWARD 3 -j ACCEPT -p tcp –destination-port 5900 -i br0
iptables -A FORWARD -j DROP -i br0

HTTPS and SSH on the same port

I like SSH and I like HTTPS, but some times I want SSH to run on port 443 (HTTPS port) so I can use it to get over corporate firewalls and/or school firewalls, depending on the time of year, which used to mean getting https, taking it up a steep hill and sacrificing it to the gods, while SSH was taking a spa in it’s $1.2 Billion luxury apartment.

Although today SSH and HTTPS have become friends with the help of sslh, which allows you to take the best of both worlds and run SSH and HTTPS on the same port with a little bit of haxing.

sslh can be downloaded from http://www.rutschle.net/tech/sslh.shtml and there is also a perl one, which isn’t all that good, that can be downloaded from http://search.cpan.org/~book/Net-Proxy-0.07/script/sslh .

The setup was pretty easy, however I did have a problem that took me longer than it should have to fix. I used my modem to change port 443 on the outside world to port 22 on the inside world and forgot to remove that rule, which ended up confusing the shit out of me.

Problems aside I now have SSL and HTTPS runing side by side without a problem and for a final note, yes this has been the most exciting thing that has happened to me in the last week, not including the job of installing and configuring 27 Cisco 8 port 3560 switches.

CHDK

I’ve had my Canon S3 IS camera for awhile now, and it’s a brilliant camera with lots of nifty little things, and buttons and this and that. It turns out beautiful images, esp macros. I really like it, and I’m 100% happy with it.

Harrison has showed me CHKD which has made me even more happier with my camera. CHDK is a firmware enhancement that was turn my camera into something even more better. I can now play games on my camera, and run scripts that make beautiful HDR images so much easier. I used a script to take 25 photos on the teddy you see to your right, and patched it together using photomatix. It even tells me the percentage of battery I had, something which was an annoyance on the old firmware.

I really like the new firmware, however I’m sure they can find more fun things to do with the cameras.

The installation is really simple, find a card reader, plop the two files onto the card, re insert card, go into play mode, press the mode button, press firmware update, put your hands on your head, spin around three times yelling “IMAFAG” and flap your arms like a chicken.

It’s that simple.