Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
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
add comment

3 Answers

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
add comment

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.