13

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 127.0.0.1 and the port specified with -D parameter.

  • 3
    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
11

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

2

You can create a long-running SSH connection on the server to itself using ssh user@localhost -D 0.0.0.0:1234. 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.

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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