If you didn’t knew torsocks, it’s a tool to safely route various commands and applications over Tor. Let’s install it first:

Updating repos & intstalling requirements
  • $ sudo apt update && sudo apt install autoconf automake libtool gcc -y
Cloning the gitlab repository
  • $ git clone https://gitlab.torproject.org/tpo/core/torsocks/ && cd torsocks
Compiling the package
  • $ ./autogen.sh && ./configure && make && sudo make install
Now we can try to use any application/command by calling torsocks before
  • $ torsocks firefox-esr will route your browser over Tor
  • $ torsocks curl <arg> will route curl over Tor
You also can start a new terminal session fully routed over Tor by doing --shell
  • $ torsocks --shell
  • $ (your terminal is now using Tor)