public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Socks-ifying an application
Date: Tue, 15 May 2012 16:45:57 +0200	[thread overview]
Message-ID: <20120515164557.5b18a56c@khamul.example.com> (raw)
In-Reply-To: <CAGOe-ezw43vv48mM5Gq2WM3Ht7dj844SoEqekN23cjJHV8Ewxw@mail.gmail.com>

On Tue, 15 May 2012 10:50:43 +0100
Mick <michaelkintzios@gmail.com> 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 <anything else>.
> 
> 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




  reply	other threads:[~2012-05-15 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15  9:50 [gentoo-user] Socks-ifying an application Mick
2012-05-15 14:45 ` Alan McKinnon [this message]
2012-05-15 15:57   ` Mick
2012-05-15 21:08     ` Alan McKinnon
2012-05-15 22:19       ` Mick
2012-05-16 10:01         ` Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120515164557.5b18a56c@khamul.example.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox