Linux – Debian: How to create SOCKS proxy server to exit on specific network interface

debianlinuxnetworkingPROXYsocks

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.

Best Answer

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.

Related Topic