Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to use tsocks as a socks-wrapper for an OpenSSH socks5 tunnel:

Here's my tsocks.conf:

wishi@kage ~ % cat /etc/tsocks.conf
# This is the configuration for libtsocks (transparent socks)
# Lines beginning with # and blank lines are ignored
# This sample configuration shows the simplest (and most common) use of
# tsocks. This is a basic LAN, this machine can access anything on the 
# local ethernet (192.168.0.*) but anything else has to use the SOCKS version
# 4 server on the firewall. Further details can be found in the man pages,
# tsocks(8) and tsocks.conf(5) and a more complex example is presented in 
# tsocks.conf.complex.example

# We can access 192.168.0.* directly
local =

# Otherwise we use the server

server =
# Server type defaults to 4 so we need to specify it as 5 for this one
server_type = 5
# The port defaults to 1080 but I've stated it here for clarity 
server_port = 5000 


ssh -D 5000 me@server

And on another terminal:

tsocks transgui

No networking for the transgui application. I wonder what the issue is.

share|improve this question
up vote 2 down vote accepted

By default, ssh only listens for tunnel connections on the loopback interface – try changing your server to or ::1.

If you need to connect from outside, use either ssh -g -D 5000 or ssh -D "*:5000".

share|improve this answer
changed server in tsocks.conf to and did -g -D 5000 and tsocks transgui. No effect. Still no connection. – wishi Oct 26 '11 at 11:19
Try giving -v -v in addition, see if it prints out anything useful. – grawity Oct 26 '11 at 11:25

Use ssh -L instead of -D

it uses local ports instead of dynamic if i remeber correctly, gives you less headache.


this way you can also access a proxy server behind a ssh proxy

share|improve this answer
Using Dynamic SSH too, one can access the proxy server behind ! Please edit your answer – ZenOut Sep 22 '15 at 19:39
@PutPeace with dinamic your ssh server IS a socks server. yes, you can reach another socks server like you can reach anything else. but unlike with local port forwarding, you now have a socks server talking to another socks server. – gcb Sep 25 '15 at 18:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.