Interested in Linux, self-hosted services, and software development, with occasional posts about games. This blog documents problems I run into, solutions that work, and tools or projects worth sharing.
Freeze running PostgreSQL/SQLite data directories with btrfs subvolume snapshots, then back them up offsite via a Backrest SNAPSHOT_START hook — in-place backup, in-place restore.
A self-hosted Gitea was flooded by scrapers, draining the monthly traffic allowance quickly. Splitting HTTP and SSH onto separate domains, putting the web traffic behind Cloudflare with WAF Interactive Challenge on heavy paths, plus Caddy rate limiting and origin gzip, brought the traffic down noticeably.
vnStat continuously records traffic per network interface, while picosnitch attributes it to processes; together they narrow an anomaly to its time window and the service responsible.
Configure Fail2Ban on an Arch Linux host with a rootless Podman mail server, then use UFW to manage bans for SSH, Postfix, and SASL brute-force sources.
Enabling mihomo TUN mode causes a total network outage because system ip_forward is disabled, UFW’s forward policy is DROP, and kernel rp_filter drops TCP handshake packets returning from the TUN interface. Three steps to fix.
A quick note on a MinerU install gotcha: uv tool install "mineru[all]" only handles the Python side. To run hybrid-engine on Arch, you still need the system packages cuda and ninja.