Anonymize the entire system under TOR using a transparent iptables proxy, and
wipe the RAM on shutdown with pandora.
anonsurf routes all system traffic through TOR via iptables and also lets you
start/stop i2p. pandora overwrites the RAM on shutdown as a cold boot attack
mitigation.
This is an Arch Linux native package:
systemctl)tor user; iptables rules match on its UID/etc/tor/torrc is swapped at runtime (start/stop) and always restored —
your regular Tor configuration is never permanently modified/etc/resolv.conf is handled symlink-safe (works with systemd-resolved)PKGBUILD for makepkgOriginal Project from here, ported to Arch Linux.
./installer.sh
The installer pulls the official-repo dependencies (tor, iptables, curl,
psmisc, procps-ng), AUR dependencies, then builds and installs this package.
Run it as a normal user with sudo (makepkg refuses to run as root).
Optional flags:
--with-i2p — also install i2p-bin from the AUR for starti2p/stopi2p--with-bleachbit — also install bleachbit for cache cleaningOr build it manually:
makepkg -si
Optional dependencies (AUR):
| Package | Usage |
|---|---|
secure-delete | sdmem, required by pandora (RAM wipe) |
i2p-bin | I2P network support (anonsurf starti2p) |
bleachbit | Cache cleaning on anonsurf start/stop |
anonsurf {start|stop|restart|change|status|debug}
start — Route the whole system through Tor via iptables. Waits for Tor to
finish bootstrapping before reporting success.stop — Restore the original iptables, DNS, IPv6 and Tor settings.restart — Combines stop and start.change — Signal Tor (SIGHUP) to pick a new circuit/identity.status — Check whether AnonSurf is working properly.myip — Show your current (Tor) exit IP address (risky).debug — Dump diagnostics (iptables rules, Tor state, sockets, resolv.conf).I2P related features:
anonsurf starti2p # start i2p services
anonsurf stopi2p # stop i2p services
NOTE: run it as root (
sudo anonsurf start). While anonymous, only thetoruser may reach the network directly.
Pandora is enabled as a systemd unit (pandora.service) and automatically
wipes the RAM on shutdown. It can also be run manually:
pandora bomb
NOTE: this clears the entire system cache, including active SSH tunnels or sessions. To stop the auto-wipe on shutdown:
systemctl disable pandora.service
TransPort 9040, SocksPort 9050 and
DNSPort 53 — see /etc/tor/torrc.anon. If Tor cannot bind port 53 (a
privileged port) as the tor user, the shipped systemd drop-in
(tor.service.d/netcap.conf) grants CAP_NET_BIND_SERVICE./etc/sysctl.d/98-anonsurf.conf and re-enabled on stop.sudo anonsurf debug and
check that Tor has bootstrapped (Bootstrapped 100%) and is listening on
ports 53, 9040 and 9050.GPLv3 — see LICENSE.
4 commits
Hacker News (1)
Shell
99.0%
Anonymize the entire system under TOR using a transparent iptables proxy, and
wipe the RAM on shutdown with pandora.
anonsurf routes all system traffic through TOR via iptables and also lets you
start/stop i2p. pandora overwrites the RAM on shutdown as a cold boot attack
mitigation.
This is an Arch Linux native package:
systemctl)tor user; iptables rules match on its UID/etc/tor/torrc is swapped at runtime (start/stop) and always restored —
your regular Tor configuration is never permanently modified/etc/resolv.conf is handled symlink-safe (works with systemd-resolved)PKGBUILD for makepkgOriginal Project from here, ported to Arch Linux.
./installer.sh
The installer pulls the official-repo dependencies (tor, iptables, curl,
psmisc, procps-ng), AUR dependencies, then builds and installs this package.
Run it as a normal user with sudo (makepkg refuses to run as root).
Optional flags:
--with-i2p — also install i2p-bin from the AUR for starti2p/stopi2p--with-bleachbit — also install bleachbit for cache cleaningOr build it manually:
makepkg -si
Optional dependencies (AUR):
| Package | Usage |
|---|---|
secure-delete | sdmem, required by pandora (RAM wipe) |
i2p-bin | I2P network support (anonsurf starti2p) |
bleachbit | Cache cleaning on anonsurf start/stop |
anonsurf {start|stop|restart|change|status|debug}
start — Route the whole system through Tor via iptables. Waits for Tor to
finish bootstrapping before reporting success.stop — Restore the original iptables, DNS, IPv6 and Tor settings.restart — Combines stop and start.change — Signal Tor (SIGHUP) to pick a new circuit/identity.status — Check whether AnonSurf is working properly.myip — Show your current (Tor) exit IP address (risky).debug — Dump diagnostics (iptables rules, Tor state, sockets, resolv.conf).I2P related features:
anonsurf starti2p # start i2p services
anonsurf stopi2p # stop i2p services
NOTE: run it as root (
sudo anonsurf start). While anonymous, only thetoruser may reach the network directly.
Pandora is enabled as a systemd unit (pandora.service) and automatically
wipes the RAM on shutdown. It can also be run manually:
pandora bomb
NOTE: this clears the entire system cache, including active SSH tunnels or sessions. To stop the auto-wipe on shutdown:
systemctl disable pandora.service
TransPort 9040, SocksPort 9050 and
DNSPort 53 — see /etc/tor/torrc.anon. If Tor cannot bind port 53 (a
privileged port) as the tor user, the shipped systemd drop-in
(tor.service.d/netcap.conf) grants CAP_NET_BIND_SERVICE./etc/sysctl.d/98-anonsurf.conf and re-enabled on stop.sudo anonsurf debug and
check that Tor has bootstrapped (Bootstrapped 100%) and is listening on
ports 53, 9040 and 9050.GPLv3 — see LICENSE.
Hacker News (1)
4 commits
Shell
99.0%