Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] Socks-ifying an application
Date: Tue, 15 May 2012 09:52:58
Message-Id: CAGOe-ezw43vv48mM5Gq2WM3Ht7dj844SoEqekN23cjJHV8Ewxw@mail.gmail.com
1 I am not sure what I am doing wrong, but I can't seem to be able to get
2 tsocks, or proxychains working.
3
4 I set up a socks server virtue of ssh dynamic port forwarding:
5
6 $ ssh -D localhost:12465 root@10.10.10.12
7
8 Then I run:
9
10 $ . tsocks on
11 $ tsocks sh
12 LD_PRELOAD="/lib/libtsocks.so"
13 $ tsocks firefox
14
15 or tsocks kmail, or tsocks <anything else>.
16
17 The connection is not sent out via the server on 10.10.10.12. The terminal
18 that ran tsocks does not reveal anything in terms of a connection taking
19 place, at least not when I run firefox. With Chromium things are more
20 revealing:
21
22 $ . tsocks on
23 $ tsocks sh
24 LD_PRELOAD="/lib/libtsocks.so"
25 $ tsocks chromium
26 [4591:4604:405018909:ERROR:object_proxy.cc(239)] Failed to call
27 method: org.freedesktop.DBus.Error.ServiceUnknown: The name
28 org.freedesktop.NetworkManager was not provided by any .service files
29 ERROR: ld.so: object '/lib/libtsocks.so' from LD_PRELOAD cannot be
30 preloaded: ignored.
31
32
33 Exporting like this, also fails to load it for chromium:
34
35 $ export LD_PRELOAD=/lib/libtsocks.so
36 $ tsocks sh
37 LD_PRELOAD="/lib/libtsocks.so"
38 $ tsocks chromium
39 [5052:5065:973215173:ERROR:object_proxy.cc(239)] Failed to call
40 method: org.freedesktop.DBus.Error.ServiceUnknown: The name
41 org.freedesktop.NetworkManager was not provided by any .service files
42 ERROR: ld.so: object '/lib/libtsocks.so' from LD_PRELOAD cannot be
43 preloaded: ignored.
44
45
46
47 If I set up socks within the firefox application Advanced/Network
48 settings, without using tsocks, the connection succeeds through the
49 ssh tunnel. Therefore I am confident that the tunnel itself is
50 working as a socks5 server.
51
52
53 This is what I have in /etc/socks/tsocks.conf
54
55 server = 127.0.0.1
56 server_type = 5
57 server_port = 12465
58
59 Similarly, I get no connection if I use proxychains.
60
61 Any idea what I am doing wrong here?
62
63 --
64 Regards,
65 Mick

Replies

Subject Author
Re: [gentoo-user] Socks-ifying an application Alan McKinnon <alan.mckinnon@×××××.com>