A privacy & security toolkit built on top of Nipe.
NipeX (Nipe Extended) is a fork of Nipe by Heitor Gouvêa, extended with additional privacy & security tools. Built for Debian-based systems (including Raspberry Pi OS), NipeX wraps Nipe's Tor gateway functionality together with a set of commands for encryption, anti-forensic cleanup, metadata stripping, MAC spoofing, and more — all from a single user-friendly CLI.
NipeX uses Nipe as its Tor engine. When you run nipex start-tor, it calls the upstream nipe.pl script to route your traffic through the Tor network as the default gateway.
The obfs4 bridge deployment feature that previously shipped with NipeX has been moved to a dedicated guide in the digital-independence wiki. See Obfs4 — Deployment & Theory Guide. It now uses
podman-compose(rootless) — no Docker daemon required.
privacy-on is a one-command privacy session that applies 11 changes to the system, snapshots the original state in RAM, and auto-restores it on the next boot via a self-disabling systemd unit. Non-persistent changes (MAC, swap, tmpfs, IPv6) reset automatically because the reboot undoes them.
nipex privacy-on # activate (snapshot + 11 changes)
nipex privacy-status # check status + IPv6 state + manual steps
nipex privacy-off # restore hostname + timezone + IPv6 nowWhat privacy-on does (11 steps):
| # | Action | Persistent? |
|---|---|---|
| 1 | Random Windows-style hostname (DESKTOP-XXXXXXX) |
Snapshot-restored |
| 2 | Timezone → UTC | Snapshot-restored |
| 3 | DNS → LibreDNS + Quad9 | Session only |
| 4 | MAC randomization (all physical interfaces) | Auto-reset on reboot |
| 5 | IPv6 disable | Auto-reset on reboot |
| 6 | Swap off (skips zram) | Auto-reset on reboot |
| 7 | /tmp as tmpfs |
Auto-reset on reboot |
| 8 | spoof-tz-env (prints TZ=UTC for shell) |
Shell-only |
| 9 | history-disable (prints shell instructions) |
Shell-only |
| 10 | Wipe shell history | Permanent |
| 11 | Wipe logs, journal, HSTS, zcompdump, editor histories | Permanent |
After privacy-on, manual steps required (shown at the end of the command output):
source <(nipex history-disable-export)— disable history in the current shellhistory -c && history -w— clear in-memory historynipex start-tor— change your IP via Tor (usenipex restart-torif it fails)
A systemd unit (nipex-privacy-restore.service) runs on the next boot (WantedBy=multi-user.target, After=local-fs.target dev-shm.mount) and restores hostname and timezone before login. The unit disables itself automatically after the first successful run — it will not run again on subsequent boots unless you re-activate privacy-on. The snapshot lives in /dev/shm/nipex-session/ (RAM-only, chmod 700, owned by root), so it disappears with the reboot.
If a non-critical step fails (e.g. DNS when no default interface is present), privacy-on logs a warning and continues. Only fatal failures abort the sequence.
Commands marked with
*innipex helprequiresudo. Commands marked with◦are included inprivacy-on.
| Command | Description |
|---|---|
privacy-on * ◦ |
Activate privacy mode (11 steps + snapshot) |
privacy-off * |
Restore hostname, timezone, IPv6 now |
privacy-status |
Show privacy mode status + IPv6 state |
privacy-restore * |
Internal — called by systemd on boot |
hostname [name] * ◦ |
Change system hostname |
timezone [zone] * ◦ |
Change system timezone |
dns * ◦ |
Set DNS to LibreDNS + Quad9 (via systemd-resolved) |
mac [iface] [mac] * |
Randomize or set MAC address |
mac-all * ◦ |
Randomize MAC on all physical interfaces |
swap-off * ◦ |
Disable swap (session only, skips zram) |
tmpfs * ◦ |
Mount /tmp as RAM (tmpfs, size via NIPEX_TMPFS_SIZE) |
ipv6-disable * ◦ |
Disable IPv6 (sysctl, flush addresses, non-persistent) |
ipv6-enable * |
Re-enable IPv6 |
| Command | Description |
|---|---|
spoof-tz-env [zone] ◦ |
Print TZ export for current shell session |
history-disable ◦ |
Print commands to disable shell history |
history-disable-export |
Print shell commands (for source <(...)) |
strip-meta <file> |
Strip metadata from file (exiftool) |
| Command | Description |
|---|---|
passwd [len] |
Generate password + Argon2id hash (default: 20 chars) |
ssh-key [name] |
Generate ed25519 SSH key |
ssh-copy [name] |
Copy public key to clipboard (Wayland: wl-copy; X11: xclip/xsel) |
ssh-add-auth [name] |
Add public key to authorized_keys |
ssh-del-auth [name] |
Remove public key from authorized_keys |
encrypt <file> |
Encrypt file with age (or gpg fallback) |
decrypt <file.age|file.gpg> |
Decrypt file |
encrypt-dir <dir> |
Encrypt directory → .tar.age / .tar.gpg |
decrypt-dir <archive> |
Decrypt + extract directory archive |
vault-init <vault-dir> |
Initialize gocryptfs vault |
vault-mount <vault> [mnt] |
Mount gocryptfs vault |
vault-umount <mnt> |
Unmount gocryptfs vault |
vault-status |
List mounted gocryptfs vaults |
| Command | Description |
|---|---|
wipe <path> |
Securely delete file/dir (shred, refuses symlinks) |
wipe-tmp * |
Wipe /tmp and /var/tmp |
wipe-history ◦ |
Wipe shell history (bash, zsh, python, fish) |
wipe-cache |
Wipe browser caches (Firefox, Chromium, Chrome, Brave) |
wipe-log * ◦ |
Wipe logs, journal, HSTS, zcompdump, editor histories |
| Command | Description |
|---|---|
fingerprint |
Show HTTP fingerprint + local environment info |
| Command | Description |
|---|---|
install-tor * |
Install Nipe dependencies + run nipe.pl install |
start-tor * |
Start Nipe (route traffic through Tor) |
stop-tor * |
Stop Nipe |
restart-tor * |
Restart Nipe |
status-tor * |
Show Nipe status |
| Command | Description |
|---|---|
help / version |
Show help / version |
install * |
Install nipex to /usr/local/bin |
- Debian-based system (Debian, Ubuntu, Raspberry Pi OS)
bash4.4+- Root access via
sudofor system-level commands
Optional dependencies (installed on demand by the relevant commands):
| Package | Used by |
|---|---|
macchanger |
mac, mac-all |
age |
encrypt, encrypt-dir (preferred) |
gpg |
fallback for encrypt, encrypt-dir |
wl-clipboard |
ssh-copy (Wayland, preferred) |
xclip |
ssh-copy (X11, fallback) |
xsel |
ssh-copy (X11, fallback) |
exiftool |
strip-meta (pkg: libimage-exiftool-perl) |
curl |
fingerprint |
argon2 |
passwd |
gocryptfs |
vault-init, vault-mount, vault-umount |
git clone https://git.ricalnet.my.id/rical/nipex.git
cd nipex
sudo apt update
sudo apt install -y \
macchanger openssl curl gpg age argon2 gocryptfs \
libimage-exiftool-perl xclip xsel wl-clipboard cpanminus
sudo cpanm --installdeps .
chmod +x nipex
./nipex install
nipex install-torThe install command copies nipex to /usr/local/bin/nipex and saves NIPE_DIR to ~/.nipex.conf.
nipex <command> [args]
nipex help # full list (legend: * = sudo, ◦ = in privacy-on)# Activate privacy session (11 steps + snapshot + auto-restore on next boot)
nipex privacy-on
# After activation, run the manual steps printed at the end:
source <(nipex history-disable-export)
history -c && history -w
nipex start-tor
# if start-tor fails:
nipex restart-tor
# Check status anytime
nipex privacy-status
# Restore now (or just reboot for auto-restore on next boot)
nipex privacy-offnipex hostname workstation-01
nipex timezone Asia/Jakarta
nipex dns
nipex mac wlan0
nipex mac-all
nipex swap-off
nipex tmpfs
nipex ipv6-disable
nipex ipv6-enable
nipex spoof-tz-env Asia/Tokyo
nipex history-disable
source <(nipex history-disable-export)
nipex strip-meta photo.jpg# Password + Argon2id hash
nipex passwd 32
# SSH keys
nipex ssh-key id_ed25519
nipex ssh-copy id_ed25519
nipex ssh-add-auth id_ed25519
nipex ssh-del-auth id_ed25519
# File encryption
nipex encrypt secrets.txt
nipex decrypt secrets.txt.age
# Directory encryption (archive)
nipex encrypt-dir ~/projects/private
nipex decrypt-dir ~/projects/private.tar.age /tmp/restore
# Vault (gocryptfs)
nipex vault-init ~/vault-secret
nipex vault-mount ~/vault-secret
# → mountpoint default: ~/vault-secret.open
cp ~/Documents/secret.pdf ~/vault-secret.open/
nipex vault-umount ~/vault-secret.open
nipex vault-statusnipex wipe ~/secret.txt
nipex wipe-tmp
nipex wipe-history
nipex wipe-cache
nipex wipe-lognipex fingerprintNote
fingerprint sends a direct HTTP request to httpbingo.org, exposing your real IP. Run nipex start-tor first if you want the request routed through Tor.
nipex install-tor
nipex start-tor
nipex stop-tor
nipex restart-tor
nipex status-torNipeX does not implement its own Tor client. It delegates to the upstream Nipe project:
nipex install-tor→perl nipe.pl installnipex start-tor→perl nipe.pl startnipex stop-tor→perl nipe.pl stopnipex restart-tor→perl nipe.pl restartnipex status-tor→perl nipe.pl status
For NipeX to find nipe.pl:
- Place
nipexin the same directory asnipe.pl, or - Set
NIPE_DIRin~/.nipex.conf:NIPE_DIR="/path/to/nipe"
All credit for the Tor gateway logic goes to the Nipe project by Heitor Gouvêa.
The obfs4 bridge deployment that was previously bundled with NipeX has been split into its own guide to keep NipeX focused on CLI privacy tooling.
- Location: Obfs4 — Deployment & Theory Guide
- Container runtime:
podman-compose(rootless) — no Docker daemon required - Why moved:
- Keeps NipeX dependency-light (no Docker/Compose required)
- obfs4 bridge operation has its own lifecycle and security model
- Podman's rootless mode is a better fit for privacy-focused deployments
If you need to run an obfs4 bridge, follow the guide above. NipeX continues to provide the nipex start-tor / stop-tor / status-tor commands for routing traffic through the Tor network as the default gateway.
NipeX reads ~/.nipex.conf if present.
| Variable | Purpose | Default |
|---|---|---|
NIPE_DIR |
Directory containing nipe.pl |
$SELF_DIR |
NIPEX_LOG |
Enable logging (1 = on, 0 = off) |
0 |
NIPEX_LOG_FILE |
Log file path | $HOME/.nipex.log |
NIPEX_TMPFS_SIZE |
tmpfs size for /tmp (used by tmpfs command) |
512M |
Example:
NIPE_DIR="/home/user/nipe"
NIPEX_LOG="0"
NIPEX_TMPFS_SIZE="1G"Note
When running as root, NipeX refuses to source ~/.nipex.conf if it is owned by a non-root user or if it is world-writable.
- Logging is off by default (
NIPEX_LOG=0) — writing logs to disk defeats the purpose of a privacy tool. shredis not effective on SSD/NVMe/CoW filesystems (btrfs, ZFS, overlayfs). NipeX prints a warning before wiping.wiperefuses symlinks and skips hardlinked files (to avoid corrupting other names).swap-offis session-only — does not modify/etc/fstabordphys-swapfile. Swap returns after reboot. zram devices are skipped on purpose.tmpfsfor/tmpis not persistent across reboots.ipv6-disableis session-only — resets on reboot. NipeX disables Router Advertisements, writes per-interface sysctl, and flushes existing global IPv6 addresses.dnsusessystemd-resolvedwhen available, sets the interface as the default DNS route (resolvectl default-route yes). Ifresolvectlis absent and/etc/resolv.confis a symlink (e.g. to the systemd-resolved stub), NipeX refuses to overwrite it with a plain file.privacy-ondoes NOT change your IP — you must runnipex start-tormanually. This is by design (explicit control over Tor).privacy-oncontinues on non-critical step failure (e.g. DNS when no default interface is present). Only fatal failures abort the sequence.privacy-restoreunit self-disables after the first successful run at boot. It will not run again on subsequent boots unlessprivacy-onis re-executed.vault-initprints a master key — save it offline. It is the only recovery method if you forget the password. Lost password = lost data.wipe-logrequires sudo for/var/logandjournalctl. It truncates active logs and deletes rotated logs. Truncating may break audit tools (last,who,ausearch).privacy-onwipes shell history and logs permanently. This cannot be undone. Manual steps (history -c && history -w,source <(...)) must be run by you — the script cannot affect your parent shell.sudoescalation is hardened — NipeX does not usesudo -E. Only the environment variables it needs (NIPE_DIR,NIPEX_LOG,NIPEX_LOG_FILE,TERM) are passed through to the root shell.
NipeX v0.1 rewrites the tool from an interactive menu into a CLI subcommand interface. Several features were removed to keep the tool focused and dependency-light:
| Old (v2.0 menu) | New (v0.1 CLI) |
|---|---|
manage_metadata (mat2) |
nipex strip-meta (exiftool) |
generate_password |
nipex passwd (Argon2id) |
change_hostname |
nipex hostname |
change_timezone |
nipex timezone |
default_dns |
nipex dns |
manage_mac |
nipex mac / nipex mac-all |
main_tools_menu (Nipe) |
nipex start-tor / stop-tor / status-tor |
manage_obfs4 |
Moved → obfs4 guide |
manage_firewall (UFW) |
Removed |
monitor_traffic (tcpdump) |
Removed |
run_rkhunter |
Removed |
check_file_integrity |
Removed |
service_status |
Removed |
system_monitor (htop) |
Removed |
- New:
privacy-on/privacy-off/privacy-status/privacy-restore— one-command privacy session with snapshot + auto-restore on the next boot - New:
ipv6-disable/ipv6-enable— session-only IPv6 control with RA disable and address flush - New: help legend
◦— marks commands included inprivacy-on - New:
spoof-tz-env,history-disable,history-disable-export,strip-meta(Privacy Extra) - New:
vault-init/vault-mount/vault-umount/vault-status(gocryptfs) - New:
passwd(Argon2id),wipe-log(logs, journal, HSTS, zcompdump, editor histories) - Changed: Tor is no longer auto-started by
privacy-on— user runsnipex start-tormanually (explicit IP control) - Changed:
privacy-restoreruns at boot, not at shutdown, and disables itself after the first successful run - Improved:
passwdguarantees requested length withouttr -dctruncation bias - Improved:
wipe-historyalso covers fish shell - Improved:
wipe-cachealso covers Brave (Brave-Browser/Brave-Origin) - Improved:
ssh-copysupports Wayland (wl-copy) andxselas fallbacks - Improved:
mac-allfilters out virtual interfaces (docker, br-, veth, wg, etc.) - Improved:
swap-offskips zram - Improved:
tmpfssize configurable viaNIPEX_TMPFS_SIZE - Improved:
sudoescalation no longer usessudo -E; only required env vars are passed through - Improved: config sourcing validates ownership and mode before
source - Improved: ShellCheck-clean (
bash -n nipex && shellcheck -x nipexproduces no output)
New in v0.1.2:
- Privacy mode:
privacy-on,privacy-off,privacy-status,privacy-restore - IPv6:
ipv6-disable,ipv6-enable - Crypto:
vault-init/vault-mount/vault-umount/vault-status(gocryptfs),passwd(Argon2id) - Anti-forensic:
wipe-log(logs, journal, HSTS, zcompdump, editor histories) - Privacy extra:
spoof-tz-env,history-disable,strip-meta
MIT — see LICENSE.md.
NipeX is a fork of Nipe, which is also MIT-licensed. Original Nipe copyright belongs to Heitor Gouvêa.
