AnonTraff rotates your external IP address by reloading the Tor service at a configurable interval. Traffic is proxied via SOCKS5 on 127.0.0.1:9050.
- Linux with
systemd torinstalled and reachable bysystemctl- Python ≥ 3.9
sudo apt install torFrom PyPI (recommended):
pip install anontraffFrom source:
git clone https://github.com/Gerijacki/anonTraff.git
cd anonTraff
make install # pip install -e . + man page + completions# Change IP 10 times, every 60 seconds
anontraff -i 60 -c 10
# Infinite rotation every 30 seconds
anontraff -i 30 -c 0
# Just check your current Tor IP
anontraff --check
# Interactive mode (prompts for interval and count)
anontraffConfigure your browser/app SOCKS5 proxy to 127.0.0.1:9050.
| Flag | Description |
|---|---|
-i, --interval SECS |
Seconds between IP changes (positive integer) |
-c, --count N |
Number of changes; 0 = infinite loop |
--check |
Print current Tor IP and exit |
-V, --version |
Show version |
-h, --help |
Show help |
Create ~/.config/anonTraff/config.toml to override defaults:
socks_host = "127.0.0.1"
socks_port = 9050
ip_check_url = "https://api.ipify.org"
default_interval = 60
default_count = 0
request_timeout = 10git clone https://github.com/Gerijacki/anonTraff.git
cd anonTraff
pip install -e ".[dev]"
make test # run pytest (coverage ≥ 80%)
make lint # ruff + mypy
make check # lint + testSee CONTRIBUTING.md for the full guide.
src/anontraff/
├── cli.py Click CLI + signal handler
├── config.py TOML config loader
├── deps.py Dependency detection
├── ip.py IP fetching via SOCKS5
├── tor.py Tor service management
└── ui.py Rich terminal output
tests/ pytest suite
MIT — see LICENSE.
AnonTraff is intended for educational and personal privacy use only. The developers are not responsible for any misuse.