If an applications directly supports SOCKS proxies you can pass it the IP of the Tor router directly by whatever means the application supports.
Some, like the Void package manager XBPS support the
SOCKS_PROXY environment variable. Others, like Monero, will take the proxy IP as command line argument.
If an application lacks direct SOCKS support, the
torsocks command can usually be used to transparently route that application's traffic through Tor anyway.
Just prepend a command with "
torsocks -a 172.18.0.2 -P 9050 --isolate ".
If your host is correctly connected to the Internet you should be able to establish a connection via Tor. Try it:
curlto use the Tor router as proxy:
curl --proxy socks5h://172.18.0.2:9050 https://check.torproject.org/api/ip
torsocks -a 172.18.0.2 -P 9050 --isolate curl https://check.torproject.org/api/ip
Note that your IP displays differently on every invocation as every connection establishes a new Tor circuit.
monero-wallet-cli --proxy 172.18.0.2:9050 --untrusted-daemon --daemon-host xmrag4hf5xlabmob.onion1
youtube-dl --proxy socks5://172.18.0.2:`shuf -n1 -i 9050-9059` <VIDEO_ID>
SOCKS_PROXY=socks5://172.18.0.2:9050 xbps-install -Su
See moneroworld.com for a list of Tor remote nodes.