Socat 远程端口转发

Socat - 图1

  1. C:\>socat TCP4-LISTEN:80,fork TCP4:1.1.1.1:80

Socat 本地端口转发

Socat - 图2

  1. C:\>socat TCP4-LISTEN:3389,fork TCP4:3.3.3.3:3389

然后修改防火墙规则

  1. netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389