ruTorrent: A Web Interface for rTorrent

ruTorrent: A Web Interface for rTorrent

ruTorrent is a web interface, and the thing doing the work underneath is rTorrent.

Two programs, not one

rTorrent is a C++ BitTorrent client with an ncurses interface, controlled over an XML-RPC socket. ruTorrent is a PHP application that talks to that socket.

So a deployment is: rTorrent running as a daemon, a web server with PHP, and ruTorrent configured to reach rTorrent’s socket. Three things that must agree, which is the main source of difficulty and why packaged images exist.

That is a different architecture from qBittorrent, which ships its own web UI in one process, and it is why qBittorrent is the usual recommendation now.

Why people still choose it

Resource use. rTorrent is extremely light for large numbers of torrents. On a seedbox with thousands active, it remains hard to beat.

The plugin ecosystem. RSS automation, ratio rules, scheduling, filesystem browsing, tracker labelling, and a long tail of community plugins.

It is what seedbox providers run, so familiarity transfers.

The alternatives

qBittorrent for a single integrated application, which is the right default.

Flood as a modern interface that also speaks to rTorrent, and to qBittorrent and Transmission, so you can keep rTorrent’s engine with a better front end.

Transmission for simplicity and a smaller footprint.

Deluge for a daemon-and-thin-client model similar in spirit to rTorrent.

Operational notes

PHP with a web server, so our nginx comparison and PHP notes apply. The connection to rTorrent is usually a Unix socket, and getting the permissions right between the PHP worker and the rTorrent user is the classic failure: both need access to the socket and to the download directory.

Our permissions guide and ACLs guide cover doing that without making everything world-writable.

Operational caution

Never expose ruTorrent without authentication, and put it behind TLS. It can write files anywhere the rTorrent user can, which makes an open instance a remote file write.

Downloading material you do not have rights to is the obvious hazard, and a seedbox does not change that.

License

ruTorrent is released under the GNU General Public License v2.