ProxyChains - a tool that forces any TCP connection made by any given application to follow through proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy.

ProxyChains is set up to use TOR by default.

Install Packages

apt install tor proxychains

Configure

vim /etc/proxychains.conf

TOR with Proxychains

Start TOR

systemctl start tor

Run Firefox with Proxychains

proxychains firefox

Run Nmap with Proxychains

proxychains nmap