Category: Servers

ESXi 5.1 – Regain Access to Host After Setting Wrong Default Gateway

ESXi 5.1 – Regain Access to Host After Setting Wrong Default Gateway

I’ll admit – I’ve done this once or twice. Each time causes me some grief while trying to get things set up correctly.

Here’s how to fix this issue as long as you have access to the Direct Console UI or ESXi Shell.

Continue reading “ESXi 5.1 – Regain Access to Host After Setting Wrong Default Gateway”

SSH Auto Login Using Putty

SSH Auto Login Using Putty

I once had a person tell me that the most successful individuals in IT are lazy.  Years after hearing that, the notion has stuck with me and translates into much of how I attach problems.

If you’re like me, you use putty to connect to servers via SSH frequently. Now, I know that you can use key based authentication using puttygen, but in the scenario that you don’t want to go that route, you can use the method below to create windows shortcuts to automatically log into a host using putty.

Continue reading “SSH Auto Login Using Putty”

SSH Local Port Forwarding Made Easy

SSH Local Port Forwarding Made Easy

I’ve been using this for a while now, and have found it a great little trick for accessing services that are blocked due to a firewall.

It’s pretty simple, you just have a few parts to the command string.  The first command argument tells ssh to forward a local port (LP) to a remote machine Remote) on a remote port (RP).  The second part is something you’re probably familiar with, the destination that you’re connecting to (Destination).

An example with the abbreviations above would be:

Say for example, you ran the command “ssh -L myExternalServer”.  In order to access port 80 on you’d open up your web browser and point it to http://localhost:1234.  It’s as easy as that!

I’m Okay (and so is my blog)….

I’m Okay (and so is my blog)….

Long story short:

The computer that this blog is on was up for over 220 days, and when I restarted it, things were all messed up.

The only thing that I really wanted to back up was this blog, but I was unable to dump the mysql database because I couldn’t get it (mysql) to start.

I ended up copying the raw database in /var/lib/mysql to a backup directory.

Then I went on this whole crazy journey trying to convert my drupal database to be used with wordpress…… That didn’t work too well.

Then I realized that all along all that I had to do is enable mod rewrite in apache in order for it to work.

So there you have it: how my blog is working, and why I sound a little bit scatterbrained.

More later (hopefully),
Jon Howe

Enabling Samba and SWAT on Ubuntu

Enabling Samba and SWAT on Ubuntu

I recently got an album from on my laptop while I was away from my house, and wanted it on my desktop computer. In the past I’ve used Samba to transfer from Windows to Linux, so that’s what I did this time.

There were a couple of problems though, i didn’t have samba installed or configured because I just switched from Ubuntu Breezy to Ubuntu Dapper. Samba can be a bit of a pain to set up by hand, so that’s why I use SWAT (Samba Web Administration Tool).

SWAT doesn’t work automatically in ubuntu though, in order to get it to work the install the following packages if you’re using inetd (not recommended):

apt-get install samba swat netkit-inetd
sudo update-inetd --enable 'swat'

Otherwise, if you’re using the recommended xinetd use the following fix:

Create a text file called ‘swat’ with the following information in it:

# default: on
# description: SWAT - The Samba Web Administration Toolkit
service vmware-authd
disable = no
port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
type = unlisted

Then restart either (x)inetd and in your browser goto http://localhost:901 to log in.

That should work, if it doesn’t email me at howe dot jon -at- gmail _dot_ com

Howto: Set Up Your Own Snort Intrusion Detection System with a Database Backend

Howto: Set Up Your Own Snort Intrusion Detection System with a Database Backend

Okay, truth told, I’m completely bored, so I’m going to write a quick tutorial on how to install and set up the Snort IDS on a Debian Sarge System (although it should work on other distros as well).

Download and Install Snort
apt-get install snort-mysql

Enter values in the following screen, but forget about the part about the database
cd /usr/share/doc/snort-mysql
mysqladmin -u -p create
zcat create_mysql.gz | mysql -u -p

Copyright © 2020