_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
tor —
the onion router - config and
usage.
CONFIG
Sample file can be found at /etc/torrc and /etc/torrc.sample.
SOCKS
To enable the socks5 proxy, uncomment the line:
SOCKSPort 127.0.0.1:9050
USAGE
env
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.
SLACKWARE
The package is available in SlackBuilds.
Permissions
# groupadd -g 220 tor # useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor
Running
# chmod +x /etc/rc.d/rc.tor # /etc/rc.d/rc.tor start
Automatic start/stop
/etc/rc.d/rc.local
if [ -x /etc/rc.d/rc.tor ]; then
/etc/rc.d/rc.tor start
fi
if [ -x /etc/rc.d/rc.tor ]; then
/etc/rc.d/rc.tor stop
fi
TORSOCKS
Some programs may not accept a socks5 proxy, torsocks can be used for those cases.
Running
torsocks COMMANDEnable for shell
$ . 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.
COMPATIBILITY
The following programs have been tested using the socks5 proxy:
| program | | http | | https | | torsocks | | command line argument |
| curl | | yes | | yes | | no | | --socks5
IP[:PORT] |
| wget | | no socks5 | | no socks5 | | yes | | |
| lynx | | yes | | yes | | yes | |
-socks5_proxy=IP[:PORT] |
curl
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
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
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.
TODO
| - Check running services through tor. |
SEE ALSO
- ArchLinux manpages: tor(1) , torsocks(1)
links
| - tor |