Server Fault is a question and answer site for system and network administrators. 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

I have a setup with two internet connections.

  • eth0 - Internet connection 1
  • eth1 - Internet connection 2

How can I create a SOCKS 4/5 server that will take connections coming from eth0 and proxy the traffic through eth1 ?

I saw that you can use ssh to create a simple SOCKS proxy, but I am unable to proxy the traffic through eth1.

I also tried Dante, but with no success.

share|improve this question
Did you manage to setup Dante successfully? – Jeje Doudou Apr 24 '15 at 14:59

I guess you can not make any service use specific interface for oubound traffic. The only way to rule outbound traffic is to use route utility. This is system wide setting.

share|improve this answer
It surely can be done, but I don't know how. Dante can do it, but I am incapable of configuring it .. – Christian Toma Jan 12 '13 at 22:00
wget --bind-address and curl --interface does that too. – themihai Nov 14 '14 at 1:02

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.