[tor-bugs] #8063 [Torsocks]: torsocks on doesn't work.
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Jan 28 12:10:41 UTC 2013
#8063: torsocks on doesn't work.
-------------------------+--------------------------------------------------
Reporter: okoeroo | Owner:
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: Torsocks | Version:
Resolution: | Keywords: shell
Parent: | Points:
Actualpoints: |
-------------------------+--------------------------------------------------
Changes (by rransom):
* status: closed => reopened
* resolution: fixed =>
Comment:
You just broke the correct usage of `torsocks on` for everyone who
bothered to RTFM or RTFS.
From the torsocks script:
{{{
# The second form allows for torsocks(8) to be switched on and off for a
# session (that is, it adds and removes torsocks from the LD_PRELOAD
environment
# variable). This form must be _sourced_ into the user's existing session
# (and will only work with bourne shell users):
#
# . /usr/bin/torsocks on
# telnet www.foo.org
# . /usr/bin/torsocks off
#
# Or
#
# source /usr/bin/torsocks on
# telnet www.foo.org
# source /usr/bin/torsocks off
#
# The third form creates a new shell with LD_PRELOAD set and is achieved
# simply by running the script with no arguments
#
# /usr/bin/torsocks
#
# When finished the user can simply terminate the shell with 'exit'
}}}
From the torsocks(1) man page:
{{{
[on|off]
this option adds or removes torsocks(8) from the
LD_PRELOAD
environment variable. When torsocks(8) is in this variable
all
executed applications are automatically socksified. If you
want
to use this function, you HAVE to source the shell script
from
yours, like this: "source /usr/bin/torsocks" or ".
/usr/bin/tor‐
socks"
Example:
". torsocks on" -- add the torsocks lib to LD_PRELOAD
". torsocks off" -- remove the torsocks lib from LD_PRELOAD
}}}
{{{
<without any argument>
create a new shell with LD_PRELOAD including torsocks(8).
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8063#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list