Tor is a privacy tool that routes your internet traffic through multiple encrypted servers, helping you stay anonymous online. In Termux, Tor works as a local SOCKS proxy that you can use inside apps or with command-line tools like curl, wget, and browsers.
Installation
Update packages:
pkg update && pkg upgrade -yInstall Tor:
pkg install tor -yCheck Tor version:
tor --versionStart Tor service:
tor(Keep this terminal open while using Tor)
Usage Commands
Check if Tor is running (shows circuits and connections):
tor --list-fingerprintUse curl with Tor proxy:
curl --socks5 127.0.0.1:9050 https://check.torproject.org/Use wget with Tor proxy:
wget -e use_proxy=yes -e https_proxy=socks5://127.0.0.1:9050 https://example.comUse torsocks for any app:
torsocks curl https://api.ipify.orgCheck your public IP through Tor:
torsocks curl https://checkip.amazonaws.comStart Tor quietly (less logs):
tor --hushStop Tor (close the session):
Just press:
CTRL + CTor config file location:
nano $PREFIX/etc/tor/torrcRestart Tor after editing config:
tor -f $PREFIX/etc/tor/torrc