From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SUJ5b-0005mK-GK for garchives@archives.gentoo.org; Tue, 15 May 2012 14:51:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21593E0BBD; Tue, 15 May 2012 14:50:41 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id AC4B2E0BC2 for ; Tue, 15 May 2012 14:48:52 +0000 (UTC) Received: by bkcjk13 with SMTP id jk13so5551669bkc.40 for ; Tue, 15 May 2012 07:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=pJsuDkhIw9aRSuCXh9qLmC8k3Cn5Hbox6oA6lCXocHg=; b=xa8YHZpx3ZbUgqt2lFTO8OpQEJAab0XxoOEds2NdMNoRQJJdSGnuLygn4UcyUOfXdM ThVi468DBsDDRgIlU4Y9pTyAAyjVHnpkL6aAnlBBU1W61tfFAfcnMdr3oLLwUKcVBWnF fU91WbktHj0y0AuKl6oB3wHMmRAsAR7FqR7KvUs80MovyrTuc3OjwbjPZE3nAIWv6cbF cNO3p2jkIucOLmzOpgz36OdJEbE79sb36+D8vkwI6ZMBqx/EUJpLLZFpg5jdE0/2iZZO CSlmQEimFh6fpUumXN5/tzaPyhlBRmZMZn9QQ2aVZ/AHiS4EW58Ug1bf15gzWo4wmCoH QB8A== Received: by 10.204.156.137 with SMTP id x9mr4702032bkw.135.1337093331750; Tue, 15 May 2012 07:48:51 -0700 (PDT) Received: from khamul.example.com (196-209-227-85.dynamic.isadsl.co.za. [196.209.227.85]) by mx.google.com with ESMTPS id h18sm42320376bkh.8.2012.05.15.07.48.48 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 07:48:50 -0700 (PDT) Date: Tue, 15 May 2012 16:45:57 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Socks-ifying an application Message-ID: <20120515164557.5b18a56c@khamul.example.com> In-Reply-To: References: Organization: Internet Solutions X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 8f62245a-3d1c-4cc1-89ea-2d26e8d54e40 X-Archives-Hash: 8ef97911abb1c5ecef3bc0b0ccbaa821 On Tue, 15 May 2012 10:50:43 +0100 Mick wrote: > I am not sure what I am doing wrong, but I can't seem to be able to > get tsocks, or proxychains working. > > I set up a socks server virtue of ssh dynamic port forwarding: > > $ ssh -D localhost:12465 root@10.10.10.12 This part is fine. I tried the next part. It didn't work nicely for me. So what I do now is: Firefox + FoxyProxy and now I can set my proxy individually per site. All the internal work stuff accessed from home goes through the proxy, except the three sites only viewable from the outside; and everything else bypasses the proxy. Much better than trying to deal with a global proxy (although foxyproxy will do that too if that is what you need. And dispense with all the tsocks stuff. I see recent KDE now also supports socks. This is a nice new addition so konqueror can also use it. > > Then I run: > > $ . tsocks on > $ tsocks sh > LD_PRELOAD="/lib/libtsocks.so" > $ tsocks firefox > > or tsocks kmail, or tsocks . > > The connection is not sent out via the server on 10.10.10.12. The > terminal that ran tsocks does not reveal anything in terms of a > connection taking place, at least not when I run firefox. With > Chromium things are more revealing: > > $ . tsocks on > $ tsocks sh > LD_PRELOAD="/lib/libtsocks.so" > $ tsocks chromium > [4591:4604:405018909:ERROR:object_proxy.cc(239)] Failed to call > method: org.freedesktop.DBus.Error.ServiceUnknown: The name > org.freedesktop.NetworkManager was not provided by any .service files > ERROR: ld.so: object '/lib/libtsocks.so' from LD_PRELOAD cannot be > preloaded: ignored. > > > Exporting like this, also fails to load it for chromium: > > $ export LD_PRELOAD=/lib/libtsocks.so > $ tsocks sh > LD_PRELOAD="/lib/libtsocks.so" > $ tsocks chromium > [5052:5065:973215173:ERROR:object_proxy.cc(239)] Failed to call > method: org.freedesktop.DBus.Error.ServiceUnknown: The name > org.freedesktop.NetworkManager was not provided by any .service files > ERROR: ld.so: object '/lib/libtsocks.so' from LD_PRELOAD cannot be > preloaded: ignored. > > > > If I set up socks within the firefox application Advanced/Network > settings, without using tsocks, the connection succeeds through the > ssh tunnel. Therefore I am confident that the tunnel itself is > working as a socks5 server. > > > This is what I have in /etc/socks/tsocks.conf > > server = 127.0.0.1 > server_type = 5 > server_port = 12465 > > Similarly, I get no connection if I use proxychains. > > Any idea what I am doing wrong here? > -- Alan McKinnnon alan.mckinnon@gmail.com