Share

tsocks

Code

Programming Languages: C

License: GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2001-01-04 cvs -d:pserver:anonymous@tsocks.cvs.sourceforge.net:/cvsroot/tsocks login

cvs -z3 -d:pserver:anonymous@tsocks.cvs.sourceforge.net:/cvsroot/tsocks co -P modulename

Show:

What's happening?

  • Comment: INF loop while connect()ing

    recv() return rc

    2009-11-11 06:02:36 UTC by xuefer

  • INF loop while connect()ing

    this bug is reproduced with random chance lsof outputs: python2.6 26281 ircbot 3u IPv4 239290106 TCP 192.168.10.1:50849->192.168.10.1:9050 (CLOSE_WAIT) gdb (gdb) bt #0 0xb7d175e3 in ?? () from /lib/libpthread.so.0 #1 0xb7d17de0 in recv () from /lib/libpthread.so.0 #2 0xb7ee55f8 in handle_request (conn=0x8895098) at tsocks.c:986 #3 0xb7ee766c in connect (__fd=3...

    2009-11-07 12:14:35 UTC by xuefer

  • Followup: Solved

    Four years after the initial query, two years after my pondering, I discover that the actual tsocks program is itself a posix script, and that libtsocks works fully via shell environment variables, including on that sets the tsocks configuration file. I'm also a far better scripter these days. I have fully implemented ALL configuration options on the command line, plus several various...

    2009-05-29 23:14:51 UTC by khopesh

  • res_init() is not always implicitly called

    I have built tsocks with --disable-hostnames, --enable-socksdns. On my Debian sid system, an application using getpeername does not seem to implicly call res_init(), so that the resolver options are never set to use TCP DNS methods. The only way I found to fix this was to explicitly call res_init() at the end of tsocks _init().

    2009-02-27 19:53:28 UTC by runderwo

  • Followup: RE: Errors with LD

    Does the socksification fail with other executables? What is the output of the following?: objdump -T /usr/lib/libtsocks.so.

    2009-02-26 01:37:02 UTC by lindbergw

  • Errors with LD

    Hi there, I'm trying to get some random software (for a Violet Mir:ror) working through a SOCKS Proxy (SSH Tunnel) so that I can use it through my university's network - when I try to start the application, I get this PRELOAD error - can you cast any light on it? Software starts fine but obviously tsocks failed so it's not connected! Many thanks, Henri...

    2009-02-24 00:26:43 UTC by henri_cook

  • use environment variable to change server

    hi all, i did a little patch for tsocks to allow to override the proxy given in the config file with an environment variable. this is very useful for me, because sometimes i have more than one socks tunnel open (using SSH). if you want to override the configured proxy, just do something like this: export TSOCKS_PROXY=localhost:8888 to use localhost:8888 as socks proxy. i did the...

    2008-12-29 19:32:04 UTC by fabian_stietzel

  • Comment: Error 56 on FreeBSD

    The following is a revised and properly wrapped 106-line patch (metacharacters aside): diff -ur tsocks-1.8beta5/tsocks.c tsocks-1.8/tsocks.c --- tsocks-1.8beta5/tsocks.c 2008-08-24 08:47:43.156401152 -0400 +++ tsocks-1.8/tsocks.c 2008-08-24 08:48:26.968740664 -0400 @@ -99,6 +99,9 @@ static int read_socksv4_req(struct connreq *conn); static int read_socksv5_connect(struct connreq...

    2008-08-24 12:56:11 UTC by lindbergw

  • What should be done about handling non-blocking sockets?

    The socket of the actual connect to the SOCKS server does not have to be in non-blocking mode just because the socket original connect was. Retaining the non-blocking mode of new connections seems to cause problems with some applications using the transparent SOCKS library. Unfortunately, toggling non-blocking places the application at the mercy of the SOCKS server which might itself be...

    2008-08-24 12:20:41 UTC by lindbergw

  • What should be done about handling non-blocking sockets?

    The socket of the actual connect to the SOCKS server does not have to be in non-blocking mode just because the socket original connect was. Retaining the non-blocking mode of new connections seems to cause problems with some applications using the transparent SOCKS library. Unfortunately, toggling non-blocking places the application at the mercy of the SOCKS server which might itself be...

    2008-08-24 12:09:27 UTC by lindbergw

Our Numbers