Nagios XI – Adding Microsoft Server Services via API

When automating server provisioning you might be considering implementing Nagios for monitoring servers and services as part of the build process. Apart from the help section of Nagios console giving some hints on how to interact with the API, there isn’t much else to go on so I’m sharing my learnings on how to do… Read more »

Blocking Postfix traffic using Fail2ban

So if you are reading this then you have probably seen what appears to be every bot in China connecting to your Postfix server to attempt anything from relaying to auth attacking. Well, have I got the solution for you! Now before you implement this, I will warn you, this is very restrictive, it doesn’t… Read more »

Creating a software RAID on Ubuntu/Debian

Creating a software raid of disks is quite easy in Ubuntu, I will assume the disks are attached (physically or virtually) to the guest operating system. Currently Ubuntu supports the following raid levels: RAID level 0 RAID level 1 RAID level 2 RAID level 3 RAID level 4 RAID level 5 RAID level 6 RAID level… Read more »

Limit SSH connections geographically

There is a real security risk to leaving your shell connection ports exposed to the internet especially if you don’t ever intend on connecting from Zimbabwe as well as other random countries. This can limit brute force attack exposure and also save valuable resources and bandwidth by rejecting a packets before a tcp handshake. Install… Read more »

Adding Colour to Linux Bash Shell

If the standard black and grey makes you feel uninspired, you can change this by adding two lines to your .bashrc file in the users profile. 1. Edit the .bashrc file 2. Add the following lines Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you… Read more »

Install MediaWiki on Apache with mySQL

From MediaWiki site: MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia. I decided to give MediaWiki a try as a scripts repository so I thought I’d write a quick guide of how to install it on a Linux/Apache/mySQL server. Assumptions A fully qualified domain name with a… Read more »

Rebuild locale on Linux

A quick note on how to rebuild Linux locale, you might get the following errors if your locale is broken: To find out what locale is set, run the following: Output should be something like this: To rebuild the locale, run the following: (using en_AU.UTF-8 as an example) Should you have any questions, comments or… Read more »