centos端口转发神器:socat安装及使用

socat作用是在两个流之间建立双向的通道,且支持众多协议和链接方式:ip,tcp,udp,ipv6,pipe,exec,system,open,proxy,openssl,socket等
yum 方式安装:

  1. wget no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo -O /etc/yum.repos.d/convirt.repo
  2. yum makecache
  3. yum install socat

使用方式:

  1. sudo nohup socat tcp-l:外部访问端口,reuseaddr,fork tcp:192.168.xxx.xxx:内部转发端口
 

猜你喜欢

转载自hunan.iteye.com/blog/2322572
今日推荐