Tech Blog   (40 posts)

Random   RSS   Atom

  Searches stay local. No external search engine is involved.

Found 40 results for “category:sysadmin”   Clear search

Daily Automatic Updates, Safely

LLMs are finding vulnerabilities faster than ever. Let CI update your dependencies, images and OS daily, with tests, rollbacks and cool-off periods.

GKG Net Bad Domain Registrar

I used to recommend GKG. One of their nameservers fails on IPv6, the nameserver form is broken and support never replies, so I now warn people off.

Hardening Container Images

I rebuilt PowerDNS Recursor as a static scratch image with Landlock and a seccomp allowlist, daily rebuilds, an SBOM, OpenVEX and cosign signatures.

Immortal SSH Sessions

A tiny sshx wrapper runs mosh with screen, so my SSH sessions survive network changes, sleeping for days and even a laptop reboot.

Blocking Russian IPs

A few lines of config with libnginx-mod-http-geoip on Debian 12 that show visitors from Russian IPs a plain text message instead of your site.

Sending Email Using Curl

My Gitlab runner emails me when it pushes a new Docker image. No webhook service needed, just curl talking to an authenticated SMTP server on port 465.

Self Building and Executing Dockerfiles

A shebang trick that makes a Dockerfile executable: running it builds the image with podman and runs it with your args. My example wraps yt-dlp.

Sandbox Rust Development with Rust Analyzer

I keep cargo in Docker with saferrust. Getting rust-analyzer in VS Code to work the same way took a wrapper script, a custom image and a sudo rule.

Manage Firewall from Dockerised NodeJS

Running iptables and pcap from a Node app in Docker without root: a setuid xtables binary, setcap on node, NET_ADMIN and NET_RAW, and host networking.

Nginx Restic Backend

I replaced Restic's Rest Server with plain Nginx, using the DAV and Lua modules and JSON autoindex to give append-only backups with per-host credentials.

GPG Agent Forwarding

With OpenSSH 6.7 or later on Debian Stretch, one RemoteForward line in ~/.ssh/config lets me use gpg on a server without my private keys being on it.

When Backup MXs Are Ignored

My primary MX hung, accepting TCP connections but sending no SMTP banner. GMail, Sendgrid and Github waited on it for a week and never tried my backup MX.

Transparent Access to Tor Hidden Services

Any device on my LAN can reach .onion sites with no setup. Unbound forwards to Tor's DNSPort, iptables redirects to TransPort, Tor2webMode cuts the hops.

Transparent Access to I2P eepSites

My Debian router lets any device on my LAN open .i2p sites with no proxy settings, using Unbound for .i2p lookups, iptables and Privoxy feeding I2P.

Disk Caching with SSDs on Linux and Windows

My dual boot desktop puts SSD caches in front of a fakeRAID stripe: BCache on Linux, Intel Smart Response on Windows. Setup, pitfalls and hit rates.

Defending Against Spear Phishing with Exim

EximPhishReplyBuster remembers the password a user logged in with and rejects outgoing mail containing it, so replies to phishing emails never leave.

Automatically Encrypting all Incoming Email

gpgit, my Perl script that Exim runs as a transport filter, PGP encrypts every incoming email with my public key before it reaches my IMAP server.

Tor Circuits with Two Hops on Ubuntu

Tor is slow with three hops. I patched DEFAULT_ROUTE_LEN and rebuilt the Debian package on Ubuntu Lucid for two-hop circuits, at some cost to anonymity.

Setting up IPv6 is Easier Than You Think

I gave my Linode VPS IPv6 through a free Hurricane Electric tunnel in minutes, then set up AAAA records, reverse DNS, mail, Apache and ip6tables.

Extract Domains from Email Using Exim

Dropping SpamAssassin to save memory, I wrote a GPL Perl script that pulls domains out of message bodies so Exim can check them against RHSBLs.

ClickJacking and SSL Protection in Apache

Adding Strict-Transport-Security and X-Frame-Options headers to my site with Apache mod_headers, after Google announced support for them in Chrome.

SpamAssassin 2010 Bug

On 1 January 2010 the FH_DATE_PAST_20XX rule started scoring every legitimate email 3.2 because of a bad regex. Here is the one-line local.cf fix I used.

Apache Forward Proxying with Compression

Squid wouldn't gzip responses over my slow 3G link, so I switched to Apache mod_proxy as a forward proxy with mod_deflate. Here is my config.

Poundhost vs RapidSwitch

Poundhost leaked its customer list by putting everyone in Cc on a marketing email. Within hours, competitor RapidSwitch emailed me a six months free offer.

Poundhost Data Storage

My experience of Poundhost's iSCSI storage with GFS and Red Hat Cluster Suite: cheap, about 8MB/s over 100Mb NICs, and no SLA without replication.

Redirecting Pages through CGIProxy with Squid

I abused Squid's url_regex ACLs and deny_info to send requests for chosen sites through the CTunnel CGIProxy service, hiding my IP from those sites.

Detecting Bad ClamAV Signatures by Scanning Ham

After SaneSecurity listed 'com' as a bad domain, I set up a cron job that scans my read Inbox with ClamAV every 20 minutes to catch false positives early.

Automatically Expiring Email Addresses

An Exim ACL that accepts mail for addresses like 2009-Aug-03@tmp.grepular.com until that date, then rejects it. No new alias needed each time.

Accessing Memcached from Exim

Two Exim macros using the ${readsocket} expansion to set and get values in memcached from ACLs, with expiry, plus a bug in Debian Lenny's package.

Whitelist Recipients in Exim

Exim records every address my users send mail to in MySQL, using a stored function and two macros, then skips spam filtering for mail from those senders.

Exim Client Authentication Recipe

Exim config that reads smart host IPs, logins and auth types from one file, then picks PLAIN, LOGIN or CRAM-MD5 and TLS for each host automatically.

Accessing Rejected Spam Solution

Exim still rejects spam at SMTP time, but fakereject and my pipe2imap script file a copy in each user's read-only IMAP Junk folder for a week.