summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2004-02-17 00:46:59 +0000
committerPeter Palfrader <peter@palfrader.org>2004-02-17 00:46:59 +0000
commita9ec08e36251b041c8206e7187e237f42475b19d (patch)
treefafdee2c5069ca497247ad2362712b31e90f973b
parent19a1c80f25adcefcc6dc26152d6e93a33f31df3e (diff)
downloadtor-a9ec08e36251b041c8206e7187e237f42475b19d.tar.gz
tor-a9ec08e36251b041c8206e7187e237f42475b19d.zip
Add torify
svn:r1064
-rwxr-xr-xcontrib/torify7
-rw-r--r--contrib/torify.123
-rw-r--r--contrib/tsocks-tor.conf7
3 files changed, 37 insertions, 0 deletions
diff --git a/contrib/torify b/contrib/torify
new file mode 100755
index 0000000000..fd88545245
--- /dev/null
+++ b/contrib/torify
@@ -0,0 +1,7 @@
+#! /bin/sh
+# Wrapper script for use of the tsocks(8) transparent socksification library
+# See the tsocks(1) and torify(1) manpages.
+
+TSOCKS_CONF_FILE=/etc/tor/tsocks.conf
+export TSOCKS_CONF_FILE
+exec tsocks "$@"
diff --git a/contrib/torify.1 b/contrib/torify.1
new file mode 100644
index 0000000000..0bb6c1b4e8
--- /dev/null
+++ b/contrib/torify.1
@@ -0,0 +1,23 @@
+.TH torify 1 "" Feb-2004 ""
+.\" manual page by Peter Palfrader
+.SH NAME
+.LP
+torify \- wrapper for tsocks and tor
+
+.SH SYNOPSIS
+\fBtorify\fP\ \fIapplication\fP\ [\fIapplication's\ arguments\fP]
+
+.SH DESCRIPTION
+\fBtorify\fR is a simple wrapper that calls tsocks with a tor specific
+configuration file.
+
+Tsocks itself is wrapper between the tsocks library and the application what
+you would like to run socksified.
+
+Please note that since tsocks uses LD_PRELOAD this cannot be applied to suid
+binaries.
+
+.SH SEE ALSO
+.BR tor (1),
+.BR tsocks (1),
+.BR tsocks.conf (5).
diff --git a/contrib/tsocks-tor.conf b/contrib/tsocks-tor.conf
new file mode 100644
index 0000000000..b3293969f7
--- /dev/null
+++ b/contrib/tsocks-tor.conf
@@ -0,0 +1,7 @@
+# This is the configuration for libtsocks (transparent socks) for use
+# with tor, which is providing a socks server on port 9050 by default.
+#
+# See tsocks.conf(5) and torify(1) manpages.
+
+server = 127.0.0.1
+server_port = 9050