_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

torthe onion router - config and usage.

Sample file can be found at /etc/torrc and /etc/torrc.sample.

To enable the socks5 proxy, uncomment the line: SOCKSPort 127.0.0.1:9050

back to top

The variable http_proxy can be set as: http_proxy=socks5://127.0.0.1:9050 The variable is accepted by many programs, such as curl. Many programs have a proxy option.

back to top

The package is available in SlackBuilds.

# groupadd -g 220 tor
# useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor

# chmod +x /etc/rc.d/rc.tor
# /etc/rc.d/rc.tor start

/etc/rc.d/rc.local

if [ -x /etc/rc.d/rc.tor ]; then
    /etc/rc.d/rc.tor start
  fi
/etc/rc.d/rc.local_shutdown
if [ -x /etc/rc.d/rc.tor ]; then
    /etc/rc.d/rc.tor stop
  fi

back to top

Some programs may not accept a socks5 proxy, torsocks can be used for those cases.

torsocks COMMAND

$ . torsocks on
Tor mode activated. Every command will be torified for this shell.
$ . torsocks off
Tor mode deactivated. Command will NOT go through Tor anymore.

back to top

The following programs have been tested using the socks5 proxy:

| | | |
curl | yes | yes | no |
wget | no socks5 | no socks5 | yes |
lynx | yes | yes | yes |

curl can use the http_proxy and https_proxy variables with a socks5 proxy and will use the http_proxy for https if needed. Additionally, it has the argument --socks5 IP[:PORT] . It does not work through torsocks.

wget can use the http_proxy and https_proxy variables, but not with a socks5 proxy, it requires torsocks and does not have a command line argument to use socks5.

lynx can use the http_proxy and https_proxy variables with a socks5 proxy, but will only use the variable corresponding to the protocol in use, it will not use the http_proxy when accessing an HTTPS site. It also has a command line argument -socks5_proxy=IP[:PORT] and works with torsocks.

back to top

- Check running services through tor.

back to top

wget , lynx

- ArchLinux manpages: tor(1) , torsocks(1)

- tor

back to top

ohazot | about | ohazot.com <admin@ohazot.com>

linux , OpenBSD 7.8 | Created:2025-11-23|Updated:2025-11-24|