Categories

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 […]

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 192.168.200.1/24 dev tun0

Mikrotik RouterBoard:

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

OpenVPN Linux Server – Router OS Client

Launch this commands:

CATOP=./personalCA

CAKEY=./cakey.pem

CAREQ=./careq.pem

CACERT=./cacert.pem

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 […]

Clonezilla PXE Setup

We assume that our server has ip 192.168.171.11, and root directory of tftp server is /srv/tftp

Download clonezilla-live-1.2.8-42-i686.zip and clonezilla-live-1.2.8-42-amd64.zip on a local directory and unzip them. Obviously you can use only one of them.

# wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.04.tar.bz2

# tar xjvf syslinux-4.04.tar.bz2 # cp syslinux-4.04/core/pxelinux.0 /srv/tftp/ # cp syslinux-4.04/com32/menu/vesamenu.c32 /srv/tftp # mkdir /srv/tftp/clonezilla-amd64 # cp […]

openWrt non-standard module compiling

Now I want to use an easycap DC60 device also on my NSLU2 with openwrt, so similar for sheevaplug i’ve to compile the module.

All the operations described here are executed on a standard i686 linux pc (debian).

Download openwrt 8.09.2 and default config file:

cd /usr/src/nslu2/test svn checkout svn://svn.openwrt.org/openwrt/branches/8.09 8.09.2 wget http://downloads.openwrt.org/kamikaze/8.09.2/ixp4xx/ixp4xx.config

go into […]

BlackBerry Bold 9700 as Linux Modem

In questa breve guida andrò ad illustrare come usare il nostro BlackBerry Storm 9700 quale modem HSDPA/UMTS/GPRS. Ovviamente il metodo illustrato funziona con (teoricamente) qualsiasi terminale BlackBerry.

Il tutto è reso possibile dal software prodotto da NetDirect, Barry. Scarichiamolo a questo indirizzo http://www.netdirect.ca/software/packages/barry.

Grazie a barry (in particolare l’eseguibile è pppob) ci viene fornita una […]