Headless self signed certificate, oneliner

Just in case you need to generate a self signed certificate without any interaction

Read More

Get public or private IP from Amazon EC2 using cli

Private IP address (PrivateIpAddress) for instance with tag Name = hostname01

  Public IP address (PrivateIpAddress) for instance with tag Name = hostname01


Read More

How to switch back console to monitor during RDP session

Sometime it’s very annoying to leave the monitor console session locked after the machine has been remotely controlled using remote desktop (RDP). To switch back the current session to the monitor simply start a command prompt and execute the following command

If it does not work, try to use 0 (zero) instead of 1, or test with another number until it works or get the exact session id using…

Read More

Send Naemon / op5 / Nagios alerts to your phone with Pushover

I just published a tool I have been working on to very easy send push notifications from Naemon, op5, Nagios or Icinga as a few examples to your Android, iPad, iPhone or desktop using Pushover You can find notify-via-pushover on my Github page: https://github.com/jryberg/notify-via-pushover Please feel free to give me feedback and feature request if you are missing something. — Johan Ryberg

Read More

How to install Kippo SSH honeypot on OpenBSD 5.5 with chroot

This is a basic guide how to install Kippo SSH Honeypot on OpenBSD 5.5 using chroot. Please remember that this might be dangerous since the hacker depending of the skill set might find a way to escape from the honeypot or tries to find other service that are related to you. Only run a honeypot if you know what you are doing since the offender might retaliate More information about…

Read More

How to install Naemon 0.8.0 on CentOS 6.5

This is a guide how to install Naemon 0.8.0 on CentOS 6.5 64-bit system. 32-bit packages are also available, just change download links bellow. Download precompiled packages, you will find/verify the links from Naemon homepage: http://naemon.org This instructions are created with CentOS minimal installation in mind, some packages may already exist if you have any other kind of installation. Download wget

Download packages

Enable epel repository, required for…

Read More

Howto: build Naemon from source for Ubuntu 12.04

It’s quite straight forward to build Naemon from source with Ubuntu, all required softwares can be found as packages from the standard repository Install dependencies

Get latest version of Naemon

Update source (meta package may not be updated)

Build Naemon

Create DEB

Install Naemon

Restart Apache

Change path to Nagios-plugins for Naemon

Find row: $USER1$=/usr/lib/naemon/plugins Change to: $USER1$=/usr/lib/nagios/plugins Reload config for Naemon…

Read More

Howto: build Naemon from source for CentOS 6.5

CentOS are a bit of tricky since a lot of packages are not available from standard repository. We needs to download a lot of components and build from source. Build Naemon Install dependencies for Naemon

Enable epel repository, we need this for nagios-plugins and mod_fcgid

Install nagios-plugins and mod_fcgid

Get latest version of Naemon

Ignore yui-compressor, are not available as a package

Update source (meta…

Read More

How to build monitoring-plugins for CentOS 6.5 for Naemon

This is a quick guide how to build monitoring-plugins (formerly known as nagios-plugins) on CentOS 6.5 (64-bit) for Naemon


Read More

smtpd instead of sendmail in OpenBSD

sendmail is in my opinion unessisary advanced and compicated for the most installations and there are a more simpler solution already in base for OpenBSD which is smtpd. This daemon is not active by default but it’s simple to change. Stop sendmail pkill sendmail Edit /etc/mailer.conf and change to the following sendmail       /usr/sbin/smtpctl send-mail     /usr/sbin/smtpctl mailq           /usr/sbin/smtpctl makemap         /usr/libexec/smtpd/makemap newaliases      /usr/libexec/smtpd/makemap hoststat        /usr/libexec/sendmail/sendmail purgestat       /usr/libexec/sendmail/sendmail Rebuild aliases database newaliases Make…

Read More