1

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.

Christian Toma
  • 160
  • 1
  • 8

1 Answers1

0

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.

dchirikov
  • 640
  • 4
  • 6
  • 2
    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
  • 3
    wget --bind-address and curl --interface does that too. – themihai Nov 14 '14 at 01:02
  • @themihai how should wget and curl work like an proxy? it was asked whoch proxy or how the proxy thst is unknowncan use one inbound and one outbound interface – djdomi Jan 02 '22 at 12:17