Securing a ZNC IRC Bouncer with an SSH Tunnel and autossh

When running your own IRC bouncer, it’s tempting to expose its listening port directly to the internet. It makes connecting from clients such as WeeChat straightforward, but it also means adding another publicly accessible service to your server. As part of a wider server security review, I decided to take a different approach: keep ZNC listening only on the server’s loopback interface and use an SSH tunnel to access it remotely. ...

Wednesday 11 November, 2026 · David

How to Reduce MySQL Binary Log Retention on Ubuntu

I recently had an issue with a client’s Ubuntu server where MySQL binary log files were taking up a considerable amount of disk space. In this case, they had accumulated to around 14GB, which was becoming a concern on a server with a relatively small disk. Binary logs (binlogs) record changes made to a MySQL database. They’re useful for replication and point-in-time recovery, but if they’re retained for longer than necessary, they can gradually consume a surprising amount of storage. ...

Saturday 11 November, 2026 · David

Using the `zip` utility on Linux

The zip utility is a widely used command-line tool for compressing files and directories into .zip archives. It is simple, fast, and available on most Linux systems. This guide explains how to install zip from standard repositories on various Linux distributions and how to use it with practical examples. 📦 Installing zip on Popular Linux Distributions Ubuntu / Debian Update your package lists and install: sudo apt update sudo apt install zip Fedora sudo dnf install zip CentOS / RHEL 8+ sudo dnf install zip For CentOS 7 or older versions of RHEL: ...

Wednesday 6 June, 2025 · David