-
$ sudo pacman -S tor $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more. $ sudo pacman -S nyx $ ## torsocks safely torify applications $ sudo pacman -S torsocks
-
$ sudo systemctl enable --now tor.service
-
$ systemctl status tor.service $ ss -nlt
-
$ wget -qO - https://api.ipify.org; echo
-
$ torsocks wget -qO - https://api.ipify.org; echo $ ## must show a different ip address
-
$ source torsocks on $ wget -qO - https://api.ipify.org; echo $ ## must show the ip address of tor node
-
$ echo ". torsocks on" >> ~/.bashrc
-
$ source torsocks off
-
ControlPort 9051
-
Convert your password from plain-text to hash
$ set +o history # unset bash history $ tor --hash-password your_password $ set -o history # set bash history
-
HashedControlPassword your_hash
-
$ sudo systemctl restart tor.service
-
$ ss -nlt
-
$ sudo pacman -S gnu-netcat
-
$ echo -e 'PROTOCOLINFO\r\n' | nc 127.0.0.1 9051
-
$ set +o history $ echo -e 'AUTHENTICATE "my-tor-password"\r\nsignal NEWNYM\r\nQUIT' | nc 127.0.0.1 9051 $ set -o history