Skip to content

TORbox

Headless torrent appliance

By Evan Tanner

Skills

My dad had a torrent client (for Linux ISOs) running straight off his computer, which made downloads a pain to manage and brought privacy and security concerns that just weren’t needed. I took an older PC and made it a dedicated intranet appliance using Debian. The system had to be headless, secure for outbound traffic, remotely accessible, use limited SSD capacity efficiently and be able to recover from unexpected power loss without relying on public-facing infrastructure.

I built a custom Debian environment around qBittorrent and swapped out the stock workflow for a heavily modified web interface and Progressive Web App. A VPN isolates qBittorrent’s outbound traffic and separate remote connectivity keeps the management interface private. I built a watchdog for HTTPS on the intranet that detects the trust of a certificate and guides each platform through installing a local CA certificate. I also implemented storage routing that selects destination SSD or HDD based on file size and available space, migrates completed downloads to network storage, USB devices or browser, and moves active seeds to HDD storage based on configurable policies. Removable storage is simplified through automatic USB detection and mounting. The machine does not have a UPS so I implemented WAL-style state handling to recover downloads and seeding after power loss.

The appliance has successfully backed up dozens of Linux distributions, and has been running for months without any application downtime, other than upstream ISP connectivity issues. It also returned an otherwise unused computer to useful service, off-loading routine torrent management from a general purpose workstation. It required Linux systems administration, networking, storage automation, Progressive Web App development, and failure-aware system architecture.

All projects