Nipe: Route All Your Traffic Through Tor with One Command
Ever wanted to route all your machine's traffic through the Tor network, but felt like setting up a transparent proxy was a bit of a chore? Maybe you're doing some security research, need an extra layer of anonymity for specific tasks, or just want to see how your app behaves when its traffic is bounced around the globe. Manually configuring your system's gateway to use Tor isn't always straightforward.
That's where Nipe comes in. It's an open-source tool that automates the process, turning your device into a Tor router with minimal fuss. Think of it as a quick on/off switch for Tor-based network anonymity.
What It Does
Nipe is a Perl script that configures your system's network routing tables and iptables (or nftables) to redirect all traffic through the Tor network. Instead of just proxy-aware applications, all traffic from your machine—including command-line tools and background services—gets routed through Tor. It handles the nitty-gritty of making Tor your default network gateway, so you don't have to.
Why It's Cool
The clever part is in its simplicity and scope. While tools like the Tor Browser bundle protect your web browsing, Nipe aims to anonymize your entire machine's internet footprint. It's a single script that manages the complex firewall rules for you.
Some key features:
- One-Command Operation: Start it with
nipe start, stop it withnipe stop. It manages its own state. - Automatic Geo-IP Verification: It includes a simple check (
nipe status) that shows your current perceived IP address and country, so you can instantly verify it's working. - Lightweight and Self-Contained: It's mostly just a Perl script with a few dependencies. No heavy GUI or complex configuration needed.
- Handles the Dirty Work: It automatically sets up the correct rules to prevent DNS leaks and routes all traffic through the Tor daemon it starts.
Perfect for developers who need a quick, system-level anonymized environment for testing APIs, scraping data, or conducting security research in a more private manner.
How to Try It
Getting started is straightforward. You'll need Perl and a few CPAN modules installed first.
Clone the repository:
git clone https://github.com/htrgouvea/nipe.git cd nipeInstall the dependencies. On a Debian-based system (like Ubuntu), you can use: