reopen 471112
thanks.

> tsocks (1.8beta5-9) unstable; urgency=low
> .
>   * Applied `fallback' patch to allow to fall back to establish
>     direct connection instead of sockified if the fallback = yes
>     option found in the tsocks.conf to make sure that the user
>     won't open a direct one accidentally. (Closes: #471112)

I think you may misunderstand the bug report.  I want the default
"fallback" case to be completely transparent -- no error messages or
warnings like the following:

48710,2> apt-src  install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 589kB of source archives.
0% [Working]01:57:37 libtsocks(27552): Connection needs to be made via
default server but the default server has not been specified. Falling back
to direct connection.
Get:1 http://ftp.debian.org unstable/main lvm2 2.02.33-2 (dsc) [758B]
Get:2 http://ftp.debian.org unstable/main lvm2 2.02.33-2 (tar) [574kB]
Get:3 http://ftp.debian.org unstable/main lvm2 2.02.33-2 (diff) [13.9kB]
Fetched 589kB in 12s (45.5kB/s)
gpg: Signature made Tue Mar 11 08:45:31 2008 EST using DSA key ID 58B1181E
gpg: Can't check signature: public key not found
dpkg-source: extracting lvm2 in lvm2-2.02.33
dpkg-source: unpacking lvm2_2.02.33.orig.tar.gz
dpkg-source: applying ./lvm2_2.02.33-2.diff.gz
dpkg-checkbuilddeps: Unmet build dependencies: libcman-dev (>> 2)
libdevmapper-dev (>> 2:1.02.24) libdlm-dev (>> 2) quilt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  diffstat libcman-dev libcman2 libdevmapper-dev libdlm-dev libdlm2 quilt
0 upgraded, 7 newly installed, 0 to remove and 119 not upgraded.
Need to get 511kB of archives.
After this operation, 1655kB of additional disk space will be used.
      ----see the error message?----->
0% [Working]01:57:51 libtsocks(27595): Connection needs to be made via
default server but the default server has not been specified. Falling back
to direct connection.
Get:1 http://mirror.internode.on.net testing/main diffstat 1.45-2 [22.3kB]
...

If the user has gone to the trouble of explicitly marking the default case
as "fallback = yes", then they already know when they are passing
connections to external networks, they won't be going through a socks
server.  They don't need reminding via an error/warning message.

In other words, the snippet would be something like this:

    if (path->address == NULL) {
       if (path == &(config->defaultserver)) {
         if (config->fallback) {
            return(realconnect(__fd, __addr, __len));
         } else {
           show_msg(MSGERR, "Connection needs to be made "
                            "via default server but "
                            "the default server has not "
                           "been specified. Fallback is 'no' so "
                            "coudln't establish the connection.\n");
         }
    }

I am using tsocks to get into specific networks behind firewalls.  For
every other network, I want tsocks to just pass the connection straight
through to glibc.  If it does this, then I can put tsocks into my
$LD_PRELOAD, and I don't have to do anything special when I chop and
change between any commands that need to access those firewalled networks,
and commands that need to access the greater internet at large (the
latter, with no noticable performance decrease or other bad effects when I
disable the above error message).  In fact, I can set the LD_PRELOAD for
my entire window manager, and don't have to touch it for any of my
subshells!  But it does rely on being able to tell libtsocks not to
complain about connections I have already told it that I don't want it
handling them.


Incidentally, my man page had two copies of the fallback paragraph, but I
can't see how this happened from the patches in the src-deb.

-- 
TimC
Jun 26 14:08:17 kernel: troll-o-meter (pid 15134) killed: memory exhausted



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to