I'm trying to get tsocks to work on my computer.

I'm using
Code:
ssh -ND 9998 192.168.1.3
to set up my proxy. My tsocks.conf is


Code:
#Local addresses
local = 192.168.1.0/255.255.255.0

#Config for external ones
server = 127.0.0.1
server_port=9998
server_type=5


I believe that this should work, however, I get the following output:


Code:
[sean@Deep-Thought ~]$ tsocks wget google.com
--2012-08-25 02:17:51--  http://google.com/
Resolving google.com... 74.125.228.5, 74.125.228.0, 74.125.228.14, ...
Connecting to google.com|74.125.228.5|:80... 02:17:51 libtsocks(16648): Malformed configuration pair on line 6 in configuration file, "server_port=9998"
02:17:51 libtsocks(16648): Malformed configuration pair on line 7 in configuration file, "server_type=5"
02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.0|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.14|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.6|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.3|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.4|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.7|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.9|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.1|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.2|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|74.125.228.8|:80... 02:17:51 libtsocks(16648): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to google.com|2607:f8b0:4004:800::1006|:80... failed: Network is unreachable.


I'm not sure why it's blowing up on line 7 of the config, since it conforms to the specs. (Yes, it is a version 5 server)
Just from looking at your example, and confirmed by looking on the internet, you included spaces surround the = sign for local and server, why not for server_port and server_type?
KermMartian wrote:
Just from looking at your example, and confirmed by looking on the internet, you included spaces surround the = sign for local and server, why not for server_port and server_type?


Hm, well, something happened overnight. No matter what the contents of the config file are (even renaming the config) it always outputs


Code:
[sean@Deep-Thought dev86-0.16.19]$ tsocks wicd google.com
Root privileges are required for the daemon to run properly.  Exiting.


It gives no acknowledgement when running as root that anything is wrong, other than the lack of connectivity.

I was under the impression that this program was designed to expose root functions that could put a middleman in between non-socks-aware applications and a proxy. I'm very puzzled by this.
*Bump*

Still not sure what is causing this..
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement