There is a socks client vip72, launched from under the wine, when this client is running to the address 127.0.0.1:9951 SOCKS5 is broadcast.

The question is how to transfer all this traffic to a separate interface, for example eth9.

Inspired by the article about forwarding TOR traffic to a separate interface https://cryptopunks.org/article/forward+all+the+traffic+to+tor/

    1 answer 1

    With socat, you need to glue the socket 127.0.0.1:9951 and (address eth9): 9951

    For example, if eth9 has the address 10.0.0.1/8

    socat TCP-LISTEN:9951,fork,range=10.0.0.1/8 TCP:127.0.0.1:9951 

    Or using iptables

    • and how then to bind to the interface? - 3amunyk
    • By the address. If eth9 has the address 10.0.0.1, the command will look like socat TCP-LISTEN: 10.0.0.1: 9951, fork TCP: 127.0.0.1: 9951 - gbg
    • 2017/03/01 09:04:03 socat [8604] E TCP-LISTEN: wrong number of parameters (2 instead of 1) - 3amunyk
    • Updated the answer - fixed the format - gbg
    • 2017/03/01 09:13:20 socat [11093] E bind (5, {AF = 2 0.0.0.0:9951}, 16): Address already in use - 3amunyk