A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Automatically clone zone from a bind master

My situation, ns1 and ns2, master and slave. On ns1 I’ve installed smbind to simply manage my zones.

Now I want that ns2 will be automatically updated with the new zones from ns1 but, unfortunately, I wasn’t able to find anything ready on internet.

At the end I wrote a simple script that simply connect […]

Renew a Certification Authority that is going to expiry

Esempio classico: il certificato di openvpn dopo 10 anni scade, il certificato originale era stato creato con easy-rsa

È possibile rinnovare il certificato della Certification Authority e del server in scadenza e far si che i client continuino a collegarsi. Nel caso di alcuni software (vedi openvpn), il client dispone anche di copia del certificato […]

Backup and restore Mikrotik MetaRouter Openwrt Image

On original metarouter: cd / echo “ ./tmp/* ./proc/* ./sys/*” > /tmp/exclude.list tar zcvf /tmp/newimage.tgz -X /tmp/exclude.list . On original Mikrotik: /metarouter export Start the new metarouter with the SAME original image when it is booted, login to it and copy the /tmp/newimage.tgz from the original one: scp original_metarouter:/tmp/newimage.tgz /tmp and restore it: cd / […]

Mikrotik – Load Balancer and Failover (and traffic prioritization)

Searching far and wide on the web looking for a solution to my problem (have a mikrotik router that do load balance and failover), I came to the conclusion that a complete solution doesn’t exist.

So I started taking all the scripts and docs found and putting them together…. The result is a working system […]

Check-MK Mikrotik Plugin for Voltage – Temperature – Memory

I just finished to write my first SNMP check for check_mk 🙂 These checks are for query mikrotik routerboard device and check status of voltage (power supply), temperature and memory. For memory I simly edit the hr_mem check, I don’t know why but mikrotik use hrOtherDisk instead of hrRamDisk for internal ram. I’ve also add […]

Raspberry Web Analog Data Logger

On this post I’ll explain you how to grab analog data from an 8-channel, 12 bit ADC. The ADC used is the Custard-PI 3 . You can buy it directly from them on that page.

I use it to log value from different type of sensors. As you know ADC for raspberry can read […]

Tunnel IPIP between RouterOs and Linux

This is a small tutorial on how to establish an IPIP tunnel between a Linux Debian server and a Mikrotik RouterOs.

Linux Machine:

ip tunnel add tun0 mode ipip remote <remote_ip_address> local <local_ip_address> ip link set tun0 up ip addr add dev tun0

Mikrotik RouterBoard:

/interface ipip add local-address=<local_address> remote-address=<remote_address> /ip address add address= […]

OpenVPN Linux Server – Router OS Client

Launch this commands:





cd /etc/ssl

mkdir $CATOP

mkdir $CATOP/certs

mkdir $CATOP/crl

mkdir $CATOP/newcerts

mkdir $CATOP/private

echo “00” > $CATOP/serial

echo “00” > $CATOP/crlnumber

touch $CATOP/index.txt

export OPENSSL_CONF=/etc/ssl/essetigiCA.cnf

copy /etc/ssl/openssl.cnf to personalCA.cnf and edit OrganizationName, Country, State, ecc fields.

Then execute:

openssl req -new -keyout $CATOP/private/$CAKEY -out $CATOP/$CAREQ

write a complex passhprase […]

SheevaPlug Debian booting from internal Flash

If you previosuly installed Debian on your internal flash and for some reasons your u-boot environment f**k you can simply restore it with this:

setenv mtdpartitions mtdparts=nand_mtd:0xa0000@0x0(u-boot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)

setenv bootargs_root ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs

setenv bootargs_console console=ttyS0,115200

setenv bootcmd_nand ‘nand read.e 0x00800000 0x00100000 0x00400000’

setenv bootcmd ‘setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); run bootcmd_nand; bootm 0x00800000’


This […]

Debian Wheezy install on SheevaPlug MMC/SD

In this howto I’m going to explain how to install debian wheezy on a sheevaplug SD (i want to maintain my old squeeze on NAND flash). We need at least Marvell U-boot 3.4.19.

We assume that our server is and sheeva ip is

Setup TFTP server and download these file on tftp root […]