jellever / StreamDivert

Redirecting (specific) TCP, UDP and ICMP traffic to another destination.
356 stars 72 forks source link

Socks5 documentation #4

Open mrvaghani opened 3 years ago

mrvaghani commented 3 years ago

Hello.

I am trying to take a windows application that doesn't support socks and send it's data over an existing socks5 proxy.

Here is something that I found in the documentation that seems relevant, but could use a little more details.

//Divert all inbound TCP connections to port 445 (SMB) coming from 10.0.1.51 to a local SOCKS server
tcp < 445 10.0.1.51 -> socks

Here is what I am trying to do, but unsuccessful.

//Send all outbound TCP connections to 11.22.33.44 on port 443 (HTTPS) to a local SOCKS5 server running on port 9999
tcp > 11.22.33.44 443 -> socks5://127.0.0.1:9999

Any advise you can give would be highly appreciated. Thanks!