Revision 2 of 2026-11-25 20:31 UTC by tux, the current one. Current version - History
Tor
5.1
Tor sends your connections through three relays of volunteers, so the sites you visit do not see your IP address and your provider does not see which sites you visit. SliTaz packages the Tor client: it runs as a local SOCKS proxy that your browser and other programs use.
The Tor Project's Tor Browser is not packaged and was not tested on SliTaz. Firefox through Tor hides your address, but it is not as private as Tor Browser: see the tips below.
Install
# spk-add tor
The package has no boot script and no graphical tool (Vidalia is
gone): you start tor yourself, as your user.
Start Tor
As your user, not root:
$ tor
Tor reads /etc/tor/torrc, where every line is a comment, so it runs
with its defaults: a SOCKS proxy on 127.0.0.1 port 9050, and its
data in ~/.tor. Wait for the line Bootstrapped 100% (done). Leave
the terminal open; Ctrl+C stops Tor.
To run it in the background instead:
$ tor --RunAsDaemon 1
To check your own settings, put them in a file and test it:
$ cp /etc/tor/torrc ~/.torrc
$ tor --verify-config -f ~/.torrc
Firefox through Tor
In Firefox, open Settings, search for "proxy" and press Settings under Network Settings. Then:
- choose Manual proxy configuration;
- SOCKS Host:
127.0.0.1, Port:9050, SOCKS v5; - tick Proxy DNS when using SOCKS v5, or your DNS requests leave outside Tor;
- press OK, then open check.torproject.org.
Choose No proxy again to browse without Tor. A second Firefox profile kept for Tor avoids switching back and forth:
$ firefox-official -P
Command line
curl speaks SOCKS:
$ curl --socks5-hostname 127.0.0.1:9050 https://check.torproject.org/api/ip
--socks5-hostname sends the name to Tor, so the DNS request goes
through Tor too. The busybox wget has no SOCKS support: use curl, or
Privoxy below.
Privoxy, for programs that only know HTTP proxies
Privoxy is an HTTP proxy that can forward everything to Tor.
# spk-add privoxy
# echo 'forward-socks5t / 127.0.0.1:9050 .' >> /etc/privoxy/config
# trame service start privoxy
# trame service enable privoxy
The last line starts it at every boot. Privoxy listens on
127.0.0.1:8118: give this address as HTTP proxy to the program, or
set the variable:
$ export http_proxy=http://127.0.0.1:8118
Tips
- Run Tor as your user, never as root.
- Tor hides your address, not who you are: logging in to a site, or a Firefox with your usual cookies and add-ons, still tells it. Use a separate profile, and private windows.
- To start Tor at login, write a
.desktopfile in~/.config/autostart/withExec=tor --RunAsDaemon 1; the Handbook explains autostart.
Troubleshooting
Tor stays below 100%: check the clock (date). Tor refuses to
connect when the time is far off; see time.
Could not bind to 127.0.0.1:9050: Address already in use: a Tor is
already running. ps | grep tor shows it.
Tor is blocked on your network: the old bridges of this page are gone. Today's bridges need a pluggable transport (obfs4, Snowflake), which SliTaz does not package.