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

 

#!/bin/sh
socat TCP4-LISTEN:65531,fork,range=100.80.180.126/32 TCP4:127.0.0.1:65521>> ~/logs/socat.out 2>&1 &

  

 

请求-->机器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

  

  

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-05-17
  • 2021-12-22
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案