Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

Currently I create a ssh tunnel using: ssh user@server -D 1234 to use SOCKS proxy. How do I configure server so I can directly connect to socks server?

I want to set firefox socks host to server ip and port, instead of and the port specified with -D parameter.

share|improve this question
The -D option of SSH makes the SSH server also act as a SOCKS server -- there is no other SOCKS server in the picture. What SOCKS server are you referring to then? – mgorven May 13 '12 at 5:23

You'll need to install and configure an actual SOCKS server on the server, such as Dante, SS5, Delegate or Srelay.

share|improve this answer

You can create a long-running SSH connection on the server to itself using ssh user@localhost -D You can create a script that verify if this command is running and put it on crontab to ensure if the connection fails for some reason it'll restart the job.

share|improve this answer

You could install something like Srelay, a free Socks proxy server software for Linux: http://socks-relay.sourceforge.net/

share|improve this answer

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.