socks4-server (4.3.beta2-18) runsocks/README.runsocks

Summary

 runsocks/README.runsocks |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

    
download this patch

Patch contents

--- socks4-server-4.3.beta2.orig/runsocks/README.runsocks
+++ socks4-server-4.3.beta2/runsocks/README.runsocks
@@ -0,0 +1,36 @@
+There is now a preload library which enables every binary to use a
+socks gateway.
+
+The preload library /usr/lib/socks4/libsockspl.so can be loaded before
+the normal c library and replaces the accept, bind, connect and listen
+system-calls.
+
+You can use it in different ways:
+
+- set the environment variable LD_PRELOAD to libsockspl.so
+  and then run you program. e.g.:
+
+    LD_PRELOAD=/usr/lib/socks4/libsockspl.so; export LD_PRELOAD
+    telnet host.behind.firewall
+
+  or
+
+    LD_PRELOAD=/usr/lib/socks4/libsockspl.so telnet host.behind.firewall
+
+- use the shellscript runsocks which does just the above:
+
+    runsocks ssh host.behind.firewall
+
+- add a line 
+
+    /usr/lib/socks4/libsockspl.so
+  
+  to /etc/ld.so.preload to tell ALL binaries to use socks. But be
+  aware, if you mistype the line here. No binary will find the preload
+  library and all will fail to run.
+
+Note:
+
+If you are using ftp, remember to set passive mode, because it is not
+possible for the server to connect to your client backwards through
+your firewall.