Recently I came across the requirement to monitor traffic for a few devices behind Ubiquiti EdgeRouters, so I put together the following method which is described here for future reference. I am using iptables to collect byte counts and poll this data through SSH from a monitoring server. The collected data gets saved in a round robin database and output as a graph using Tobias Oetiker’s geat RRDtool.

Continue reading
Category: Linux
Command-line keyboard shortcuts
To be precise, we are talking about the “readline Emacs editing mode” keyboard shortcuts. They work in a wide variety of CLI tools, notably your bash or zsh shell. What most people don’t know is, they also work on macOS (née OS X) in any text input field.
Continue reading
Centralized logging with rsyslog
If you want a good overview over your infrastructure but don’t feel the need to install extra software like Logstash, Fluentd or Graylog there is an easy way to achieve a centralized logging facility with what’s already on board in most Linux distributions: rsyslog
Continue reading
Inspecting and manipulating .tar.gz archives using Vim
Yesterday I found out about yet another Vim feature I didn’t know about previously. You can inspect the contents of .tar.gz archives and even write to files inside the archive using my favourite editor.
Proxmox on Debian at Hetzner with multiple IP addresses
I’ve spent most of my day today trying a plethora of different ways on how to configure Proxmox on a Hetzner server with multiple IP addresses. Most of the tutorials I found online gave a good deal of information but where lacking in one or two crucial details. Shortly before I was ready to throw my computer out of the window, I had success and managed to get everything set up the way I wanted it.
This aims to be the definitive guide on how to accomplish the aforementioned task. When ready the setup includes the following features:
- Host bound to main IPv4 address, that comes with the server (and one of the 18,446,744,073,709,551,616 included IPv6 addresses)
- Every IPv4 address of a separately delegated subnet usable for virtual machines
- Internal private network for inter-virtual machine communication and non publicly accessible VMs