On Tue, 15 May 2012 10:50:43 +0100
Mick <[email protected]> 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 [email protected]
 
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
[email protected]


Reply via email to