mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 14:27:27 +00:00
tor: premium tor-url / tor-irc / tor routes over Tor
Add three premium-gated SSH routes:
ssh tor-url@host <url> one-shot HTTP(S) GET over Tor (host-side,
curl via SOCKS, 30s/2MB caps, http/https only)
ssh -t tor-irc@host <server> interactive IRC over Tor in the member's pod
ssh -t tor@host <command...> run any command over Tor (torsocks) in the pod
tor-url runs host-side and constrained; tor/tor-irc run inside the member's
isolated pod (new pods.Exec) so arbitrary/interactive commands are sandboxed,
never on the host. internal/tor wraps curl/torsocks/irssi. All gated by
ensurePremium; names reserved. setup.sh installs + enables tor (SOCKS
127.0.0.1:9050) and torsocks.
Note: tor-url is host-side and self-contained. tor/tor-irc still need the pod
image to carry torsocks+irssi and reach the Tor SOCKS — follow-up.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
ac4b0873d9
commit
4be87440d5
5 changed files with 285 additions and 1 deletions
6
setup.sh
6
setup.sh
|
|
@ -87,8 +87,14 @@ apt-get update -qq
|
|||
apt-get install -y -qq \
|
||||
git ca-certificates curl ufw ffmpeg unzip \
|
||||
podman uidmap slirp4netns fuse-overlayfs \
|
||||
tor torsocks \
|
||||
debian-keyring debian-archive-keyring apt-transport-https >/dev/null
|
||||
|
||||
# Tor SOCKS proxy for the tor-url@/tor@/tor-irc@ routes. Ships listening on
|
||||
# 127.0.0.1:9050 by default; keep it loopback-only (never expose it).
|
||||
log "enabling tor (SOCKS 127.0.0.1:9050)"
|
||||
systemctl enable --now tor >/dev/null 2>&1 || warn "tor service not enabled — tor-url@ will be unavailable"
|
||||
|
||||
# yt-dlp from pip is fresher than apt; fall back to apt if pip is unavailable.
|
||||
if ! command -v yt-dlp >/dev/null; then
|
||||
log "installing yt-dlp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue