Browsing Category
Linux
27 posts
Using multipath together with mdadm on Debian
Using multipath together with mdadm on Debian Linux requires some changes to the initrd image, otherwise mdadm might…
Read the HAProxy UNIX socket file using Perl
HAProxy provides a socket file which can be used to do maintenance (enable/ disable backends, retrieve information and…
Managing LDAP passwords with Perl
OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol. Many graphical interfaces are available…
Import configuration from Hiera or a Git repository with YAML files into Terraform
De-duplication of configuration information is key when managing large environments which use different types of automation (Terraform, Jenkins,…
IPTables Logs in Loki and Grafana (with Promtail)
In the previous article (Logging in IPTables with NFLog and ulogd2) rules were created to log certain IPTables…
Terraform: Create a map of subnet IDs in Azure
The subnets accessor in the azurerm_virtual_network Terraform data source returns a list of subnet names only. In most…
Block countries on OpenBSD using pf
Same as in the previous article, full countries can be easily blocked on OpenBSD firewall using the pf…
Block countries using IPtables and IPDeny.com
Certain server setups do not require access for all countries or just want to block certain countries since…
Monitor running processes with Perl
Update: This article is updated thanks to Colin Keith his excellent comment. I was extremely inspired by it…
A simple TCP server written in Perl
The below example is a very simple TCP server script written in Perl, which uses the AnyEvent module.It…