.Dd Created:2025-11-23|Updated:2025-11-24| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .Dt TOR oh .Os linux , OpenBSD 7.8 | .Nm tor .Nd the onion router - config and usage. .Sh CONFIG Sample file can be found at /etc/torrc and /etc/torrc.sample. .Ss SOCKS To enable the socks5 proxy, uncomment the line: .Li SOCKSPort 127.0.0.1:9050 .Sh USAGE .Ss env The variable http_proxy can be set as: .Li http_proxy=socks5://127.0.0.1:9050 The variable is accepted by many programs, such as curl. Many programs have a proxy option. .Sh SLACKWARE The package is available in SlackBuilds. .Ss Permissions .obdl # groupadd -g 220 tor # useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor .Ed .Ss Running .obdl # chmod +x /etc/rc.d/rc.tor # /etc/rc.d/rc.tor start .Ed .Ss Automatic start/stop .Pa /etc/rc.d/rc.local .obdl if [ -x /etc/rc.d/rc.tor ]; then /etc/rc.d/rc.tor start fi .Ed .Pa /etc/rc.d/rc.local_shutdown .obdl if [ -x /etc/rc.d/rc.tor ]; then /etc/rc.d/rc.tor stop fi .Ed .Sh TORSOCKS Some programs may not accept a socks5 proxy, torsocks can be used for those cases. .Ss Running .Dl torsocks COMMAND .Ss Enable for shell .obdl $ \&. 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. .Ed .Sh COMPATIBILITY The following programs have been tested using the socks5 proxy: .obc program no_socks5 no_socks5s torsocks argument .It Sy program Ta | Sy http Ta | Sy https Ta | Sy torsocks Ta | Sy command line argument .It curl Ta | yes Ta | yes Ta | no Ta | Li --socks5 IP[:PORT] .It wget Ta | no socks5 Ta | no socks5 Ta | yes Ta | .It lynx Ta | yes Ta | yes Ta | yes Ta | Li -socks5_proxy=IP[:PORT] .El .Ss 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 .Li --socks5 IP[:PORT] \&. It does not work through torsocks. .Ss 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. .Ss 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 .Li -socks5_proxy=IP[:PORT] and works with torsocks. .Sh TODO .obc2 .It - Check running services through tor. .El .Sh SEE ALSO .oxr wget oh .Xr lynx oh .opsy ArchLinux manpages: .oxr tor 1 .Xr torsocks 1 .Ss links .obc2 .It - Lk https://www.torproject.org/ tor .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com