socat TCP4-LISTEN:65532,fork,range=192.168.110.89/32 TCP4:127.0.0.1:65531 socat tcp-l:4321,reuseaddr,fork tcp:192.168.1.2:3306
2.权限控制
请求-->机器A(无执行权限)-->机器B(有执行权限)
2.1机器A(hosts)
#定向到机器B的IP 10.86.236.234 api.xxx.com
2.2机器B(socat)
sudo socat tcp-l:65531,reuseaddr,fork tcp:api.xxx.com:80
时间: 2024-11-05 16:32:18