yum install socat
socat TCP4-LISTEN:8080,reuseaddr,fork TCP4:192.168.11.5:80& or socat TCP4-LISTEN:8080,reuseaddr,fork TCP4:192.168.11.5:3389&
這樣就把本地的8080與192.168.11.5:80做了映射.
查看端口情況
netstat -antup
如果要終止運行的話
ps -ef|grep socat kill -9 xxxID
更新https://www.laba.me/li-yong-socat-lai-zuo-duan-kou-zhuan-fa/