wrolpi-help/docs/modules/torrents/index.md
Roland 587467d13d
Torrents and the VPN for torrents
Downloading and sharing torrents, the Torrents page, the qBittorrent WebUI,
setting up the VPN, port forwarding by provider, fail-closed, and what the VPN
does not protect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:38:52 -07:00

6.9 KiB

Torrents

WROLPi can download torrents, and share files from your library as torrents, so that others can download large open data (maps, Zims, datasets) from you. Torrents only ever use a VPN: peers see the VPN's address, never your WROLPi's own. While the VPN is not connected, torrents are stopped.

Torrents Page

Before adding a torrent, set up the VPN.

Downloading a Torrent

To download a torrent, open the Download menu and click Torrent.

Torrent Download Form

Enter one or more magnet links or .torrent URLs (one per line), or choose a .torrent file, or both. The torrent is saved in the torrents directory of your media directory unless you choose another destination. A destination can be any directory in your library, but not WROLPi's config directory.

The form shows whether the VPN is connected. You can add a torrent while it is not; the torrent starts once the VPN connects.

The Download is complete on the Downloads page once the torrent has been added. Its progress then shows on the Downloads page and the Torrents page. When a torrent finishes downloading, its files are indexed like any other download, and it keeps seeding.

The Torrents Page

To see your torrents, click Admin, then Torrents.

The top of the page shows:

  • VPN: whether it is connected, the address peers see, and the port forwarded to this WROLPi (if any). The VPN settings link opens the VPN settings.
  • Connectability, while the VPN is connected:
Shown Meaning
Peers can connect to this WROLPi A peer has connected in through the forwarded port. Anyone can download from you.
Firewalled No peer has connected in. You can still download, and upload to peers who accept connections, but peers behind their own firewalls cannot reach you. See Port Forwarding.
  • The total upload and download speeds, and the Speed Limits.

Each torrent's row shows its size, progress, ratio (uploaded ÷ size), seeds and peers, and state. Its buttons:

Button Action
Pause / Resume Stop or start downloading and seeding this torrent.
Copy magnet link Copy the torrent's magnet link, to give to others.
Download .torrent file Download the torrent's .torrent file, to give to others.
Seeding limits Stop seeding once a ratio is reached, or after a number of hours seeding. Empty seeds forever.
Remove Stop the torrent. Its files stay in your library unless you choose Also delete its files.

Speed Limits

Speed Limits caps the total upload and download speed of all torrents, in KiB/s (0 is unlimited). Seeding can use all of your upload bandwidth; limit uploads to keep the rest of your network usable.

Sharing Files as a Torrent

You can make a torrent of a file or directory that is already in your library, and seed it from where it is.

To share a file or directory, select it in Files, then click Share.

Share as Torrent

Field Purpose
Trackers One per line. Trackers help peers find each other; peers also find each other without them (DHT). Two public trackers are offered by default.
Use these trackers next time Offer these trackers the next time you share.
Web seeds Optional, one per line. URLs where the same file can also be downloaded (for example, a copy on a website), so downloads never depend on peers alone.

Click Make Torrent. The torrent client reads every file to make the torrent, which takes a while for large files: about an hour for hundreds of gigabytes on a Raspberry Pi. The progress is shown, and you can cancel it. When it is done, copy its magnet link and give it to others, or download its .torrent file from the Torrents page.

The torrent is made in both torrent formats (v1 and v2), so every torrent client can download it.

A torrent cannot include:

  • WROLPi's config directory, or your whole media directory (which holds it).
  • Links to folders, or links to files outside your library.

Warning! Anything you share can be downloaded by anyone who has its magnet link. Only share files you have the right to share.

The qBittorrent WebUI

WROLPi uses qBittorrent to download and seed torrents. Its own interface (the WebUI) offers more detail, such as each torrent's peers and files.

To open the WebUI, click qBittorrent WebUI on the Torrents page.

The WebUI is served on port 8091 of your WROLPi (e.g. https://wrolpi.local:8091), to anyone on your network, without a password. WROLPi manages qBittorrent's settings, so the WebUI cannot change them. Torrents added or removed in the WebUI are added to or removed from WROLPi.

WROL Mode

WROL Mode stops all torrents, and turns the VPN off, so nothing reaches the Internet and nothing from it reaches your WROLPi. Torrents start again when WROL Mode is turned off.

Where Torrents are Kept

Each torrent is kept in WROLPi's config directory, as config/torrents/<hash>.yaml (its name, destination, and limits) with its <hash>.torrent file beside it. These configs are the source of truth: if qBittorrent's own state is lost, WROLPi adds every torrent back from them, and checks the files already downloaded rather than downloading them again.

A secondary WROLPi does not copy the primary's torrents.

Docker

In Docker, qBittorrent runs in the vpn container with the VPN. The host must provide /dev/net/tun.