14

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.

NPK
  • 433
  • 3
  • 5
  • 12
  • 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 05:23

3 Answers3

16

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

mgorven
  • 2,252
  • 19
  • 19
4

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.

Álvaro Justen
  • 405
  • 4
  • 7
2

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

Yanick Girouard
  • 412
  • 1
  • 4
  • 12