File: README.runsocks

package info (click to toggle)
socks4-server 4.3.beta2-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 404; sh: 52
file content (36 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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.