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]

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?

-- 
Regards,
Mick

Reply via email to