Tom Purl’s Web Site

My ’83 Datsun On The Side Of The Information Superhighway

Archive for the ‘Uncategorized’ Category

Week 1 Hosting SSHD – Gee Whiz Security Stats

with 2 comments

I installed the 8.0 version of FreeBSD this week in a VirtualBox image, and I thought that it would be fun to let some of my friends use it as a web server test bed.  I therefore setup an SSH server and hardened it using some of the recommendations from this web page:

Specifically, I set the following properties:

  • I explicitly turned off root logins. This is the default on FreeBSD, and it should be the default on every Linux and Unix server (even though it isn’t).
  • I deny access to anyone using the SSH 1 protocol.
  • I turned off password authentication.  Instead, anyone who logs in has to use keypair authentication.

With all of these settings, I feel like my SSH server is safe enough.  However, I was curious to see if anyone had actually tried to crack it.  I mean, it’s only been up for 3 days.  The bad robots of the Internet could not have possibly found my little SSH garden in the shade, right?

A quick look at /var/log/auth.log brings me back to Earth.  To my surprise, their have already been hundreds of attempted logins from multiple sources.  Here’s the statistics related to people who are trying to crack my SSH server.  Remember, this server is 3-days old.

  • 865 failed login attempts
  • 281 unique login names
    • Some of the names are fairly comical (12345?), and many of them are very uncommon (Agatha?).
  • 0 login attempts using the root user name.
    • This was a big surprise for me.
  • The attacks originated from 6 IP addresses.
    • It’s anyone’s guess if all of these computers are part of the same botnet or if there are multiple groups trying to crack my server.

I can’t help but compare any publicly-available, networked service to a car that is parked in the middle of a city containing a billion people.  No matter how small and obscure your car is, you can’t afford to park it without locking your doors.

Written by Tom Purl

March 20, 2010 at 7:17 pm

Posted in Uncategorized

Tagged with , ,

Ubuntu 9.04 => 9.10 Upgrade

leave a comment »

I just finished upgrading my MythTv/printing/data/everything server from version 9.04 of Ubuntu to 9.10. For the first time, I tried using the Software Update program to upgrade my entire system, and it went surprisingly well. Here are some of the highlights; hopefully they will help a few other people.

MythTv

The OS upgrade included an upgrade of MythTv from 0.21 to 0.22, so I was a little nervous about how well mythbackend and all of my MythTv-related applications (like mythweb and nuvexport) would work. To my surprise, mythbackend and mythweb both upgraded flawlessly. This is a really impressive feat, and it reflects the hard work that the MythTv package maintainers put into each Ubuntu release.

The nuvexport package is broken for me, but I think that’s because I compiled a customized version of ffmpeg. Oh well, this seems to be a common hurdle when I upgrade Ubuntu.

One little thing that I did have to fix after the upgrade was my MySQL configuration. The upgrade laid down the default version of the /etc/mysql/my.cnf file (after asking, of course). This file was configured to block any computer from using MySQL over the network. This is bad for me, because I like to watch my MythTv movies from other computers using mythfrontend.

To fix this, I simply commented out the following line in my.cnf on my MythTv server by placing a # in front of it:

 bind-address            = 127.0.0.1

After that, I simply restarted MySQL and I was able to use mythfrontend from my other computers.

Note

If you are on a network with other untrusted hosts, then you will want to use a more secure configuration than this.

VirtualBox

I run Windows XP in a VirtualBox VM for work, so it’s very important that both VirtualBox and my XP image work properly at all times. Again, to my surprise, everything worked perfectly after the upgrade. I didn’t even need to re-install VirtualBox. The VirtualBox kernel module was automatically re-compiled during the upgrade process, so I didn’t even have to do that.

Please note that I was using the absolute latest stable version of VirtualBox (3.0.12) before I started the upgrade. Your mileage may vary if you are using an older version.

Overall

Again, I am very impressed by how well everything went. I don’t see why I would ever choose to do a fresh installation of Ubuntu again on this machine.

Caveat Emptor

The automatic upgrade process is far from perfect, and your results may be different. Before you start any major upgrade, make sure that you perform the following steps:

  1. Make a backup of all of your important files – I use rsnapshot to back up my important files daily, and it has saved my bacon more than a couple of times. Also, it’s a good idea to store this backup on a separate disk from the boot disk.
  2. Download the current and target versions of Ubuntu and burn them to CD’s – If things do go south, then you will want to be able to either reinstall the current working version of Ubuntu or the target version. Having the actual ISO’s available on a CD may save you a ton of time and grief.

Good luck!

Written by Tom Purl

December 1, 2009 at 3:36 am

Posted in Uncategorized

Tagged with , , , ,

Hello world!

with one comment

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Written by Tom Purl

March 19, 2008 at 8:03 pm

Posted in Uncategorized