mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 20:06:22 -05:00
Torrents over a fail-closed VPN (#1026)
Torrents reach the Internet only through a fail-closed VPN (WireGuard or OpenVPN, any provider), so peers never see a WROLPi's own address. - A network namespace (Pi/Debian) or the vpn container (Docker) with an nftables kill switch; NAT-PMP or fixed port forwarding. - qBittorrent inside it, sandboxed; torrents kept in config/torrents/. - Torrent download form, Torrents page, Share as torrent, nav warning, and VPN settings in both Controller UIs. - Help docs: Torrents, and The VPN for Torrents. QA'd on a Raspberry Pi with a real provider over WireGuard and OpenVPN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
633b125dc6
commit
2c3300b8b0
80 changed files with 7516 additions and 45 deletions
|
|
@ -83,7 +83,9 @@ LOCAL_PATHS = (
|
|||
# This machine's settings and state.
|
||||
"/config/wrolpi.yaml", "/config/sync.yaml", "/config/controller.yaml", "/config/fstab.yaml",
|
||||
"/config/.fstab-migrated", "/config/smb.conf", f"/{STATE_FILE}", "/config/.wrol_mode", "/config/ssl",
|
||||
"/config/cookies.txt", "/config/cookies.txt.enc", "/config/backup",
|
||||
"/config/cookies.txt", "/config/cookies.txt.enc", "/config/backup", "/config/vpn",
|
||||
# This machine's torrents.
|
||||
"/config/torrents",
|
||||
# The database arrives as a snapshot, in its own step.
|
||||
"/config/wrolpi.db", "/config/wrolpi.db-wal", "/config/wrolpi.db-shm", "/config/wrolpi.db.lock",
|
||||
f"/{SYNC_DIRECTORY}",
|
||||
|
|
@ -94,7 +96,7 @@ LOCAL_PATHS = (
|
|||
# path is never deleted, so a secondary kept the write-ahead log of a map search database whose database the
|
||||
# primary had replaced, and SQLite would apply that log to the new database. (rsync keeps its own partial
|
||||
# directory itself.)
|
||||
UNFINISHED_PATTERNS = (".partial", "*.part", "*.aria2", "*.ytdl", "*.db-wal", "*.db-shm")
|
||||
UNFINISHED_PATTERNS = (".partial", "*.part", "*.aria2", "*.ytdl", "*.!qB", "*.db-wal", "*.db-shm")
|
||||
|
||||
|
||||
class SyncError(Exception):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue