Monitor a host from a Zabbix Agent (ping / ICMP)

Monitoring my Raspberry Pi network behind NAT is easy using OpenVPN and Zabbix agent/server.

In a few cases, I need to monitor hosts without any possibilities to install OpenVPN and Zabbix agent on it (switchs, routers, wemos, arduinos…).


Continue reading Monitor a host from a Zabbix Agent (ping / ICMP)

Raspberry pi backup using Rsync server and OpenVPN

1. Server setup

1.1 Initial setup

Initial steps :
OpenVPN server
OpenVPN client
Rsync server

Then we are ready for this step !

1.2 Directories

Create folders for our daily backups for “bart” :

sudo mkdir -p /var/backups/raspberry/bart/daily/{1..7}

Continue reading Raspberry pi backup using Rsync server and OpenVPN

IPsec XAuth VPN server on Raspberry Pi behind a NAT

The goal is to setup a secured tunnel to allow road warriors to securely access our home LAN with Android native client.

1. Software installation

Install strongswan IPsec server :

sudo apt-get install strongswan libcharon-extra-plugins libstrongswan-extra-plugins

Continue reading IPsec XAuth VPN server on Raspberry Pi behind a NAT

Pre-configure Wifi on a headless Raspberry Pi Zero

After setting up the OS on the memory card, you should have 2 partitions mounted from your memory card :
– Boot partition
– Root partition

~$ mount | grep mmc
/dev/mmcblk0p1 on /media/ron/boot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk0p2 on /media/ron/8a9074c8-46fe-4807-8dc9-8ab1cb959010 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)

On the root partition, edit the wpa supplicant configuration file :

~$sudo vi /media/ron/8a9074c8-46fe-4807-8dc9-8ab1cb959010/etc/wpa_supplicant/wpa_supplicant.conf 

And add the following lines at the end of the file :

network={
    ssid="your-network-ssid-name"
    psk="your-network-password"
}

Adjust the SSID and password, and you’re done.