mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -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
|
|
@ -294,3 +294,29 @@ export async function runSync() {
|
|||
export async function cancelSync() {
|
||||
return controllerFetch('/sync/cancel', {method: 'POST'});
|
||||
}
|
||||
|
||||
// --- VPN (torrents reach the Internet only through it) ---
|
||||
|
||||
export async function getVpnStatus() {
|
||||
return controllerFetch('/vpn/status');
|
||||
}
|
||||
|
||||
export async function getVpnSettings() {
|
||||
return controllerFetch('/vpn/settings');
|
||||
}
|
||||
|
||||
export async function updateVpnSettings(settings) {
|
||||
return controllerFetch('/vpn/settings', {method: 'POST', body: JSON.stringify(settings)});
|
||||
}
|
||||
|
||||
export async function uploadVpnConfig(filename, content) {
|
||||
return controllerFetch('/vpn/config', {method: 'POST', body: JSON.stringify({filename, content})});
|
||||
}
|
||||
|
||||
export async function deleteVpnConfig() {
|
||||
return controllerFetch('/vpn/config', {method: 'DELETE'});
|
||||
}
|
||||
|
||||
export async function saveVpnAuth(username, password) {
|
||||
return controllerFetch('/vpn/auth', {method: 'POST', body: JSON.stringify({username, password})});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue